Skip to content

Releases: smaato/gulp-tasks

v0.3.0

02 Dec 17:23
Compare
Choose a tag to compare

Breaking change: deploy task no longer accepts env variable names

Now it just accepts the actual values for bucketName, accessKeyId, and secretAccessKey.

gulp.task('deploy', gulpTasks.deploy({
  src: `dist/**/*.*`,
  // Deploys to http://gulp-tasks-test.smaatolabs.net/
  bucketName: 'smt-gulp-tasks-test',
  accessKeyId: process.env.GULP_TASKS_AWS_ACCESS_KEY_ID,
  secretAccessKey: process.env.GULP_TASKS_AWS_SECRET_ACCESS_KEY,
}).task);

compileJs HMR port bug fixed

There was a bug in v0.2.2 which is now fixed. Specifying different hmrPort values will allow multiple compileJs tasks to run simultaneously.

v0.2.3

01 Dec 16:05
Compare
Choose a tag to compare

Bug fixes and improvements

  • compileCss tasks will no longer terminate when there's a syntax error in the SCSS.
  • compileJs compilation errors will now be displayed in the terminal.

v0.2.2

26 Nov 13:03
Compare
Choose a tag to compare

Broken release

Please use v0.3.0 instead.

Original notes

This release extends config of compileJs task with HMR port, which solves the problem of running two and more repositories using gulp-tasks dependency simultaneously.

gulpTasks.compileJs({
  hmrPort: 3000,
});

v0.2.1

19 Nov 18:23
Compare
Choose a tag to compare

This release fixes a bug in the compileCss method, where the compassSassDir config parameter wasn't being derived correctly when not set.

v0.2.0

17 Nov 10:31
Compare
Choose a tag to compare

Breaking changes: interface overhaul.

Here's a brief example of how you can use this module to create and register gulp tasks:

var gulpTasks = require('gulp-tasks');

// Each module method returns an object with `config` and `task` properties.
//   - The config property is used for testing.
//   - The task property is a function which you can register as a gulp task.

gulp.task('demoLintJs', gulpTasks.lintJs({
  src: './src/**/*.js',
}).task);

All task-generation methods:

  • copy: Copy assets from one location to another.
  • compileCss: Compile SCSS with Compass, and run the compiled CSS through PostCSS with
    Autoprefixer.
  • compileHtml: Compile Jade templates into HTML.
  • compileJs: Compile JS with Browserify, Browserify-HMR, and Babelify. Optionally watch for
    changes and re-compile.
  • deploy: Deploy to an AWS S3 bucket.
  • lintJs: Lint JS with ESLint.
  • minifyCss: Minify CSS with clean-css.
  • minifyJs: Minify JS with uglify.
  • serve: Serve files on localhost.
  • testE2e: Run end-to-end tests with Nightwatch in PhantomJS.
  • testUnit: Run unit tests with Karma.

Bug fixes

Fixed bug that prevented the selenium-standalone dependency from being installed.

v0.1.0

29 Oct 10:06
Compare
Choose a tag to compare

Initial set of common Gulp tasks that can be used by projects built with Gulp.