add README and "build-ext" job
This commit is contained in:
parent
548dc83aa8
commit
4a3a0e3832
10 changed files with 2911 additions and 31 deletions
5
README.md
Normal file
5
README.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# lmlfc-bttv
|
||||
|
||||
- install deps `yarn install --production=false`
|
||||
- make "dist" dir: `yarn build`
|
||||
- pack "dist" dir: `yarn build-ext`
|
|
@ -4,7 +4,8 @@
|
|||
"author": "Jörn-Michael Miehe <joern-michael.miehe@lenaisten.de>",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "webpack --config webpack.config.js"
|
||||
"build": "webpack --config webpack.config.js",
|
||||
"build-ext": "web-ext build --source-dir=dist --artifacts-dir=dist --overwrite-dest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chrome": "^0.0.254",
|
||||
|
@ -12,6 +13,7 @@
|
|||
"prettier": "^3.1.1",
|
||||
"ts-loader": "^9.5.1",
|
||||
"typescript": "^5.3.3",
|
||||
"web-ext": "^7.9.0",
|
||||
"webpack": "^5.89.0",
|
||||
"webpack-cli": "^5.1.4"
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
const path = require("path");
|
||||
const CopyPlugin = require("copy-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
mode: "production",
|
||||
|
@ -21,4 +22,9 @@ module.exports = {
|
|||
},
|
||||
],
|
||||
},
|
||||
plugins: [
|
||||
new CopyPlugin({
|
||||
patterns: [{ from: ".", to: ".", context: "public" }],
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue