Migrate Parcel to v2

This commit is contained in:
2022-04-13 23:13:27 +00:00
parent f50edd12fe
commit 9cfa0c215b
5 changed files with 2077 additions and 7371 deletions

2
.gitignore vendored
View File

@@ -1,3 +1,3 @@
node_modules/ node_modules/
.cache/ .parcel-cache/
build/ build/

3
.parcelrc Normal file
View File

@@ -0,0 +1,3 @@
{
"extends": "@parcel/config-default"
}

7364
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -11,24 +11,25 @@
}, },
"scripts": { "scripts": {
"preinit": "npx npm-force-resolutions", "preinit": "npx npm-force-resolutions",
"Dev": "npm run Cleanup && npm run Init && parcel dev src/index.pug -d build", "Dev": "npm run Cleanup && npm run Init && parcel serve src/index.pug --port 9999 --dist-dir build --detailed-report",
"Cleanup": "rm -Rf build/ .cache/", "Cleanup": "rm -Rf build/ .parcel-cache/",
"Init": "mkdir build && cp -R src/assets/* build/", "Init": "mkdir build && cp -R src/assets/* build/",
"Prod": "npm run Cleanup && npm run Init && parcel build src/index.pug -d build" "Prod": "npm run Cleanup && npm run Init && parcel build src/index.pug --dist-dir build"
}, },
"devDependencies": { "devDependencies": {
"parcel-bundler": "^1.12.4", "@parcel/transformer-pug": "^2.4.1",
"@parcel/transformer-sass": "2.4.1",
"parcel": "^2.4.1",
"pug": "^2.0.4", "pug": "^2.0.4",
"sass": "^1.30.0" "sass": "^1.30.0"
}, },
"engines": { "engines": {
"node": "14.*" "node": "16.*"
}, },
"resolutions": { "resolutions": {
"node-forge": "0.10.0" "node-forge": "0.10.0"
}, },
"dependencies": {}, "dependencies": {},
"main": "index.js",
"bugs": { "bugs": {
"url": "https://github.com/hotarublaze/Fluttershub/issues" "url": "https://github.com/hotarublaze/Fluttershub/issues"
}, },

2066
yarn.lock Normal file

File diff suppressed because it is too large Load Diff