mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 06:55:08 -04:00
include crypto-api src into lib to get around mjs import issue. compiled node lib now requires successfully.
This commit is contained in:
parent
91eb692d99
commit
20452fe3cb
4 changed files with 2064 additions and 2062 deletions
|
@ -255,7 +255,9 @@ module.exports = function (grunt) {
|
||||||
mode: "production",
|
mode: "production",
|
||||||
target: "node",
|
target: "node",
|
||||||
entry: "./src/node/index.mjs",
|
entry: "./src/node/index.mjs",
|
||||||
externals: [NodeExternals()],
|
externals: [NodeExternals({
|
||||||
|
whitelist: ["crypto-api/src/crypto-api"]
|
||||||
|
})],
|
||||||
output: {
|
output: {
|
||||||
filename: "CyberChef.js",
|
filename: "CyberChef.js",
|
||||||
path: __dirname + "/build/node",
|
path: __dirname + "/build/node",
|
||||||
|
@ -264,7 +266,7 @@ module.exports = function (grunt) {
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.DefinePlugin(BUILD_CONSTANTS)
|
new webpack.DefinePlugin(BUILD_CONSTANTS)
|
||||||
]
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"webpack-dev-server": {
|
"webpack-dev-server": {
|
||||||
|
@ -390,7 +392,6 @@ module.exports = function (grunt) {
|
||||||
generateNodeIndex: {
|
generateNodeIndex: {
|
||||||
command: [
|
command: [
|
||||||
"echo '\n--- Regenerating node index ---'",
|
"echo '\n--- Regenerating node index ---'",
|
||||||
|
|
||||||
"echo 'Copying OperationConfig.json and wiping original'",
|
"echo 'Copying OperationConfig.json and wiping original'",
|
||||||
"cp src/core/config/OperationConfig.json src/node/config/OperationConfig.json",
|
"cp src/core/config/OperationConfig.json src/node/config/OperationConfig.json",
|
||||||
"echo 'export default {};\n' > src/core/config/modules/OpModules.mjs",
|
"echo 'export default {};\n' > src/core/config/modules/OpModules.mjs",
|
||||||
|
|
4114
package-lock.json
generated
4114
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -28,6 +28,7 @@
|
||||||
"url": "https://github.com/gchq/CyberChef/"
|
"url": "https://github.com/gchq/CyberChef/"
|
||||||
},
|
},
|
||||||
"main": "build/node/CyberChef.js",
|
"main": "build/node/CyberChef.js",
|
||||||
|
"module": "src/node/index.mjs",
|
||||||
"bugs": "https://github.com/gchq/CyberChef/issues",
|
"bugs": "https://github.com/gchq/CyberChef/issues",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-core": "^6.26.3",
|
"babel-core": "^6.26.3",
|
||||||
|
|
|
@ -46,8 +46,8 @@ module.exports = {
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
jquery: "jquery/src/jquery"
|
jquery: "jquery/src/jquery",
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue