working webpack into template

This commit is contained in:
Jonas Pfalzgraf 2023-01-23 14:28:39 +01:00
parent 2b9595746b
commit a37c001f9a
8 changed files with 2771 additions and 89 deletions

View file

@ -4,19 +4,24 @@
"private": true,
"type": "module",
"scripts": {
"deploy-v3": "npm run build-tooling && npm run sync && node ./tools/deploy.js && npm run build-js && npm run build-css",
"deploy-v3": "npm run build-tooling && node ./tools/deploy.js && npm run sync && npm run build-js && npm run build-css && node ./tools/clean.js",
"deploy-v2": "npm run deploy-v3 && node ./tools/v2.js",
"build-js": "tsc -p tsconfig.json",
"build-js": "webpack --config ./webpack.config.cjs && webpack --config ./webpack.config.settings.cjs && webpack --config ./webpack.config.background.cjs",
"build-css": "sass ./src/sass/:./dist/css/",
"build-tooling": "tsc ./tools/v2.ts --target esnext --module esnext --lib ESNext && tsc ./tools/syncConfig.ts --target esnext --module esnext --lib ESNext && tsc ./tools/deploy.ts --target esnext --module esnext --lib ESNext",
"build-tooling": "tsc --project ./tooling.tsconfig.json",
"watch-ts": "tsc -w -p tsconfig.json",
"watch-sass": "sass --watch ./src/sass/:./dist/css/",
"sync": "npm run build-tooling && node ./tools/syncConfig.js"
},
"devDependencies": {
"@types/node": "^18.7.4",
"@types/chrome": "^0.0.206",
"@types/node": "^18.11.18",
"@webcomponents/webcomponentsjs": "^2.7.0",
"sass": "^1.39.0",
"typescript": "^4.2.4"
"typescript": "^4.2.4",
"ts-loader": "^9.4.2",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
},
"browserslist": [
"> 1%",
@ -38,5 +43,8 @@
},
"bugs": {
"url": "https://github.com/JosunLP/BrowserExtensionTemplate/issues"
},
"dependencies": {
"@webcomponents/custom-elements": "^1.5.1"
}
}
}