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