Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
♻️ cleaned package script order and ignore comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shuse2 committed Feb 13, 2018
1 parent 28c7277 commit 14e257f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ browsertest/package.json
browsertest/browsertest.js
browsertest/browsertest.min.js

# lock files (required version is npm below 3)
# lock files (supported package manager is npm 3)
package-lock.json
yarn.lock
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
"format": "prettier --write \"browsertest/{setup,runTests}.js\" \"{cypress/integration,src,test}/**/*.js\"",
"lint": "eslint .",
"lint:fix": "npm run lint -- --fix",
"babel": "babel src -d dist-node",
"babel:browsertest":
"babel src -d ./browsertest/src && BABEL_ENV=browsertest babel test --ignore test/transactions/dapp.js -d ./browsertest/test",
"browserify": "browserify ./dist-node/index.js -o ./dist-browser/lisk-js.js -s lisk -t rewireify",
"browserify:browsertest": "browserify ./browsertest/test/*.js ./browsertest/test/**/*.js -o ./browsertest/browsertest.js -s lisk -t rewireify",
"uglify": "uglifyjs -o ./dist-browser/lisk-js.min.js ./dist-browser/lisk-js.js",
"uglify:browsertest": "uglifyjs -o ./browsertest/browsertest.min.js ./browsertest/browsertest.js",
"serve:browsertest": "http-server browsertest",
"test": "NODE_ENV=test nyc mocha test",
"test:watch": "npm test -- --watch",
"test:watch:min": "npm run test:watch -- --reporter=min",
Expand All @@ -39,25 +47,17 @@
"cover:base": "NODE_ENV=test nyc report",
"cover:local": "npm run cover:base -- --reporter=html --reporter=text",
"cover:ci": "npm run cover:base -- --reporter=text-lcov | coveralls -v",
"serve:browsertest": "http-server browsertest",
"prebuild:node": "rm -r dist-node/* || mkdir dist-node | echo",
"prebuild:browser": "rm ./dist-browser/lisk-js.js ./dist-browser/lisk-js.min.js",
"prebuild:browsertest": "cp package.json browsertest/",
"prebuild": "npm run prebuild:node && npm run prebuild:browser",
"build": "npm run babel && npm run browserify && npm run uglify",
"build:browsertest":
"npm run babel:browsertest && npm run browserify:browsertest && npm run uglify:browsertest",
"postbuild:browsertest": "rm -r browsertest/src browsertest/test",
"prebuild:node": "rm -r dist-node/* || mkdir dist-node | echo",
"build:node": "npm run babel",
"prebuild:browser": "rm ./dist-browser/lisk-js.js ./dist-browser/lisk-js.min.js",
"build:browser": "npm run babel && npm run browserify && npm run uglify",
"prebuild": "npm run prebuild:node && npm run prebuild:browser",
"build": "npm run babel && npm run browserify && npm run uglify",
"build:check": "node -e \"require('./dist-node')\"",
"babel": "babel src -d dist-node",
"babel:browsertest":
"babel src -d ./browsertest/src && BABEL_ENV=browsertest babel test --ignore test/transactions/dapp.js -d ./browsertest/test",
"postbuild:browsertest": "rm -r browsertest/src browsertest/test",
"browserify": "browserify ./dist-node/index.js -o ./dist-browser/lisk-js.js -s lisk -t rewireify",
"browserify:browsertest": "browserify ./browsertest/test/*.js ./browsertest/test/**/*.js -o ./browsertest/browsertest.js -s lisk -t rewireify",
"uglify": "uglifyjs -o ./dist-browser/lisk-js.min.js ./dist-browser/lisk-js.js",
"uglify:browsertest": "uglifyjs -o ./browsertest/browsertest.min.js ./browsertest/browsertest.js",
"precommit": "lint-staged && npm run lint",
"prepush": "npm run lint && npm test",
"prepublishOnly": "rm -r ./node_modules && npm install && npm run prepush && npm run build",
Expand Down

0 comments on commit 14e257f

Please sign in to comment.