+++ /dev/null
-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/
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
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.
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).
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.
### 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
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.