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