Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request #67 from dhilt/master
Browse files Browse the repository at this point in the history
Support Angular 9
  • Loading branch information
robisim74 committed May 16, 2020
2 parents f0fd18c + dd3f456 commit 5d4d09c
Show file tree
Hide file tree
Showing 5 changed files with 3,178 additions and 2,570 deletions.
3 changes: 2 additions & 1 deletion build.js
Expand Up @@ -12,6 +12,7 @@ const FESM5_DIR = `${NPM_DIR}/fesm5`;
const BUNDLES_DIR = `${NPM_DIR}/bundles`;
const OUT_DIR = `${NPM_DIR}/package`;
const OUT_DIR_ESM5 = `${NPM_DIR}/package/esm5`;
const OUT_DIR_ESM5_ABS = `${__dirname}/${OUT_DIR_ESM5}`;

shell.echo(`Start building...`);

Expand Down Expand Up @@ -61,7 +62,7 @@ if (shell.exec(`rollup -c rollup.es.config.js -i ${NPM_DIR}/${PACKAGE}.js -o ${F
}

shell.echo(`Produce ESM5/FESM5 versions`);
shell.exec(`ngc -p ${OUT_DIR}/tsconfig-build.json --target es5 -d false --outDir ${OUT_DIR_ESM5} --sourceMap`);
shell.exec(`ngc -p ${OUT_DIR}/tsconfig-build.json --target es5 -d false --outDir ${OUT_DIR_ESM5_ABS} --sourceMap`);
shell.cp(`-Rf`, [`${OUT_DIR_ESM5}/src/`, `${OUT_DIR_ESM5}/*.js`, `${OUT_DIR_ESM5}/*.js.map`], `${ESM5_DIR}`);
if (shell.exec(`rollup -c rollup.es.config.js -i ${OUT_DIR_ESM5}/${PACKAGE}.js -o ${FESM5_DIR}/${PACKAGE}.js`).code !== 0) {
shell.echo(chalk.red(`Error: FESM5 version failed`));
Expand Down

0 comments on commit 5d4d09c

Please sign in to comment.