-
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from dscrobonia/add-webpack
Add xo linter, ava test framework, webpack build tool, README
- Loading branch information
Showing
8 changed files
with
9,595 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ build/temp/ | |
build/zap-exts/ | ||
.idea/ | ||
*.iml | ||
node_modules/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = function zapLoader(source) { | ||
source = source.replace("<<ZAP_HUD_FILES>>", "https://zap"); | ||
source = source.replace("<<ZAP_HUD_URL>>", "https://targetdomain.com"); | ||
source = source.replace("<<ZAP_HUD_API>>", "https://zap/api"); | ||
source = source.replace("<<ZAP_HUD_WS>>", "https://zap/websocket"); | ||
source = source.replace("<<ZAP_HUD_TOOLS>>", "'http://zap/to/some/tool'"); | ||
source = source.replace("<<ZAP_SHARED_SECRET>>", "sometestsecret"); | ||
|
||
return source; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
'use strict' | ||
|
||
const path = require('path') | ||
const { VueLoaderPlugin } = require('vue-loader') | ||
|
||
module.exports = { | ||
mode: 'development', | ||
entry: [ | ||
'./src/org/zaproxy/zap/extension/hud/files/hud/serviceworker.js', | ||
'./src/org/zaproxy/zap/extension/hud/files/hud/panel.js' | ||
], | ||
resolveLoader: { | ||
alias: {'zap-loader': path.join(__dirname, 'loaders/zap-loader.js')} | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.js$/, | ||
use: [ | ||
'zap-loader' | ||
] | ||
}, | ||
{ | ||
test: /\.vue$/, | ||
use: [ | ||
'vue-loader' | ||
] | ||
} | ||
] | ||
}, | ||
plugins: [ | ||
new VueLoaderPlugin() | ||
] | ||
} |
Oops, something went wrong.