Fixes file replacement for custom builds

parent f0b81ea1
......@@ -157,10 +157,6 @@
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
},
{
"replace": "src/assets/piwik/piwik.js",
"with": "src/assets/piwik/piwik.prod.js"
}
],
"styles": [
......@@ -253,10 +249,6 @@
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.thm.staging.ts"
},
{
"replace": "src/assets/piwik/piwik.js",
"with": "src/assets/piwik/piwik.staging.js"
}
],
"styles": [
......@@ -349,22 +341,6 @@
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.thm.beta.ts"
},
{
"replace": "src/assets/piwik/piwik.js",
"with": "src/assets/piwik/piwik.beta.js"
},
{
"replace": "src/assets/images/logo.svg",
"with": "src/assets/images/logo.westermann.svg"
},
{
"replace": "src/assets/images/logo.xl.svg",
"with": "src/assets/images/logo.westermann.xl.svg"
},
{
"replace": "src/assets/images/logo_transparent.png",
"with": "src/assets/images/logo_transparent.westermann.png"
}
],
"styles": [
......@@ -417,22 +393,6 @@
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.westermann.ts"
},
{
"replace": "src/assets/piwik/piwik.js",
"with": "src/assets/piwik/piwik.westermann.js"
},
{
"replace": "src/assets/images/logo.svg",
"with": "src/assets/images/logo.westermann.svg"
},
{
"replace": "src/assets/images/logo.xl.svg",
"with": "src/assets/images/logo.westermann.xl.svg"
},
{
"replace": "src/assets/images/logo_transparent.png",
"with": "src/assets/images/logo_transparent.westermann.png"
}
],
"styles": [
......
......@@ -13,6 +13,9 @@ npm install -g angular-http-server
echo "Building the app"
npm run build:"$1"
echo "Copying assets"
npm run copy:"$1"
cd /usr/src/app/dist
echo "Starting the http server"
angular-http-server --path browser/ --silent -p 4711 &
......
......@@ -22,6 +22,18 @@
"build:STAGING_THM": "ng build --configuration=thmStaging",
"build:BETA_THM": "ng build --configuration=thmBeta",
"build:WESTERMANN": "ng build --configuration=westermann",
"copy:piwik:PROD": "cp src/assets/piwik/piwik.js dist/browser/assets/piwik/piwik.js",
"copy:piwik:STAGING_THM": "cp src/assets/piwik/piwik.staging.js dist/browser/assets/piwik/piwik.js",
"copy:piwik:BETA_THM": "cp src/assets/piwik/piwik.beta.js dist/browser/assets/piwik/piwik.js",
"copy:piwik:WESTERMANN": "cp src/assets/piwik/piwik.westermann.js dist/browser/assets/piwik/piwik.js",
"copy:images:PROD": "",
"copy:images:STAGING_THM": "",
"copy:images:BETA_THM": "",
"copy:images:WESTERMANN": "cp src/assets/images/logo.westermann.svg dist/browser/assets/images/logo.svg; cp src/assets/images/logo.westermann.xl.svg dist/browser/assets/images/logo.xl.svg; cp src/assets/images/logo_transparent.westermann.png dist/browser/assets/images/logo_transparent.png",
"copy:PROD": "npm run copy:piwik:PROD; npm run copy:images:PROD",
"copy:STAGING_THM": "npm run copy:piwik:STAGING_THM; npm run copy:images:STAGING_THM",
"copy:BETA_THM": "npm run copy:piwik:BETA_THM; npm run copy:images:BETA_THM",
"copy:WESTERMANN": "npm run copy:piwik:WESTERMANN; npm run copy:images:WESTERMANN",
"build:PROD:DEPLOY": "npm run build:PROD && npm run purify",
"build:PROD-STATS": "ng build --prod --stats-json",
"bundle-report": "webpack-bundle-analyzer dist/browser/stats.json",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment