This repository was archived by the owner on Mar 20, 2023. It is now read-only.
File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 47
47
"testonly" : " mocha $npm_package_options_mocha" ,
48
48
"lint" : " eslint src" ,
49
49
"check" : " flow check" ,
50
- "build" : " rm -rf dist/* && node_modules/.bin/ babel src --ignore __tests__ --out-dir dist && npm run build:flow" ,
50
+ "build" : " rm -rf dist/* && babel src --ignore __tests__ --out-dir dist && npm run build:flow" ,
51
51
"build:flow" : " find ./src -name '*.js' -not -path '*/__tests__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\ /src\\ //\\ /dist\\ //g'`.flow; done" ,
52
52
"watch" : " node resources/watch.js" ,
53
53
"cover" : " babel-node node_modules/.bin/isparta cover --root src --report html node_modules/.bin/_mocha -- $npm_package_options_mocha" ,
Original file line number Diff line number Diff line change 2
2
# prepublish runs after `npm install` and `npm pack`.
3
3
# In order to only run prepublish before `npm publish`, we have to check argv.
4
4
if node -e " process.exit(($npm_config_argv ).original[0].indexOf('pu') === 0)" ; then
5
- exit 0;
5
+ exit 0
6
6
fi
7
7
8
8
# Publishing to NPM is currently supported by Travis CI, which ensures that all
9
9
# tests pass first and the deployed module contains the correct file struture.
10
10
# In order to prevent inadvertently circumventing this, we ensure that a CI
11
11
# environment exists before continuing.
12
12
if [ " $CI " != true ]; then
13
- echo " \n\n\n \033[101;30m Only Travis CI can publish to NPM. \033[0m" 1>&2 ;
14
- echo " Ensure git is left is a good state by backing out any commits and deleting any tags." 1>&2 ;
15
- echo " Then read CONTRIBUTING.md to learn how to publish to NPM.\n\n\n" 1>&2 ;
16
- exit 1;
17
- fi ;
13
+ echo " \n\n\n \033[101;30m Only Travis CI can publish to NPM. \033[0m" 1>&2
14
+ echo " Ensure git is left is a good state by backing out any commits and deleting any tags." 1>&2
15
+ echo " Then read CONTRIBUTING.md to learn how to publish to NPM.\n\n\n" 1>&2
16
+ exit 1
17
+ fi
18
18
19
19
# Build before Travis CI publishes to NPM
20
- npm run build;
20
+ npm install
21
+ npm run build
You can’t perform that action at this time.
0 commit comments