Skip to content

Commit

Permalink
Concat sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamRClark committed May 28, 2021
1 parent 2510194 commit 39106bf
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 8 deletions.
13 changes: 13 additions & 0 deletions build-component.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const fs = require('fs-extra');
const concat = require('concat');

build = async () =>{
const files = [
'./dist/ngx-file-select/runtime.js',
'./dist/ngx-file-select/polyfills.js',
'./dist/ngx-file-select/main.js'
];

await concat(files, 'dist/ngx-file-select.js');
}
build();
50 changes: 44 additions & 6 deletions package-lock.json

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build --prod --output-hashing none",
"build": "ng build --prod --output-hashing none && node build-component.js",
"test": "ng test",
"test-headless": "ng test --watch=false --browsers=ChromeHeadless",
"lint": "ng lint",
Expand All @@ -31,10 +31,12 @@
"@angular-devkit/build-angular": "~0.1001.1",
"@angular/cli": "~10.1.1",
"@angular/compiler-cli": "~10.1.1",
"@types/node": "^12.11.1",
"@types/jasmine": "~3.5.0",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",
"codelyzer": "^6.0.0",
"concat": "^1.0.3",
"fs-extra": "^10.0.0",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~5.0.0",
Expand Down

0 comments on commit 39106bf

Please sign in to comment.