Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
feat(package): remove "precommit" hook, add cross-env
Browse files Browse the repository at this point in the history
feat(package): remove "precommit" hook, add cross-env, update deps
  • Loading branch information
Metnew committed Nov 10, 2017
1 parent b922999 commit 875ab6a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 11 deletions.
35 changes: 32 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"circular-dependency-plugin": "^4.2.1",
"commitizen": "^2.9.6",
"compression-webpack-plugin": "^1.0.1",
"cross-env": "^5.1.1",
"css-loader": "^0.28.7",
"enzyme": "^3.1.0",
"enzyme-adapter-react-16": "^1.0.3",
Expand All @@ -87,7 +88,7 @@
"extract-text-webpack-plugin": "^3.0.2",
"favicons-webpack-plugin": "0.0.7",
"file-loader": "^1.1.5",
"flow-bin": "^0.58.0",
"flow-bin": "^0.59.0",
"form-data": "^2.3.1",
"friendly-errors-webpack-plugin": "^1.6.1",
"html-webpack-plugin": "^2.30.1",
Expand All @@ -96,8 +97,8 @@
"jest": "^21.2.1",
"jest-styled-components": "^4.9.0",
"nock": "^9.0.27",
"node-sass": "^4.6.0",
"node-noop": "^1.0.0",
"node-sass": "^4.6.0",
"open": "0.0.5",
"optimize-css-assets-webpack-plugin": "^3.2.0",
"optimize-js-plugin": "0.0.4",
Expand Down Expand Up @@ -141,18 +142,17 @@
},
"scripts": {
"build": "npm run frontend_build && npm run server_build",
"dev": "NODE_ENV=development babel-node ./src/server/index.dev",
"server_build": "NODE_ENV=production webpack --config webpack_config/server/webpack.prod.babel.js",
"frontend_build": "NODE_ENV=production webpack --config webpack_config/client/webpack.prod.babel.js",
"test": "NODE_ENV=test jest --config=jest_config/jest.config.json --coverage --forceExit || true",
"snapshot_update": "NODE_ENV=test jest --config=jest_config/jest.config.json --coverage --updateSnapshot",
"dev": "cross-env NODE_ENV=development babel-node ./src/server/index.dev",
"server_build": "cross-env NODE_ENV=production webpack --config webpack_config/server/webpack.prod.babel.js",
"frontend_build": "cross-env NODE_ENV=production webpack --config webpack_config/client/webpack.prod.babel.js",
"test": "cross-env NODE_ENV=test jest --config=jest_config/jest.config.json --coverage --forceExit || true",
"snapshot_update": "cross-env NODE_ENV=test jest --config=jest_config/jest.config.json --coverage --updateSnapshot",
"start": "node ./dist/server",
"lint:styles": "stylelint ./src/common/**/*.scss -s scss --config ./.stylelintrc --fix",
"lint:scripts": "eslint -c ./.eslintrc.json ./src ./webpack_config --ignore-pattern dist",
"flow": "flow",
"cz": "git-cz",
"release": "standard-version",
"precommit": "echo \"$(tput bold)$(tput setaf 5) It'd be better to run tests before commit. $(tput sgr 0)\"t",
"prepush": "npm run test",
"commitmsg": "commitlint -e $GIT_PARAMS"
},
Expand Down

0 comments on commit 875ab6a

Please sign in to comment.