Skip to content

Commit

Permalink
use rimraf instead of rm
Browse files Browse the repository at this point in the history
remove bundle file
use unix linebreaks in foo.js and bar.js
  • Loading branch information
nikolay-borzov committed Aug 10, 2019
1 parent ad98597 commit 066e4ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions tests/generate-data/package-lock.json

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

5 changes: 3 additions & 2 deletions tests/generate-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@
"babelify": "10.0.0",
"browserify": "16.3.0",
"npm-run-all": "^4.1.5",
"rimraf": "^2.6.3",
"terser": "4.1.3"
},
"browserslist": "node 0.12",
"scripts": {
"build": "browserify --debug -t [ babelify --presets [ @babel/preset-env ] ] dist/foo.js -o foo.js",
"minify:inline": "terser foo.js -c --source-map \"content=inline,url=inline\" -o ../data/inline-map.js && rm ../data/inline-map.js.map",
"minify:inline": "terser foo.js -c --source-map \"content=inline,url=inline\" -o ../data/inline-map.js && rimraf ../data/inline-map.js.map",
"minify:url": "terser foo.js -c --source-map \"content=inline,url='foo.min.js.map'\" -o ../data/foo.min.js",
"minify:url-1234": "terser foo.js -c --source-map \"content=inline,url='foo.1234.js.map'\" -o ../data/foo.1234.js",
"minify:no-comment": "terser foo.js -c --source-map \"content=inline\" -o ../data/no-map.js",
"minify:one-source": "terser foo.js -c --source-map \"url='foo.min.no-map.bad-map.js.map'\" -o ../data/foo.min.no-map.bad-map.js",
"build-all": "npm run build && npm-run-all minify:*"
"build-all": "npm run build && npm-run-all minify:* && rimraf foo.js"
}
}

0 comments on commit 066e4ff

Please sign in to comment.