Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gruntfile: Restructuring. #2741

Merged
merged 1 commit into from
Oct 5, 2015
Merged

Conversation

timwienk
Copy link
Member

@timwienk timwienk commented Oct 3, 2015

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).
@SergioCrisostomo
Copy link
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