Added improved build and bundling using gulp.
Updated npm build targets.
gulpfile.js
0 → 100644
... | ... | @@ -2,7 +2,7 @@ |
"name": "knowledge-space", | ||
"version": "1.0.0", | ||
"description": "A Wordpress-Plugin to display knowledge in a graph-structured way.", | ||
"main": "index.js", | ||
"source": "index.js", | ||
"debug": "build/debug/graph.js", | ||
"release": "build/release/graph.js", | ||
"targets": { | ||
... | ... | @@ -13,20 +13,13 @@ |
"release": { | ||
"distDir": "build/release/", | ||
"sourceMap": false, | ||
"optimize": true, | ||
"includeNodeModules": [ | ||
"three", | ||
"3d-force-graph", | ||
"force-graph" | ||
], | ||
"isLibrary": true, | ||
"context": "node" | ||
"optimize": true | ||
} | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"watch": "parcel watch index.js", | ||
"build": "parcel build index.js --target release" | ||
"build": "parcel build index.js --target release && gulp build" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
... | ... | @@ -43,7 +36,11 @@ |
"devDependencies": { | ||
"@babel/core": "^7.14.8", | ||
"@babel/eslint-parser": "^7.14.9", | ||
"del": "^6.0.0", | ||
"eslint": "^7.32.0", | ||
"gulp": "^4.0.2", | ||
"gulp-replace": "^1.1.3", | ||
"gulp-zip": "^5.1.0", | ||
"parcel": "^2.0.0-rc.0", | ||
"prettier": "^2.3.2" | ||
}, | ||
... | ... |
Please register or sign in to comment