modivi build process.

This commit is contained in:
Miroslav Šedivý 2020-11-06 20:50:31 +01:00
parent 1da8466030
commit f01ce2d3fe

View File

@ -10,10 +10,9 @@
}, },
"scripts": { "scripts": {
"serve": "vue-cli-service serve --mode development", "serve": "vue-cli-service serve --mode development",
"build:spa": "vue-cli-service build",
"build:package": "vue-cli-service build --target lib --name neko ./src/components/canvas.vue",
"lint": "vue-cli-service lint", "lint": "vue-cli-service lint",
"build": "npm run build:umd & npm run build:es & npm run build:unpkg", "build": "vue-cli-service build --target lib --name neko ./src/components/canvas.vue",
"build:rollup": "npm run build:umd & npm run build:es & npm run build:unpkg",
"build:umd": "rollup --config rollup.config.js --format umd --file dist/neko.umd.js", "build:umd": "rollup --config rollup.config.js --format umd --file dist/neko.umd.js",
"build:es": "rollup --config rollup.config.js --format es --file dist/neko.esm.js", "build:es": "rollup --config rollup.config.js --format es --file dist/neko.esm.js",
"build:unpkg": "rollup --config rollup.config.js --format iife --file dist/neko.min.js" "build:unpkg": "rollup --config rollup.config.js --format iife --file dist/neko.min.js"