ionic-gulp-scripts-copy

2.0.1 • Public • Published

Scripts Copy Task

Copy default 3rd party scripts to build directory.

API

copyScripts([options])

Returns a stream of Vinyl files that can be piped.

Available options:

  • src (String|Array) Glob or array of globs (What's a glob?) matching 3rd party script files. Default:
[
  'node_modules/es6-shim/es6-shim.min.js',
  'node_modules/zone.js/dist/zone.js',
  'node_modules/reflect-metadata/Reflect.js'
]
  • dest (String) Output path for the HTML files. Default: 'www/build/js'.

Example

var copyScripts = require('ionic-gulp-scripts-copy');

gulp.task('scripts', copyScripts);

gulp.task('scripts', function(){
  return copyScripts({ dest: 'www/my-custom-build-dir' });
});

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i ionic-gulp-scripts-copy

    Weekly Downloads

    5

    Version

    2.0.1

    License

    MIT

    Last publish

    Collaborators

    • jthoms1
    • adamdbradley
    • brandyscarney
    • tlancina