You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2022/03/21 07:59:08 UTC
[myfaces-tobago] branch master updated: build(demo): use ncp
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/master by this push:
new 3933e8d build(demo): use ncp
3933e8d is described below
commit 3933e8d7ecda0fd5f3370e8632d5f5ecf2c7040b
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Fri Mar 18 21:32:53 2022 +0100
build(demo): use ncp
Use ncp instead of cp to make the build script run on Windows.
---
tobago-example/tobago-example-demo/package.json | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tobago-example/tobago-example-demo/package.json b/tobago-example/tobago-example-demo/package.json
index 9ed9eff..c5aaaab 100644
--- a/tobago-example/tobago-example-demo/package.json
+++ b/tobago-example/tobago-example-demo/package.json
@@ -20,11 +20,11 @@
"css-prefix": "echo 'Not implemented yet! See css-prefix_xxx'",
"css-prefix_xxx": "postcss --config postcss.config.js --replace src/main/webapp/css/demo.css",
"css-minify": "cleancss -O1 specialComments:0 --format breakWith=lf --source-map --source-map-inline-sources --output src/main/webapp/css/demo.min.css src/main/webapp/css/demo.css",
- "css-copy-prism": "cp node_modules/prismjs/themes/prism.css src/main/webapp/css",
+ "css-copy-prism": "ncp node_modules/prismjs/themes/prism.css src/main/webapp/css/prism.css",
"fa": "npm-run-all fa-mkdir --parallel fa-css fa-fonts",
"fa-mkdir": "mkdir -p src/main/webapp/css src/main/webapp/fonts",
- "fa-css": "cp node_modules/font-awesome/css/font-awesome.* src/main/webapp/css",
- "fa-fonts": "cp node_modules/font-awesome/fonts/fontawesome-webfont.woff* src/main/webapp/fonts",
+ "fa-css": "ncp node_modules/font-awesome/css/ src/main/webapp/css --filter='.*(css|font-awesome\\.).*$'",
+ "fa-fonts": "ncp node_modules/font-awesome/fonts src/main/webapp/fonts --filter='.*(fonts|fontawesome-webfont.woff.*)$'",
"ts": "npm-run-all --parallel ts-lint ts-compile --sequential rollup",
"ts-lint": "tslint --project tsconfig.json --config tslint.json",
"ts-compile": "tsc --project tsconfig.json",
@@ -42,6 +42,7 @@
"autoprefixer": "^10.4.4",
"clean-css-cli": "^5.5.2",
"lodash": "^4.17.21",
+ "ncp": "^2.0.0",
"npm-run-all": "^4.1.5",
"postcss-cli": "^9.1.0",
"rollup": "^2.70.1",