basic ViteJS migration

ref #108
This commit is contained in:
2021-03-25 18:55:24 +01:00
parent 3d4dc2d72b
commit ae79e9fea1
10 changed files with 89 additions and 103 deletions

View File

@@ -3,11 +3,8 @@
"version": "0.8.4",
"scripts": {
"i18n-order": "node order.js",
"dev:all": "yarn prebuild && snowpack dev",
"dev": "cross-env NODE_ENV_ODIT=development_fast node template-copy.js && yarn build:sw && snowpack dev",
"build": "yarn prebuild && snowpack build",
"prebuild": "cross-env NODE_ENV_ODIT=production node template-copy.js && yarn build:sw",
"build:sw": "workbox generateSW workbox-config.js",
"dev": "vite dev",
"build": "vite build",
"release": "release-it",
"licenses:export": "license-exporter --json -o public"
},
@@ -29,17 +26,19 @@
},
"devDependencies": {
"@odit/license-exporter": "^0.0.11",
"@snowpack/plugin-svelte": "3.5.2",
"auto-changelog": "^2.2.1",
"autoprefixer": "10.2.5",
"cross-env": "^7.0.3",
"postcss": "8.2.8",
"postcss-load-config": "3.0.1",
"release-it": "^14.4.1",
"snowpack": "3.0.13",
"svelte": "3.35.0",
"svelte-preprocess": "4.6.9",
"workbox-cli": "6.1.2"
"vite": "^2.1.2",
"vite-plugin-windicss": "^0.9.6",
"@svitejs/vite-plugin-svelte": "^0.11.1",
"@types/html-minifier": "^4.0.0",
"html-minifier": "^4.0.0"
},
"release-it": {
"git": {
@@ -55,7 +54,7 @@
"publish": false
},
"hooks": {
"after:bump": "npx auto-changelog --commit-limit false -p -u --hide-credit && git add CHANGELOG.md && node versionbuilder.js && git add index.template.html && node order.js && git add src/locales"
"after:bump": "npx auto-changelog --commit-limit false -p -u --hide-credit && git add CHANGELOG.md && node versionbuilder.js && git add index.html && node order.js && git add src/locales"
}
}
}