feat: release script
This commit is contained in:
parent
bc0655a0cc
commit
a2b5eb8fc2
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
rm -r dist
|
||||
rm -r .parcel-cache
|
||||
npm run release
|
|
@ -12,7 +12,7 @@
|
|||
"module": "dist/module.js",
|
||||
"types": "dist/types.d.ts",
|
||||
"scripts": {
|
||||
"build": "npm run prod && npm run uglify",
|
||||
"release": "npm run prod && npm run uglify",
|
||||
"dev": "NODE_ENV=development parcel build",
|
||||
"prod": "parcel build --no-source-maps",
|
||||
"uglify": "uglifyjs --compress --mangle -o dist/module.js -- dist/module.js",
|
||||
|
|
Loading…
Reference in New Issue