From cfff9bd086d8997e23b9a089c76449bb67e1af60 Mon Sep 17 00:00:00 2001 From: Michael Barrett Date: Thu, 30 Apr 2015 10:30:41 +0100 Subject: [PATCH] update project meta --- .editorconfig | 11 +++++++---- .gitignore | 3 ++- .npmignore | 9 +++++++-- .travis.yml | 14 ++++++++++++++ Gruntfile.js | 4 ++-- bower.json | 4 ++++ timestring.js => src/timestring.js | 0 test/timestring.js | 2 +- 8 files changed, 37 insertions(+), 10 deletions(-) rename timestring.js => src/timestring.js (100%) diff --git a/.editorconfig b/.editorconfig index c6c8b36..87bd82d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,9 +1,12 @@ root = true [*] -indent_style = space -indent_size = 2 -end_of_line = lf charset = utf-8 -trim_trailing_whitespace = true +end_of_line = lf +indent_style = space insert_final_newline = true +indent_size = 2 +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false diff --git a/.gitignore b/.gitignore index 3c3629e..d49756d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -node_modules +/node_modules/ +/build/ diff --git a/.npmignore b/.npmignore index 44aaf22..8878e43 100644 --- a/.npmignore +++ b/.npmignore @@ -1,5 +1,10 @@ -test .editorconfig +.gitignore .jshintrc +.travis.yml +bower.json +CHANGELOG.md Gruntfile.js -.DS_Store +LICENSE +README.md +/test/ diff --git a/.travis.yml b/.travis.yml index f94f4ed..43a800f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,21 @@ language: node_js + node_js: + - "0.6" + - "0.8" - "0.10" - "0.11" + - "0.12" + - "iojs" + - "iojs-v1.0.4" + +sudo: false + +cache: + directories: + - node_modules + before_script: - npm install -g grunt-cli + script: grunt test diff --git a/Gruntfile.js b/Gruntfile.js index 30835ef..fa92324 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -11,7 +11,7 @@ module.exports = function(grunt) { uglify: { dist: { files: { - 'dist/<%= pkg.name %>.min.js': '<%= pkg.name %>.js' + 'dist/<%= pkg.name %>.min.js': 'src/<%= pkg.name %>.js' } } }, @@ -21,7 +21,7 @@ module.exports = function(grunt) { }, files: [ 'Gruntfile.js', - '<%= pkg.name %>.js', + 'src/<%= pkg.name %>.js', 'test/**/*.js' ] }, diff --git a/bower.json b/bower.json index 9cf4dee..7215346 100644 --- a/bower.json +++ b/bower.json @@ -10,6 +10,10 @@ "license": "MIT", "ignore": [ "**/.*", + "CHANGELOG.md", + "Gruntfile.js", + "LICENSE", + "README.md", "node_modules", "test" ] diff --git a/timestring.js b/src/timestring.js similarity index 100% rename from timestring.js rename to src/timestring.js diff --git a/test/timestring.js b/test/timestring.js index d27ec9d..826e87e 100644 --- a/test/timestring.js +++ b/test/timestring.js @@ -1,6 +1,6 @@ var chai = require('chai'); var expect = chai.expect; -var timestring = require('../timestring'); +var timestring = require('../src/timestring'); describe('timestring', function() { it('can parse a timestring', function(done) {