chore: add npm script for deploying gh-pages

This commit is contained in:
Joshua Seigler 2020-03-08 21:38:27 -04:00
parent 866ee039c1
commit 58dc360573
4 changed files with 43 additions and 12 deletions

6
.gitignore vendored
View file

@ -3,7 +3,9 @@ Thumbs.db
.npm
.vscode
node_modules
node_modules/
npm-debug.log*
logs
logs/
*.log
build/

View file

@ -43,9 +43,12 @@ npm run production-win
The site is built in the `/build` folder.
To deploy the contents of the `/build` folder to Github Pages, run the appropriate production build command, then:
```bash
npm run deploy
```
## Further information
The [built site](https://rawgit.com/dashdev-suite/dashdev-website/master/build/) provides further information about site files and settings.

24
package-lock.json generated
View file

@ -1903,6 +1903,30 @@
"integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=",
"dev": true
},
"git-directory-deploy": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/git-directory-deploy/-/git-directory-deploy-1.5.1.tgz",
"integrity": "sha1-xPrYwnDWeNXzCfvd6sHtpgytf9I=",
"dev": true,
"requires": {
"lodash": "^4.14.2",
"minimist": "^1.1.0"
},
"dependencies": {
"lodash": {
"version": "4.17.15",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
"dev": true
},
"minimist": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
"dev": true
}
}
},
"glob": {
"version": "7.1.6",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",

View file

@ -7,6 +7,7 @@
"start": "node ./build.js",
"production": "NODE_ENV=production node ./build.js",
"production-win": "set NODE_ENV=production & node ./build.js",
"deploy": "git-directory-deploy --directory build/",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
@ -21,24 +22,25 @@
},
"homepage": "https://github.com/dashdev-suite/dashdev-website#readme",
"devDependencies": {
"git-directory-deploy": "^1.5.1",
"handlebars": "^4.7.3",
"jstransformer-handlebars": "^1.1.0",
"jstransformer-markdown": "^1.2.1",
"metalsmith": "^2.3.0",
"metalsmith-assets": "^0.1.0",
"metalsmith-browser-sync": "^1.1.1",
"metalsmith-collections": "^0.9.0",
"metalsmith-discover-partials": "^0.1.2",
"metalsmith-feed": "^1.0.0",
"metalsmith-html-minifier": "^4.0.1",
"metalsmith-layouts": "^2.3.1",
"metalsmith-markdown": "^1.3.0",
"metalsmith-permalinks": "^2.2.0",
"metalsmith-publish": "^0.1.5",
"metalsmith-word-count": "0.0.4",
"jstransformer-handlebars": "^1.1.0",
"jstransformer-markdown": "^1.2.1",
"metalsmith-discover-partials": "^0.1.2",
"metalsmith-markdown-precompiler": "^1.0.0",
"metalsmith-paths": "^3.0.1",
"metalsmith-sitemap": "^1.2.2"
"metalsmith-permalinks": "^2.2.0",
"metalsmith-publish": "^0.1.5",
"metalsmith-sitemap": "^1.2.2",
"metalsmith-word-count": "0.0.4"
},
"dependencies": {}
}