Workiva / wGulp

Opinionated Suite of Gulp Tasks for JavaScript and TypeScript projects.
Apache License 2.0
12 stars 9 forks source link

Release notes for 0.7.0 #76

Closed maxwellpeterson-wf closed 10 years ago

maxwellpeterson-wf commented 10 years ago

Need a place to draft up release notes so I'm doing it here.

Major breaking changes in this release!

This release contains a number of big changes to wGulp, be sure to read through the release notes carefully and update your gulpfile.js where necessary.

Features and Improvements

First thing you will want to do is copy the languages configuration into your customizedOptions in gulpfile.js:

languages: ['javascript', 'jsx', 'typescript', 'coffeescript', 'livescript']

Remove any languages you don't use in your project. This will automatically trim which tasks get executed.

2. Config Options with Underscores

Find any of these options you are using in customizedOptions and replace them with their new name:

If you have modified any of the task lists (build_tasks test_tasks default_tasks dist_tasks) you will need to make these changes to the new taskTree instead.

Start by reading this section of the documentation: https://github.com/Workiva/wGulp#task-dependency-tree

If you are simply adding or removing tasks to build for example, use the convenient syntax:

taskTree: {
    build: {
        include: ['myCustomTask']
    }
}

Before you exclude any task, think about whether it might already be excluded with your new language configuration setup in step 1. These are the tasks that get excluded for each language when it is removed from the languages config:

        coffeescript: ['coffee'],
        javascript: ['copy:js', 'jshint', 'minify:js', 'copy:jstest'],
        jsx: ['jsx'],
        livescript: ['livescript'],
        typescript: ['tsd', 'tsc', 'tslint', 'tsc:test']

4. Subtasks with Options That Have Underscores

Any subtasks that had configuration with underscores have been changed

The following task names will need to be change if you reference them anywhere: