Skip to content

Commit

Permalink
Updated to grunt v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-martin committed Apr 2, 2013
1 parent 81318a0 commit e4dd8c4
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 67 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
node_modules
atlassian-ide-plugin.xml
61 changes: 61 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/*global module:false*/
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

jshint: {
file: "./index.js",
options: {
jshintrc: '.jshintrc'
}
},

lint: {
files: [
'array.js'
]
},

it: {
all: {
src: 'test/**/*.test.js',
options: {
timeout: 3000, // not fully supported yet
reporter: 'dotmatrix'
}
}
},
min: {
dist: {
src: ['<banner:meta.banner>', 'index.js'],
dest: '<%= pkg.name %>.min.js'
}
},
watch: {
files: '<config:lint.files>',
tasks: 'lint it'
},
uglify: {
options: {
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author %>;' +
' Licensed <%= pkg.license %> */\n'
},
min: {
files: {
'<%= pkg.name %>.min.js': ['index.js']
}
}
}
});

// Default task.
grunt.registerTask('default', ['jshint', 'it', 'uglify:min']);
grunt.loadNpmTasks('grunt-it');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');

};
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Build Status](https://travis-ci.org/doug-martin/is-extended.png?branch=master)](undefined)

[![browser support](http://ci.testling.com/doug-martin/is-extended.png)](http://ci.testling.com/doug-martin/is-extended)
[![browser support](https://ci.testling.com/doug-martin/is-extended.png)](http://ci.testling.com/doug-martin/is-extended)

# is-extended

Expand Down
56 changes: 0 additions & 56 deletions grunt.js

This file was deleted.

1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@
}

function isEq(obj, obj2) {
/*jshint eqeqeq:false*/
return obj == obj2;
}

Expand Down
4 changes: 2 additions & 2 deletions is-extended.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 12 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
],
"testling": {
"files": "test/browserling.js",
"browsers": {
"iexplore": [6, 7, 8, 9, 10],
"chrome": [4, 23, "canary"],
"firefox": [3, 3.5, 3.6, 4, 19, "nightly"],
"opera": [10, 10.5, 11, 11.5, 11.6, 12, "next"],
"safari": ["5.0.1", 5.1, 6.0]
}
"browsers": [
"ie/6..latest",
"chrome/20..latest",
"firefox/14..latest",
"safari/latest",
"iphone/6",
"ipad/6"
]
},
"author": "Doug Martin",
"license": "MIT",
Expand All @@ -33,6 +34,9 @@
},
"devDependencies": {
"it": "~0.2.0",
"grunt-it": "~0.2.0"
"grunt-it": "~0.3.0",
"grunt": "~0.4.1",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-jshint": "~0.3.0"
}
}

0 comments on commit e4dd8c4

Please sign in to comment.