Skip to content

Commit

Permalink
CCDM: copy modified client file to target tree
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo committed Aug 8, 2019
1 parent 5ef4305 commit d21cd88
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions flow-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
},
"scripts": {
"lint": "eslint 'src/main/resources/META-INF/resources/frontend/FlowBootstrap.js' && tslint 'src/main/resources/META-INF/resources/frontend/**/*.ts'",
"_copy": "ncp target/classes/META-INF/resources/VAADIN/static/client/client-*.cache.js src/main/resources/META-INF/resources/frontend/FlowClient.js",
"_replace": "replace-in-files --regex '(.+[\\s\\S]*)' --replacement 'const init = function(){\\n$1\\n};\\nexport {init};\\n' src/main/resources/META-INF/resources/frontend/FlowClient.js",
"client": "npm run _copy && npm run _replace",
"_cp_to_src": "ncp target/classes/META-INF/resources/VAADIN/static/client/client-*.cache.js src/main/resources/META-INF/resources/frontend/FlowClient.js",
"_wrap_fnc": "replace-in-files --regex '(.+[\\s\\S]*)' --replacement 'const init = function(){\\n$1\\n};\\nexport {init};\\n' src/main/resources/META-INF/resources/frontend/FlowClient.js",
"_cp_to_tgt": "ncp src/main/resources/META-INF/resources/frontend/FlowClient.js target/classes/META-INF/resources/frontend/FlowClient.js",
"client": "npm run _cp_to_src && npm run _wrap_fnc && npm run _cp_to_tgt",
"webpack": "webpack --config=webpack.tests.config.js",
"build": "npm run client && tsc",
"compile": "npm run lint && npm run build",
Expand Down

0 comments on commit d21cd88

Please sign in to comment.