Skip to content

Commit

Permalink
use yarn clean command with rimraf for cross platform support
Browse files Browse the repository at this point in the history
Signed-off-by: Mohamed Amin Boubaker <[email protected]>
  • Loading branch information
CodeIter committed Nov 17, 2019
1 parent 5a7b5b5 commit 6114b60
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,17 @@
"eslint-plugin-import": "^2.11.0",
"mocha": "^5.1.1",
"nyc": "^14.1.0",
"rimraf": "^3.0.0",
"rollup": "^0.43.0",
"rollup-plugin-babel": "^4.0.1",
"uglify-js": "^3.0.19"
},
"scripts": {
"lint": "eslint src test",
"lint:fix": "eslint --fix src test",
"clean:node": "rm -rf index.js lib",
"clean:node.win": "RMDIR /S /Q lib && ERASE /F /Q index.js",
"clean:browser": "rm -rf validator*.js",
"clean:browser.win": "ERASE /F /Q validator*.js",
"clean:node": "rimraf index.js lib",
"clean:browser": "rimraf validator*.js",
"clean": "npm run clean:node && npm run clean:browser",
"clean.win": "npm run clean:node.win && npm run clean:browser.win",
"minify": "uglifyjs validator.js -o validator.min.js --compress --mangle --comments /Copyright/",
"build:browser": "node --require @babel/register build-browser && npm run minify",
"build:node": "babel src -d .",
Expand Down

0 comments on commit 6114b60

Please sign in to comment.