Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
language: c

os:
- linux
- osx
- linux
- osx

env:
matrix:
- export NODE_VERSION="11"
- export NODE_VERSION="10"
- export NODE_VERSION="9"
- export NODE_VERSION="8"
matrix:
- export NODE_VERSION="13"
- export NODE_VERSION="12"
- export NODE_VERSION="11"
- export NODE_VERSION="10"

matrix:
fast_finish: true
fast_finish: true

before_install:
- echo $TRAVIS_OS_NAME
- "export TRAVIS_COMMIT_MSG=\"$(git log --format=%B --no-merges -n 1)\""
- export START_FULL_TESTS=$(echo $TRAVIS_COMMIT_MSG | grep '\[full\]' -c)
- if [ ${START_FULL_TESTS} = "1" ]; then echo "FULL TESTS!"; fi
- git clone https://github.com/creationix/nvm.git ./.nvm
- source ./.nvm/nvm.sh
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- echo $TRAVIS_OS_NAME
- 'export TRAVIS_COMMIT_MSG="$(git log --format=%B --no-merges -n 1)"'
- export START_FULL_TESTS=$(echo $TRAVIS_COMMIT_MSG | grep '\[full\]' -c)
- if [ ${START_FULL_TESTS} = "1" ]; then echo "FULL TESTS!"; fi
- git clone https://github.com/creationix/nvm.git ./.nvm
- source ./.nvm/nvm.sh
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION

before_script:
- npm -v
- npm install
- npm install -g gulp
- npm -v
- npm install
- npm install -g gulp

script:
- gulp init
- gulp --release --ie
- gulp init
- gulp --release --ie
34 changes: 17 additions & 17 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,38 @@
# http://www.appveyor.com/docs/appveyor-yml

# Build version format
version: "{build}"
version: '{build}'

platform:
- x64
- x86
- x64
- x86

clone_depth: 10

# Fix line endings on Windows
init:
- git config --global core.autocrlf true
- git config --global core.autocrlf true

# What combinations to test
environment:
matrix:
- nodejs_version: 11
- nodejs_version: 10
- nodejs_version: 9
- nodejs_version: 8
matrix:
- nodejs_version: 13
- nodejs_version: 12
- nodejs_version: 11
- nodejs_version: 10

install:
- ps: Install-Product node $env:nodejs_version $env:platform
- node --version
- npm install -g npm
- npm --version
- npm install -g gulp
- npm install
- ps: Install-Product node $env:nodejs_version $env:platform
- node --version
- npm install -g npm
- npm --version
- npm install -g gulp
- npm install

build: off

build_script:
- gulp init
- gulp init

test_script:
- cmd: gulp build --release --ie
- cmd: gulp build --release --ie
4 changes: 2 additions & 2 deletions docs/en/watchers.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ By default, each watcher requires a set of npm-modules and configs to work corre

```javascript
const gulp = tars.packages.gulp;
const runSequence = tars.packages.runSequence.use(gulp);
const gutil = tars.packages.gutil;
const chokidar = tars.packages.chokidar;
const watcherLog = tars.helpers.watcherLog;
Expand All @@ -30,7 +31,7 @@ const watcherLog = tars.helpers.watcherLog;
).on('all', function(event, path) {
watcherLog(event, path);
// You could start as many tasks as you need
gulp.start(/* Task name (String) to start */);
runSequence(/* Task name (String) to start */);
});
```

Expand All @@ -41,4 +42,3 @@ You can pass options for `chokidar` after patterns. If default options are ok fo
You can pass a pattern or an array of patterns of paths to files that you want to filter from watching within current watcher into the option `ignored`.

Task name is passed to `gulp.start`, which should be run on any changes in watched files. By default watchers work for all file operations (delete, create, rename). You can change this behavior by changing the `.on('all', function(event, path)` to the needed event. List of available events is in [chokidar docs](https://github.com/paulmillr/chokidar#getting-started).

3 changes: 2 additions & 1 deletion docs/ru/watchers.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

```javascript
const gulp = tars.packages.gulp;
const runSequence = tars.packages.runSequence.use(gulp);
const gutil = tars.packages.gutil;
const chokidar = tars.packages.chokidar;
const watcherLog = tars.helpers.watcherLog;
Expand All @@ -30,7 +31,7 @@ const watcherLog = tars.helpers.watcherLog;
).on('all', function(event, path) {
watcherLog(event, path);
// You could start as many tasks as you need
gulp.start(/* Task name (String) to start */);
runSequence(/* Task name (String) to start */);
});
```

Expand Down
37 changes: 25 additions & 12 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,41 @@ const gulp = tars.packages.gulp;
// Require system and user's tasks
// You can add your own tasks.
// All your tasks have to be in tars/user-tasks folder
tars.helpers.tarsFsHelper
.getTasks()
.forEach(file => require(file)());
tars.helpers.tarsFsHelper.getTasks().forEach((file) => require(file)());

// Register links to main tasks without namespace
// Build-dev task. Build dev-version (without watchers)
gulp.task('build-dev', () => gulp.start('main:build-dev'));
gulp.task(
'build-dev',
gulp.series('main:build-dev', (done) => done()),
);

// Dev task. Build dev-version with watchers and livereload
gulp.task('dev', () => gulp.start('main:dev'));
gulp.task(
'dev',
gulp.series('main:dev', (done) => done()),
);

// Build task. Build release version
gulp.task('build', () => gulp.start('main:build'));
gulp.task(
'build',
gulp.series('main:build', (done) => done()),
);

// Init task. Just start init task
gulp.task('init', () => gulp.start('service:init'));

// Re-init task. Just start re-init task
gulp.task('re-init', () => gulp.start('service:re-init'));
gulp.task(
'init',
gulp.series('service:init', (done) => done()),
);

// Update-deps task. Just start update-deps task
gulp.task('update-deps', () => gulp.start('service:update-deps'));
gulp.task(
'update-deps',
gulp.series('service:update-deps', (done) => done()),
);

// Default task. Just start build task
gulp.task('default', () => gulp.start('build'));
gulp.task(
'default',
gulp.series('build', (done) => done()),
);
Loading