Skip to content

Instantly share code, notes, and snippets.

@homerquan
Created March 28, 2019 01:36
Show Gist options
  • Save homerquan/b8d9330e079da4a360d6b794da574c7d to your computer and use it in GitHub Desktop.
Save homerquan/b8d9330e079da4a360d6b794da574c7d to your computer and use it in GitHub Desktop.
"scripts": {
"preinstall": "node tools/nodeVersionCheck.js",
"setup": "node tools/setup/setupMessage.js && npm install && node tools/setup/setup.js",
"remove-demo": "babel-node tools/removeDemo.js",
"start-message": "babel-node tools/startMessage.js",
"prestart": "npm run start-message",
"start": "concurrently -k -r -s first \"npm run test:watch\" \"npm run open:src\" \"npm run lint:watch\"",
"open:src": "babel-node tools/srcServer.js",
"open:dist": "babel-node tools/distServer.js",
"lint": "esw webpack.config.* src tools --color",
"lint:watch": "npm run lint -- --watch",
"clean-dist": "npm run remove-dist && mkdir dist",
"remove-dist": "rimraf ./dist",
"prebuild": "npm run lint && npm run test && npm run clean-dist",
"build": "babel-node tools/build.js && npm run open:dist",
"test": "jest",
"test:CI": "jest",
"test:cover": "npm run test -- --coverage ",
"test:cover:CI": "npm run test:CI -- --coverage && cat ./coverage/lcov.info | node_modules/coveralls/bin/coveralls.js",
"test:watch": "jest --watchAll",
"open:cover": "npm run test:cover && opn ./coverage/lcov-report/index.html",
"analyze-bundle": "babel-node ./tools/analyzeBundle.js"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment