Skip to content

Commit

Permalink
Merge branch 'grunt' into v2.0.0alpha
Browse files Browse the repository at this point in the history
Conflicts:
	grunt.js
	package.json
	public/dist/humanize.min.js
  • Loading branch information
aaylward committed Jun 14, 2013
2 parents 527a5c8 + 6a6174e commit dd4d5ca
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 777 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ node_js:
- "0.11"
- "0.10"
- "0.8"
- "0.6"
notifications:
email: false
47 changes: 47 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
module.exports = function(grunt) {
grunt.initConfig({
coffee: {
glob_to_multiple: {
options: {
bare: false
},
cwd: 'coffee/',
expand: true,
flatten: false,
src: '**/*.coffee',
dest: 'public/',
ext: '.js'
}
},

watch: {
coffee: {
files: "<%= coffee.glob_to_multiple.src %>",
tasks: ["coffee", "uglify"]
}
},

uglify: {
dist: {
src: 'public/src/*.js',
dest: 'public/dist/humanize.min.js'
}
},

jasmine: {
options: {
specs: ['public/test/*.js']
},
src: '<%= uglify.dist.dest %>'
}
});

grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-jasmine');

grunt.registerTask('default', ['coffee', 'uglify']);
grunt.registerTask('build', ['coffee', 'uglify', 'jasmine']);
grunt.registerTask('test', ['coffee', 'uglify', 'jasmine']);
};
1 change: 0 additions & 1 deletion coffee/test/test_humanize.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ describe 'compactInteger tests', ->
expect(Humanize.compactInteger(100)).toEqual('100')
expect(Humanize.compactInteger(123456789, 1)).toEqual('123.5M')


describe 'Ordinal value of numbers Test Suite', ->

describe 'Ordinal value for numbers ending in zero', ->
Expand Down
44 changes: 0 additions & 44 deletions grunt.js

This file was deleted.

13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@
"dependencies": {
},
"readmeFilename": "README.md",
"devDependencies": {
"grunt": "~0.3.15",
"grunt-coffee": "0.0.x",
"grunt-jasmine-runner": "0.6.x"
}
"devDependencies": {
"grunt-cli": "~0.1.9",
"grunt": "~0.4.1",
"grunt-contrib-jasmine": "~0.4.2",
"grunt-contrib-coffee": "~0.7.0",
"grunt-contrib-uglify": "~0.2.2",
"grunt-contrib-watch": "~0.4.4"
}
}
1 change: 0 additions & 1 deletion public/dist/humanize.min.js

This file was deleted.

0 comments on commit dd4d5ca

Please sign in to comment.