Skip to content

Commit 594b3c2

Browse files
authored
Merge pull request #125 from rackerlabs/fix-package
fix(package): tweak scripts
2 parents 7d92725 + c8c44c4 commit 594b3c2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ branch:
1212
install:
1313
- npm i -g yarn
1414
- travis_retry yarn install
15+
- cd test; travis_retry yarn install; yarn run webdriver:update; cd -;
1516
before_script:
1617
- export DISPLAY=:99.0
1718
- sh -e /etc/init.d/xvfb start

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)