How to use aurelia-tools - 10 common examples

To help you get started, we’ve selected a few aurelia-tools 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 SpoonX / aurelia-notification / build / tasks / build.js View on Github external
gulp.task('build-dts', function() {
  var importsToAdd = []; // stores extracted imports

  return gulp.src(paths.tsSource)
    .pipe(tools.sortFiles())
    .pipe(through2.obj(function(file, enc, callback) {  // extract all imports to importsToAdd
      file.contents = new Buffer(tools.extractImports(file.contents.toString('utf8'), importsToAdd));
      this.push(file);
      return callback();
    }))
    .pipe(concat(jsName))
    .pipe(to5(assign({}, compilerOptions.dts())));
});
github MarcScheib / aurelia-notify / build / tasks / build.js View on Github external
.pipe(through2.obj(function(file, enc, callback) {
      file.contents = new Buffer(tools.extractImports(file.contents.toString('utf8'), importsToAdd));
      this.push(file);
      return callback();
    }))
    .pipe(concat(jsName))
github aurelia / binding / build / tasks / build.js View on Github external
return src.pipe(through2.obj(function(file, enc, callback) {
      file.contents = new Buffer(tools.extractImports(file.contents.toString('utf8'), importsToAdd));
      this.push(file);
      return callback();
    }))
    .pipe(concat(jsName))
github aurelia / loader-default / build / tasks / build.js View on Github external
return src.pipe(through2.obj(function(file, enc, callback) {
      file.contents = new Buffer(tools.extractImports(file.contents.toString('utf8'), importsToAdd));
      this.push(file);
      return callback();
    }))
    .pipe(concat(jsName))
github aurelia / validatejs / build / tasks / build.js View on Github external
return src.pipe(through2.obj(function(file, enc, callback) {
      file.contents = new Buffer(tools.extractImports(file.contents.toString('utf8'), importsToAdd));
      this.push(file);
      return callback();
    }))
    .pipe(concat(jsName))
github aurelia / templating-binding / build / tasks / build.js View on Github external
return src.pipe(through2.obj(function(file, enc, callback) {
      file.contents = new Buffer(tools.extractImports(file.contents.toString('utf8'), importsToAdd));
      this.push(file);
      return callback();
    }))
    .pipe(concat(jsName))
github aurelia / history-browser / build / tasks / build.js View on Github external
gulp.task('build-index', function(){
  var importsToAdd = [];
  
  return gulp.src(paths.source)
    .pipe(tools.sortFiles())
    .pipe(through2.obj(function(file, enc, callback) {
      file.contents = new Buffer(tools.extractImports(file.contents.toString('utf8'), importsToAdd));
      this.push(file);
      return callback();
    }))
    .pipe(concat(jsName))
    .pipe(insert.transform(function(contents) {
      return tools.createImportBlock(importsToAdd) + contents;
    }))
    .pipe(gulp.dest(paths.output));
});
github charlespockert / aurelia-bs-grid / build / tasks / build.js View on Github external
gulp.task('build-index', function(){
  var importsToAdd = [];

  return gulp.src([paths.root + '*.js', '!' + paths.root + 'index.js'])
    .pipe(tools.sortFiles())
    .pipe(through2.obj(function(file, enc, callback) {
      file.contents = new Buffer(tools.extractImports(file.contents.toString("utf8"), importsToAdd));
      this.push(file);
      return callback();
    }))
    .pipe(concat(jsName))
    .pipe(insert.transform(function(contents) {
      return tools.createImportBlock(importsToAdd) + contents;
    }))
    .pipe(to5(assign({}, compilerOptions, {modules:'common'})));
});
github MarcScheib / aurelia-notify / build / tasks / build.js View on Github external
gulp.task('build-index', function() {
  var importsToAdd = paths.importsToAdd.slice();

  var src = gulp.src(paths.files);
  if (paths.sort) {
    src = src.pipe(tools.sortFiles());
  }

  if (paths.ignore) {
    paths.ignore.forEach(function(filename) {
      src = src.pipe(gulpIgnore.exclude(filename));
    });
  }

  return src
    .pipe(through2.obj(function(file, enc, callback) {
      file.contents = new Buffer(tools.extractImports(file.contents.toString('utf8'), importsToAdd));
      this.push(file);
      return callback();
    }))
    .pipe(concat(jsName))
    .pipe(insert.transform(function(contents) {
github aurelia / binding / build / tasks / build.js View on Github external
gulp.task('build-index', function() {
  var importsToAdd = paths.importsToAdd.slice();

  var src = gulp.src(paths.files);

  if (paths.sort) {
    src = src.pipe(tools.sortFiles());
  }

  if (paths.ignore) {
    paths.ignore.forEach(function(filename){
      src = src.pipe(gulpIgnore.exclude(filename));
    });
  }

  return src.pipe(through2.obj(function(file, enc, callback) {
      file.contents = new Buffer(tools.extractImports(file.contents.toString('utf8'), importsToAdd));
      this.push(file);
      return callback();
    }))
    .pipe(concat(jsName))
    .pipe(insert.transform(function(contents) {
      return tools.createImportBlock(importsToAdd) + contents;

aurelia-tools

Tools and utility functions used to build and develop Aurelia's libraries.

MIT
Latest version published 7 years ago

Package Health Score

54 / 100
Full package analysis