mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Reorg script moving in folders (#4791)
* organize script in folder part 1 * improve test e2e * fix smart build script * fix relative path
This commit is contained in:
21
scripts/build/build-insights.sh
Executable file
21
scripts/build/build-insights.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
cd $DIR/../..
|
||||
|
||||
echo "====== Insights ======"
|
||||
echo "====== Build ======"
|
||||
npm run ng-packagr -- -p ./lib/insights/ || exit 1
|
||||
|
||||
echo "====== Build style ======"
|
||||
node ./lib/config/bundle-insights-scss.js || exit 1
|
||||
|
||||
echo "====== Copy i18n ======"
|
||||
mkdir -p ./lib/dist/insights/bundles/assets/adf-insights/i18n
|
||||
cp -R ./lib/insights/i18n/* ./lib/dist/insights/bundles/assets/adf-insights/i18n
|
||||
|
||||
echo "====== Move to node_modules ======"
|
||||
rm -rf ./node_modules/@alfresco/adf-insights/ && \
|
||||
mkdir -p ./node_modules/@alfresco/adf-insights/ && \
|
||||
cp -R ./lib/dist/insights/* ./node_modules/@alfresco/adf-insights/
|
Reference in New Issue
Block a user