Skip to content

Commit

Permalink
Created new build script for error page
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jan 23, 2019
1 parent c4043ea commit 1a8aa58
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 3 deletions.
20 changes: 20 additions & 0 deletions ui/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const fs = require('fs-extra');

fs.ensureDir('./dist/unsecured').then(function () {
try {
fs.copySync('./src/error.html', './dist/unsecured/error.html')
console.log('copy error page success!')
} catch (err) {
console.error(err)
}

try {
fs.copySync('./node_modules/font-awesome/fonts', './dist/unsecured');
console.log('copy fonts success!')
} catch (err) {
console.log(err);
}
});



26 changes: 26 additions & 0 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"test": "ng test --code-coverage",
"lint": "ng lint",
"e2e": "ng e2e",
"build:static": "node-sass src/static.scss ./dist/static.css",
"copy:static": "ncp ./src/static.html ./dist/static.html",
"copy": "npm run build:static && npm run copy:static",
"build:static": "node-sass src/static.scss ./dist/unsecured/static.css",
"copy:static": "node ./build",
"copy": "npm run copy:static && npm run build:static",
"buildProd": "ng build --prod && npm run copy",
"bundle-report": "webpack-bundle-analyzer dist/stats.json"
},
Expand Down Expand Up @@ -55,6 +55,7 @@
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"codelyzer": "~4.2.1",
"fs-extra": "^7.0.1",
"jasmine-core": "~2.99.0",
"jasmine-marbles": "^0.3.1",
"jasmine-spec-reporter": "~4.1.0",
Expand Down
File renamed without changes.

0 comments on commit 1a8aa58

Please sign in to comment.