fix style copy

This commit is contained in:
Eugenio Romano 2018-02-15 10:54:08 +00:00
parent 1a41da514b
commit fd533a8c97
3 changed files with 6 additions and 7 deletions

View File

@ -10,7 +10,7 @@
"start:dev": " npm run lint && npm run server-versions && rimraf dist && npm run clean-lib-angular && concurrently \"ng serve --host 0.0.0.0 --disable-host-check --app dev pp-dev --proxy-config proxy.conf.js --open\" \"npm run style:dev --watch\" \"npm run copy:dev\" ",
"start:dist": "npm run server-versions && rimraf dist && node --max_old_space_size=30000 node_modules/.bin/ng serve --prod --build-optimizer=false --aot=false --host 0.0.0.0 --disable-host-check --app dist",
"build": "npm run validate-config && npm run server-versions && rimraf dist && ng build --app dist",
"build:dev": "npm run validate-config && npm run lint && npm run style:dev && npm run server-versions && rimraf dist && ng build --app dev",
"build:dev": "npm run validate-config && npm run lint && npm run style:dev && npm run server-versions && rimraf dist && ng build --prod --app dev",
"build:dist": "npm run validate-config && npm run style:dev && npm run server-versions && rimraf dist && node --max_old_space_size=30000 node_modules/.bin/ng build --prod --build-optimizer=false --aot=false --app dist",
"style:dev": "npm run webpack -- --config config/webpack.style.js --progress --profile --bail",
"copy:dev": "node ./config/dev-copy-watch.js",

View File

@ -4,22 +4,22 @@ var mkdirpSync = require('fs-extra').mkdirpSync;
new Bundler().Bundle('./core/styles/_index.scss', '**/*.scss').then(result => {
mkdirpSync('core');
writeFileSync('core/dist/_theming.scss', result.bundledContent);
writeFileSync('dist/core/_theming.scss', result.bundledContent);
});
new Bundler().Bundle('./insights/styles/_index.scss', '**/*.scss').then(result => {
mkdirpSync('insights');
writeFileSync('insights/dist/_theming.scss', result.bundledContent);
writeFileSync('dist/insights/_theming.scss', result.bundledContent);
});
new Bundler().Bundle('./process-services/styles/_index.scss', '**/*.scss').then(result => {
mkdirpSync('process-services');
writeFileSync('process-services/dist/_theming.scss', result.bundledContent);
writeFileSync('dist/process-services/_theming.scss', result.bundledContent);
});
new Bundler().Bundle('./content-services/styles/_index.scss', '**/*.scss').then(result => {
mkdirpSync('content-services');
writeFileSync('content-services/dist/_theming.scss', result.bundledContent);
writeFileSync('dist/content-services/_theming.scss', result.bundledContent);
});

View File

@ -67,7 +67,7 @@ do
echo "prebuilt-theme ok!"
fi
if [ ! -f package/'schema.json' ]; then
if [ ! -f package/'app.config.schema.json' ]; then
error_out '31;1' "$PACKAGE schema not found!" >&2
exit 1
else
@ -129,7 +129,6 @@ do
done
cd ..
rm -rf temp
set_npm_registry