-
- Downloads
WIP Build using preinstall and prebuild hooks
Currently : submodules install and build are done before building and installing the main project. Touching a file in a submodules triggers main project rebuild. But does not seem to rebuild the submodule. Also the built package is buggy : there is an error while creating the annotation window
build_deps.sh
100644 → 100755
This diff is collapsed.
... | ... | @@ -4,14 +4,11 @@ |
"description": "", | ||
"private": true, | ||
"scripts": { | ||
"postinstall": "submodules-install", | ||
"preinstall": "./build_deps.sh install", | ||
"prebuild": "./build_deps.sh build", | ||
"build": "webpack --config webpack.config.js", | ||
"serve": "npm install && webpack serve --config webpack.config.js" | ||
}, | ||
"submodules": [ | ||
"mirador-video-annotation/*", | ||
"annotations-plugin/*" | ||
], | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
... | ... | @@ -21,8 +18,7 @@ |
"mirador-annotations": "file:annotations-plugin", | ||
"react": "^16.13.1", | ||
"react-dom": "^16.13.1", | ||
"style-loader": "^1.2.1", | ||
"submodules-install": "1.0.2" | ||
"style-loader": "^1.2.1" | ||
}, | ||
"devDependencies": { | ||
"webpack": "^4.43.0", | ||
... | ... |
Please register or sign in to comment