Skip to content

Commit

Permalink
build: add scripts to build all angular components
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinchoolur committed Sep 19, 2022
1 parent f13113e commit bfb1dbf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tools/build-libraries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ const replace = require('replace-in-file');
exec('npm run build:library');
process.chdir('../lightgallery-vue');
exec('npm run build:library');
process.chdir('../lightgallery-angular/latest');
process.chdir('../lightgallery-angular/14');
exec('npm run build:library');
process.chdir('../13');
exec('npm run build:library');
process.chdir('../12');
exec('npm run build:library');
process.chdir('../11');
exec('npm run build');
Expand Down
8 changes: 7 additions & 1 deletion tools/copy-angular-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ const fs = require('fs-extra');
const colors = require('colors/safe');

(async function main() {
fs.copySync('lightgallery-angular/latest/dist', 'dist/angular');
fs.copySync('lightgallery-angular/14/dist', 'dist/angular');
fs.moveSync('dist/angular/lightgallery-angular', 'dist/angular');
console.log(colors.green('Copied latest angular dist!'));
fs.copySync('lightgallery-angular/13/dist', 'dist/angular/13');
fs.moveSync('dist/angular/13/lightgallery-angular', 'dist/angular/13');
console.log(colors.green('Copies angular 13 dist!'));
fs.copySync('lightgallery-angular/12/dist', 'dist/angular/12');
fs.moveSync('dist/angular/12/lightgallery-angular', 'dist/angular/12');
console.log(colors.green('Copies angular 12 dist!'));
fs.copySync('lightgallery-angular/11/dist', 'dist/angular/11');
fs.moveSync('dist/angular/11/lightgallery-angular', 'dist/angular/11');
console.log(colors.green('Copies angular 11 dist!'));
Expand Down

0 comments on commit bfb1dbf

Please sign in to comment.