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

Latest commit

 

History

History

scripts-copy

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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/es6-shim/es6-shim.map',
  'node_modules/zone.js/dist/zone.js',
  'node_modules/reflect-metadata/Reflect.js',
  'node_modules/reflect-metadata/Reflect.js.map'
]
  • 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' });
});