2.0.0 • Published 9 months ago

@rugal.tu/gulp-initer v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Gulp-Initer

Based on gulp Easy to use gulp for copy/clear npm folders/files

How to use:

  • Install Gulp-Initer from npm
  • Create gulpfile.js
  • Include gulp-initer in your gulpfile.js
const Initer = require('@rugal.tu/gulp-initer');

Methods:

  • WithSourceRoot()

  • WithTargetRoot()

Set foloder source/target path, if not set the default root directory is used Default source/target root path is node_modules and wwwroot/npm

Initer
    .WithSourceRoot('node_modules')
    .WithTargetRoot('wwwroot/npm');

  • UseClearTarget()

Enable/Disable clear task, if not set the default is enable true

Initer
    .UseClearTarget(true);

Add the folder/file that needs to be copied to the settings You can use these to filter .js .ts .css files:

  • AddFolder_Js()

  • AddFolder_Ts()

  • AddFolder_Css()

Initer
    .AddFolder_Js('vue/dist')        //copy .js files from 'vue/dist' to 'vue/dist'
    .AddFolder_Ts('vue/dist', 'vue') //copy .ts files from 'vue/dist' to 'vue'
    .AddFolder_Css('bootstrap/dist');

You can also use AddFolder() to customize the file types to filter:

  • AddFolder()

Initer
    .AddFolder('bootstrap/dist', null, '*.+(js|css)') // copy .js .css files from 'bootstrap/dist' to 'bootstrap/dist'
    .AddFolder('vue/dist', 'vue', '*.+(js|ts)');      // copy .js .ts files from 'vue/dist' to 'vue'

  • InitTask()

    After completing the folder settings, just call InitTask() to create the task and set the task triggering time in Task Explorer
Initer
    .AddFolder('vue/dist')
    .InitTask();
2.0.0-beta.7

9 months ago

2.0.0-beta.2

9 months ago

2.0.0-beta.1

9 months ago

2.0.0-beta.6

9 months ago

2.0.0-beta.5

9 months ago

2.0.0-beta.4

9 months ago

2.0.0

9 months ago

2.0.0-beta.3

9 months ago

1.3.2

10 months ago

1.3.1

10 months ago

1.3.0

10 months ago

1.2.0

11 months ago

1.1.7

11 months ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago