Add prepare and prepublishOnly scripts

This commit is contained in:
Zalmoxisus 2019-01-03 17:34:10 +02:00
parent 9f7f326b94
commit c9b21a578b
2 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,8 @@
"build:umd:min": "webpack -p --progress --config webpack.config.umd.js",
"clean": "rimraf ./build",
"build": "rimraf ./lib && babel ./src/app --out-dir lib",
"prepublish": "eslint ./src/app && npm run test && npm run build && npm run build:umd && npm run build:umd:min",
"prepare": "npm run build",
"prepublishOnly": "eslint ./src/app && npm run test && npm run clean && npm run build && npm run build:umd && npm run build:umd:min",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"test": "NODE_ENV=test jest --no-cache"

View File

@ -7,7 +7,8 @@
"clean": "rimraf lib",
"build": "babel src --out-dir lib",
"lint": "eslint src examples",
"prepublish": "npm run lint && npm run clean && npm run build"
"prepare": "npm run build",
"prepublishOnly": "npm run lint && npm run clean && npm run build"
},
"repository": {
"url": "https://github.com/reduxjs/redux-devtools"