descriptionnone
homepage URLhttp://mootools.net
repository URLhttps://github.com/mootools/mootools-core.git
ownerknittl89+git@googlemail.com
last changeSat, 26 Aug 2017 10:25:02 +0000 (26 11:25 +0100)
last refreshThu, 18 Apr 2024 19:02:08 +0000 (18 21:02 +0200)
content tags
add:
README.md

MooTools Core

Build Status

Selenium Test Status


This repository is for MooTools developers; not users. All users should download MooTools from MooTools.net


Contribute

You are welcome to contribute to MooTools! What we ask of you:

  1. To report a bug:

    1. Create a jsFiddle with the minimal amount of code to reproduce the bug.
    2. Create a GitHub Issue, and link to the jsFiddle.
     
  2. To fix a bug:

    1. Clone the repo.
    2. Add a spec.
    3. Fix the bug.
    4. Build and run the specs.
    5. Push to your GitHub fork.
    6. Create Pull Request, and send Pull Request.
     

Do try to contribute! This is a community project.

Building & Testing

Current build process uses Grunt, Grunt MooTools Packager plugin, and Karma related repos.

By default, the build process runs the tests (specs) relevant to the build. To build without testing see the packager build targets.

Building MooTools With Compatibility

This means 1.5.1 that is compatible with: 1.4.6, 1.3.x, 1.2.x, and so on.

Examples

    grunt compat             # or
    grunt packager:compat    # to only build the source

Building MooTools Without Compatibility

This means 1.5.1 without deprecated code in 1.4.6, 1.3.x, 1.2.x, and so on.

'Proceed at your own risk'
See the changelog or the blog related to each version for migrating your code.

Examples

    grunt nocompat           # or
    grunt packager:nocompat  # to only build the source

Advanced Building and Testing

See the Gruntfile and MooTools packager for further options.

Examples

    # with compat
    grunt compat --file=Function    # builds with only Core/Function and dependencies, then tests against specs in Specs/Core/Function
    grunt compat --module=Class     # tests against all specs in the Specs/Class *folder* (use --file to limit the build)

    # without compat
    grunt nocompat --file=Function  # builds with only Core/Function and dependencies, then tests against specs in Specs/Core/Function
    grunt nocompat --module=Class   # tests against all specs in the Specs/Class *folder* (use --file to limit the build)

Removing Other Packager Blocks

You'll need to add a specific task to the Gruntfile. See packager's documentation for more examples.

Testing locally

I you want to test your local repo you need just some small steps. Follow these in order:

$ git clone https://github.com/mootools/mootools-core  # clone the MooTools repo
$ cd mootools-core                                     # get into the directory
$ npm install                                          # install de testing tools
$ `npm bin`/grunt test                                 # run the specs!

To test a build in a local browser, you can run the :dev target of that build to start a test server at http://localhost:9876/ and point your browser to it. When you're done testing, pressing Ctrl+c in the window running the grunt process should stop the server.

Example:

    $ `npm bin`/grunt compat:dev

If the log is too long, or if you want to store it in a file you can do:

$ grunt > logs.txt   # This will create a new file called logs.txt in the local directory

Testing on Travis & Sauce Labs

Every new Build and Pull Request is now tested on Travis and Sauce Labs. You can also open your own free account on Travis and Sauce Labs to test new code ideas there.

Travis testing uses PhantomJS which is a headless browser. When connected to Sauce Labs then it is possible to choose any number of different Browsers and Platforms. You will need in this case to change the login key so it will match your account.

To add new Browsers in Sauce Labs testing you can make changes to Grunt/options/browsers.json:

Browsers, Platforms, and More

This test suite is ready for Travis & SauceLabs. You can also run locally.

Support:

More Information

See the MooTools Wiki for more information

shortlog
2017-08-26 Cristian CarlessoMerge pull request #2789 from SergioCrisostomo/upgrade... master
2017-08-24 Sergio Crisostomoupgrade karma-sauce-launcher2789/head
2017-08-24 Cristian CarlessoMerge pull request #2787 from kentaromiura/fix-grunt...
2017-08-24 Cristian CarlessoUpdate phantomjs,2787/head
2016-09-23 Arian StolwijkMerge pull request #2772 from SergioCrisostomo/fix... 2346/head
2016-09-22 Sergio Crisostomocorrect link name from Event to DOMEvent2772/head
2016-08-16 Tim WienkAdd endofline normalisation for JavaScript files.
2016-03-17 Arian StolwijkMerge pull request #2765 from stweil/master
2016-03-17 Stefan WeilFix typos in comments and strings2765/head
2015-12-14 Sergio CrisostomoHello 1.6.1-dev.
2015-12-14 Sergio CrisostomoWelcome 1.6.0.1.6.0
2015-12-08 Sergio CrisostomoMerge pull request #2760 from SergioCrisostomo/rename...
2015-12-08 Sergio CrisostomoRename <Type>.from to <Type>.convert2760/head
2015-12-08 Sergio CrisostomoMerge pull request #2758 from SergioCrisostomo/Array...
2015-12-08 Sergio Crisostomoreview fixes2758/head
2015-12-04 Sergio CrisostomoRename Array.from to Array.convert, keep as is in compa...
...
tags
8 years ago 1.6.0 1.6.0.
8 years ago 1.5.2 1.5.2.
9 years ago 1.5.1 1.5.1.
9 years ago 1.5.0 1.5.0.
11 years ago 1.2.6 1.2.6
12 years ago 1.4.5 1.4.5
12 years ago 1.4.4 1.4.4
12 years ago 1.4.3
12 years ago 1.4.2
12 years ago 1.4.1 This is 1.4.1
12 years ago 1.4.0 Welcome 1.4.0
12 years ago 1.3.2 Welcome to 1.3.2
13 years ago 1.3.1 Welcome to 1.3.1
13 years ago 1.3
13 years ago 1.2.5
13 years ago 1.3rc1
...
heads
6 years ago master
11 years ago 1.2x
11 years ago 2.0wip
12 years ago 1.3x
14 years ago 1.1x
forks
Cached version (4090s old)
mootools/dkf.git knittl89+git@googlemail.com 13 years ago