Skip to content

Gruntfile: Restructuring.#2741

Merged
arian merged 1 commit into
mootools:masterfrom
timwienk:gruntfile-restructuring
Oct 5, 2015
Merged

Gruntfile: Restructuring.#2741
arian merged 1 commit into
mootools:masterfrom
timwienk:gruntfile-restructuring

Conversation

@timwienk

@timwienk timwienk commented Oct 3, 2015

Copy link
Copy Markdown
Member

Structure:

Gruntfile.js:

  • configuration of basic environment;
  • loading files with more specific options;
  • loading tasks.

Grunt/options/*.js:

  • configuration options split by target.

Grunt/options/browsers.json:

  • browsers used as customLaunchers for karma.

Grunt/plugins/*:

  • plugins used in/by the grunt tasks.

Grunt/tasks/*:

  • registration of tasks.

Notable changes:

Gruntfile API:

  • renamed "all" and "default" builds to the more clear "compat";
  • new "travis" task, takes care of travis specific stuff;
  • new "test" task, runs all tests (including server tests);
  • new "default" task, runs either the "travis" or "test" task.

Other changes:

  • built files now end up in a "build" directory (or "dist", of course);
  • removed server-tests.js in favour of grunt-mocha-test package;
  • updated the browser list (most notably: added edge);
  • updated .travis.yml to use updated browser list;
  • updated .travis.yml to use new "compat" build, instead of "default";
  • moved syn karma-plugin into Grunt directory;
  • updated and cleaned up .gitignore;
  • removed no longer used packages from .package.json;
  • updated README.md (some parts were actuall already out of date).

Travis-CI tests

Structure:
----------

Gruntfile.js:
	- configuration of basic environment;
	- loading files with more specific options;
	- loading tasks.

Grunt/options/*.js:
	- configuration options split by target.

Grunt/options/browsers.json:
	- browsers used as customLaunchers for karma.

Grunt/plugins/*:
	- plugins used in/by the grunt tasks.

Grunt/tasks/*:
	- registration of tasks.

Notable changes:
----------------

Gruntfile API:

- renamed "all" and "default" builds to the more clear "compat";
- new "travis" task, takes care of travis specific stuff;
- new "test" task, runs all tests (including server tests);
- new "default" task, runs either the "travis" or "test" task.

Other changes:

- built files now end up in a "build" directory (or "dist", of course);
- removed server-tests.js in favour of grunt-mocha-test package;
- updated the browser list (most notably: added edge);
- updated .travis.yml to use updated browser list;
- updated .travis.yml to use new "compat" build, instead of "default";
- moved syn karma-plugin into Grunt directory;
- updated and cleaned up .gitignore;
- removed no longer used packages from .package.json;
- updated README.md (some parts were actuall already out of date).
@timwienk timwienk force-pushed the gruntfile-restructuring branch from aef42d9 to 0914d68 Compare October 3, 2015 09:44
@SergioCrisostomo

Copy link
Copy Markdown
Member

👍 nice work!

arian pushed a commit that referenced this pull request Oct 5, 2015
@arian arian merged commit b3b3b96 into mootools:master Oct 5, 2015
@timwienk timwienk deleted the gruntfile-restructuring branch October 5, 2015 18:58
@mootools mootools deleted a comment Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants