]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Switching to grunt
authorTim Wood <washwithcare@gmail.com>
Fri, 31 Aug 2012 17:08:56 +0000 (10:08 -0700)
committerTim Wood <washwithcare@gmail.com>
Fri, 31 Aug 2012 17:08:56 +0000 (10:08 -0700)
.jshintrc [deleted file]
Makefile [deleted file]
package.json
readme.md

diff --git a/.jshintrc b/.jshintrc
deleted file mode 100644 (file)
index 27ae76d..0000000
--- a/.jshintrc
+++ /dev/null
@@ -1,26 +0,0 @@
-{
-    "node" : true,
-    "es5" : true,
-    "browser" : true,
-    "boss" : false,
-    "curly": true,
-    "debug": false,
-    "devel": false,
-    "eqeqeq": true,
-    "eqnull": true,
-    "evil": false,
-    "forin": false,
-    "immed": false,
-    "laxbreak": false,
-    "newcap": true,
-    "noarg": true,
-    "noempty": false,
-    "nonew": false,
-    "onevar": true,
-    "plusplus": false,
-    "regexp": false,
-    "undef": true,
-    "sub": true,
-    "strict": false,
-    "white": true
-}
diff --git a/Makefile b/Makefile
deleted file mode 100644 (file)
index cc2681c..0000000
--- a/Makefile
+++ /dev/null
@@ -1,71 +0,0 @@
-LANG_ALL = $(wildcard lang/*.js)
-MIN_LANG_ALL = $(addprefix min/,$(LANG_ALL))
-
-
-.PHONY: all
-all: moment langs
-
-min/:
-       mkdir min/
-
-min/lang/:
-       mkdir -p min/lang/
-
-.PHONY: moment pretty
-moment: min/ min/moment.min.js pretty
-
-pretty: min/ min/moment.min.pretty.js
-
-min/moment.min.js: moment.js
-       node_modules/.bin/uglifyjs -o $@ $<
-
-min/moment.min.pretty.js: moment.js
-       node_modules/.bin/uglifyjs -b -o $@ $<
-
-min/lang/%: lang/%
-       node_modules/.bin/uglifyjs -o $@ $<
-
-min/lang-all.min.js: $(LANG_ALL)
-       cat $^ | node_modules/.bin/uglifyjs -o $@
-
-.PHONY: langs
-langs: min/lang/ $(MIN_LANG_ALL) min/lang-all.min.js
-
-.PHONY: size
-size: moment langs
-       # FILESIZE FOR ALL LANGS
-       cp min/lang-all.min.js min/lang-all.min.gzip.js
-       gzip min/lang-all.min.gzip.js
-       gzip -l min/lang-all.min.gzip.js.gz
-       rm min/lang-all.min.gzip.js.gz
-       # FILESIZE FOR LIBRARY
-       cp min/moment.min.js min/moment.min.gzip.js
-       gzip min/moment.min.gzip.js
-       gzip -l min/moment.min.gzip.js.gz
-       rm min/moment.min.gzip.js.gz
-
-.PHONY: size-history
-size-history: moment
-       node test/filesize-history.js
-
-size-diff: moment
-       node test/filesize-diff.js
-
-
-.PHONY: test hint test-moment test-lang
-test: hint test-moment test-lang
-test-zone:
-       node test/zone
-
-hint:
-       node_modules/.bin/jshint moment.js
-
-test-moment:
-       node_modules/.bin/nodeunit ./test/moment
-
-test-lang:
-       node_modules/.bin/nodeunit ./test/lang
-
-.PHONY: clean
-clean:
-       rm -rf min/
index f4f189cd9c7278f11897733276a95963cfbd2dec..d2edd0f51d1f2c3ac305a3b2219c2c0be273b452 100755 (executable)
         }
     ],
     "devDependencies" : {
-        "jshint"    : "latest",
-        "uglify-js" : "latest",
-        "nodeunit"  : "latest"
+        "grunt"  : "latest"
     },
     "scripts": {
-        "test": "make test"
+        "test": "grunt"
     },
     "ender": "./ender.js"
 }
index a03792113e38697cb96710bb3c8fb98062c92291..188fdf3e97cdd9a45f00ed8f2410fbf989bc9d2e 100755 (executable)
--- a/readme.md
+++ b/readme.md
@@ -3,11 +3,9 @@
 
 A lightweight javascript date library for parsing, validating, manipulating, and formatting dates.
 
-### [Check out the website](http://momentjs.com)
+### [Read the docs](http://momentjs.com/docs/)
 
-### [Read the documentation](http://momentjs.com/docs/)
-
-### [Run the unit tests](http://momentjs.com/test/)
+### [Run the tests](http://momentjs.com/test/)
 
 
 Upgrading to 1.6.0
@@ -25,17 +23,17 @@ There are a few things being deprecated in the 1.6.0 release.
 Contributing
 ============
 
-To contribute, fork the library and install these npm packages.
+To contribute, fork the library and install grunt.
 
-    npm install jshint uglify-js nodeunit
+    npm install grunt -g
 
 You can add tests to the files in `/test/moment` or add a new test file if you are adding a new feature.
 
-To run the tests, do `make test` to run all tests, `make test-moment` to test the core library, and `make test-lang` to test all the languages.
+To run the tests, do `grunt test` to run all tests.
 
-To check the filesize, you can use `make size`.
+To check the filesize, you can use `grunt size`.
 
-To minify all the files, use `make moment` to minify moment, `make langs` to minify all the lang files, or just `make` to minfy everything.
+To minify all the files, use `grunt release`.
 
 If your code passes the unit tests (including the ones you wrote), submit a pull request.
 
@@ -162,11 +160,11 @@ Added _date.lang() support.
 Added support for passing multiple formats to try to parse a date. _date("07-10-1986", ["MM-DD-YYYY", "YYYY-MM-DD"]);
 Made parse from string and single format 25% faster.
 
-### 0.5.2 
+### 0.5.2
 
 Buxfix for [issue 8](https://github.com/timrwood/underscore.date/pull/8) and [issue 9](https://github.com/timrwood/underscore.date/pull/9).
 
-### 0.5.1 
+### 0.5.1
 
 Buxfix for [issue 5](https://github.com/timrwood/underscore.date/pull/5).
 
@@ -177,11 +175,11 @@ Removed `_date.now()`, as it is a duplicate of `_date()` with no parameters.
 Removed `_date.isLeapYear(yearNuumber)`. Use `_date([yearNumber]).isLeapYear()` instead.
 Exposed customization options through the `_date.relativeTime`, `_date.weekdays`, `_date.weekdaysShort`, `_date.months`, `_date.monthsShort`, and `_date.ordinal` variables instead of the `_date.customize()` function.
 
-### 0.4.1 
+### 0.4.1
 
 Added date input formats for input strings.
 
-### 0.4.0 
+### 0.4.0
 
 Added underscore.date to npm. Removed dependancies on underscore.
 
@@ -191,7 +189,7 @@ Added `'z'` and `'zz'` to `_.date().format()`. Cleaned up some redundant code to
 
 ### 0.3.1
 
-Cleaned up the namespace. Moved all date manipulation and display functions to the _.date() object. 
+Cleaned up the namespace. Moved all date manipulation and display functions to the _.date() object.
 
 ### 0.3.0
 
@@ -225,4 +223,4 @@ copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
 
 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.