How to use the @angular/compiler-cli/src/main.main function in @angular/compiler-cli

To help you get started, we’ve selected a few @angular/compiler-cli examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dolanmiu / ng-color / gulpfile.js View on Github external
gulp.task('ngc', function () {
  return ngc({
    project: `${tmpFolder}/tsconfig.es5.json`
  })
    .then((exitCode) => {
      if (exitCode === 1) {
        // This error is caught in the 'compile' task by the runSequence method callback
        // so that when ngc fails to compile, the whole compile process stops running
        throw new Error('ngc compilation failed');
      }
    });
});
github shubhi1407 / ng2-notify-popup / gulpfile.js View on Github external
gulp.task('ngc', function () {
  return ngc({
    project: `${tmpFolder}/tsconfig.es5.json`
  })
    .then((exitCode) => {
      if (exitCode === 1) {
        // This error is caught in the 'compile' task by the runSequence method callback
        // so that when ngc fails to compile, the whole compile process stops running
        throw new Error('ngc compilation failed');
      }
    });
});
github korniychuk / angular-autofocus-fix / old / gulpfile.js View on Github external
gulp.task('ngc', function () {
  return ngc({
    project: `${tmpFolder}/tsconfig.es5.json`
  })
    .then((exitCode) => {
      if (exitCode === 1) {
        // This error is caught in the 'compile' task by the runSequence method callback
        // so that when ngc fails to compile, the whole compile process stops running
        throw new Error('ngc compilation failed');
      }
    });
});
github AnthonyNahas / ngx-auth-firebaseui / gulpfile.js View on Github external
const ngc = (args) => new Promise((resolve, reject) => {// Promisify version of the ngc compiler
  let exitCode = require('@angular/compiler-cli/src/main').main(args);
  resolve(exitCode);
});
const rollup = require('rollup');
github DSI-HUG / dejajs-components / gulpfile.js View on Github external
const ngc = (args) => new Promise((resolve, reject) => { // Promisify version of the ngc compiler
		let exitCode = require('@angular/compiler-cli/src/main').main(args);
		resolve(exitCode);
	});
github RaphaelJenni / FirebaseUI-Angular / gulpfile.js View on Github external
gulp.task('ngc', function () {
  return ngc({
    project: `${tmpFolder}/tsconfig.json`
  })
    .then((exitCode) => {
      if (exitCode === 1) {
        // This error is caught in the 'compile' task by the runSequence method callback
        // so that when ngc fails to compile, the whole compile process stops running
        throw new Error('ngc compilation failed');
      }
    });
});
github theunreal / ngx-basicscroll / gulpfile.js View on Github external
const ngc = (args) => new Promise((resolve, reject)=>{// Promisify version of the ngc compiler
  let exitCode = require('@angular/compiler-cli/src/main').main(args);
  resolve(exitCode);
});
const rollup = require('rollup');
github firebaseui / ng-bootstrap / gulpfile.js View on Github external
const ngc = (args) => new Promise((resolve, reject) => {// Promisify version of the ngc compiler
  let exitCode = require('@angular/compiler-cli/src/main').main(args);
  resolve(exitCode);
});
const rollup = require('rollup');
github GetTerminus / terminus-ui / tooling / build.js View on Github external
  .then(() => ngc({ project: `${tempLibFolder}/tsconfig.es5.json` })
    .then(exitCode => exitCode === 0 ? Promise.resolve() : Promise.reject())
    .then(() => console.log('ES5 compilation succeeded.'))
  )
github MurhafSousli / ngx-disqus / gulpfile.js View on Github external
    .then(() => ngc({ project: `${buildFolder}/tsconfig.lib.json` })
      .then(exitCode => exitCode === 0 ? Promise.resolve() : Promise.reject())
      .then(() => gulpUtil.log('ES2015 compilation succeeded.'))
    )