Skip to content

Commit 404ee45

Browse files
committed
Add webpack
1 parent 4285f3e commit 404ee45

File tree

3 files changed

+45
-2
lines changed

3 files changed

+45
-2
lines changed

package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "jira-automation-extension",
3+
"version": "1.0.0",
4+
"description": "Browser extension to automate typical actions in JIRA",
5+
"private": true,
6+
"scripts": {
7+
"build": "webpack",
8+
"test": "echo \"Error: no test specified\" && exit 1"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/kungfux/jira-automation-extension.git"
13+
},
14+
"author": "Alexander Fuks",
15+
"license": "MIT",
16+
"bugs": {
17+
"url": "https://github.com/kungfux/jira-automation-extension/issues"
18+
},
19+
"homepage": "https://github.com/kungfux/jira-automation-extension#readme",
20+
"devDependencies": {
21+
"copy-webpack-plugin": "^11.0.0",
22+
"webpack": "^5.78.0",
23+
"webpack-cli": "^5.0.1"
24+
}
25+
}

src/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
"*://*.atlassian.net/jira/*"
1414
],
1515
"js": [
16-
"index.js"
16+
"bundle.js"
1717
]
1818
}
1919
],
2020
"host_permissions": [
2121
"*://*.atlassian.net/jira/*"
2222
]
23-
}
23+
}

webpack.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const path = require('path');
2+
const CopyPlugin = require("copy-webpack-plugin");
3+
4+
module.exports = {
5+
entry: './src/index.js',
6+
output: {
7+
filename: 'bundle.js',
8+
path: path.resolve(__dirname, 'dist'),
9+
},
10+
plugins: [
11+
new CopyPlugin({
12+
patterns: [
13+
'./src/manifest.json',
14+
{ from: './src/icons', to: 'icons' }
15+
],
16+
}),
17+
],
18+
};

0 commit comments

Comments
 (0)