|
18 | 18 | "lint:css": "stylelint ${EB_THEME:=openconext}/stylesheets/**/*.*ss", |
19 | 19 | "clean": "rimraf ../public/images/* ../public/javascripts/* ../public/stylesheets/* ../public/fonts/*", |
20 | 20 | "build": "node scripts/build.js", |
21 | | - "buildtheme": "yarn build:clean && yarn build:js && yarn build:css && yarn build:copy:base && yarn build:copy:theme", |
| 21 | + "buildtheme": "yarn build:clean && yarn build:js && yarn build:css && bash scripts/copy-assets.sh", |
22 | 22 | "build:clean": "rimraf ../public/javascripts/* ../public/stylesheets/*", |
23 | 23 | "build:js": "mkdir -p ../public/javascripts && EB_THEME=${EB_THEME:=openconext} webpack --config webpack.config.js --mode production", |
24 | 24 | "build:js:debug": "mkdir -p ../public/javascripts && EB_THEME=${EB_THEME:=openconext} webpack --config webpack.config.js --mode development", |
25 | 25 | "build:css": "mkdir -p ../public/stylesheets && yarn build:css:sass && yarn build:css:postcss", |
26 | 26 | "build:css:sass": "sass ${EB_THEME:=openconext}/stylesheets:../public/stylesheets/", |
27 | 27 | "build:css:postcss": "BROWSERSLIST_CONFIG=.browserslistrc postcss ../public/stylesheets/*.css --use autoprefixer --use cssnano --no-map --dir ../public/stylesheets", |
28 | | - "build:copy:base": "mkdir -p ../public/images && copyfiles --up 2 base/images/* ../public/images/ && mkdir -p ../public/fonts && copyfiles --up 2 -e base/stylesheets/fonts/*.txt -f base/stylesheets/fonts/* ../public/fonts", |
29 | | - "build:copy:theme": "copyfiles --up 2 ${EB_THEME:=openconext}/images/* ../public/images/ && copyfiles --up 2 -e {EB_THEME:=openconext}/stylesheets/fonts/*.txt -f ${EB_THEME:=openconext}/stylesheets/fonts/* ../public/fonts", |
30 | 28 | "create-theme": "node scripts/create-theme.js", |
31 | 29 | "watch": "node scripts/watch.js", |
32 | 30 | "watch:js": "mkdir -p ../public/javascripts && EB_THEME=${EB_THEME:=openconext} webpack --config webpack.config.js --mode development --watch", |
|
40 | 38 | "@eslint/js": "^10.0.1", |
41 | 39 | "autoprefixer": "^10.4", |
42 | 40 | "babel-loader": "^9.0", |
43 | | - "copyfiles": "^2.4", |
44 | 41 | "core-js": "^3.32", |
45 | 42 | "cssnano": "^7.1.1", |
46 | 43 | "eslint": "^10.0.3", |
|
0 commit comments