Skip to content

Commit 052096c

Browse files
author
Ryan A. Johnson
committed
fix(package): tweak scripts
* no auto ghpages * add version to ghpages commit message * don't use postinstall for dev setup (causes errors when installing) * reduce scope of "clean" task
1 parent 7d92725 commit 052096c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

lib/publish.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
const CONFIG = require('../_config');
9+
const PKG = require('../package.json');
910
const ghPages = require('gh-pages');
1011
const moment = require('moment');
1112

@@ -16,7 +17,7 @@ async function publishDocs () {
1617
add: false, // replace all gh-pages content, do not append
1718
silent: false,
1819
dotfiles: false,
19-
message: `Updated: ${moment().format('YYYY-MM-DD HH:mm:ss')}`
20+
message: `(${PKG.version}) Updated: ${moment().format('YYYY-MM-DD HH:mm:ss')}`
2021
};
2122

2223
try {

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,16 @@
5353
"webpack": "^3.5.5"
5454
},
5555
"scripts": {
56-
"clean": "rm -fr node_modules test/node_modules",
56+
"clean": "rm -fr node_modules",
5757
"clean:public": "bin/cleanPublic.js",
5858
"compile": "bin/compile.js",
5959
"pregenerate": "yarn compile",
6060
"generate": "bin/generate.js",
6161
"preghpages": "yarn generate",
6262
"ghpages": "bin/ghpages.js",
6363
"lint": "eslint -c .eslintrc.json src",
64-
"postinstall": "cd test; yarn install; yarn run webdriver:update; cd -;",
65-
"postpublish": "yarn ghpages",
66-
"postversion": "yarn compile",
67-
"prepublishOnly": "yarn generate",
64+
"postversion": "git push origin --tags",
65+
"prepublishOnly": "yarn compile",
6866
"rollup": "rollup -c rollup.config.js",
6967
"prestart": "yarn clean:public && yarn generate",
7068
"start": "bin/start.js",

0 commit comments

Comments
 (0)