Permalink
Browse files

added .jshintrc and connect task.

  • Loading branch information...
1 parent 2464ec3 commit f53d23cba8d9945b869509228183456239bcb803 @ngryman committed Feb 24, 2013
Showing with 61 additions and 47 deletions.
  1. +17 −0 .jshintrc
  2. +12 −16 Gruntfile.js
  3. +32 −31 package.json
View
@@ -0,0 +1,17 @@
+{
+ "curly": false,
+ "eqeqeq": false,
+ "immed": true,
+ "latedef": true,
+ "newcap": true,
+ "noarg": true,
+ "sub": true,
+ "undef": true,
+ "boss": true,
+ "eqnull": true,
+ "browser": true,
+ "expr": true,
+ "globals": {
+ "jQuery": true
+ }
+}
View
@@ -13,22 +13,7 @@ module.exports = function(grunt) {
},
jshint: {
options: {
- curly: false,
- eqeqeq: false,
- immed: true,
- latedef: true,
- newcap: true,
- noarg: true,
- sub: true,
- undef: true,
- boss: true,
- eqnull: true,
- browser: true,
- expr: true,
- globals: {
- jQuery: true
-
- }
+ jshintrc: '.jshintrc'
},
files: ['Gruntfile.js', 'src/**/*.js', 'test/**/*.js']
},
@@ -66,13 +51,24 @@ module.exports = function(grunt) {
watch: {
files: '<%= jshint.files %>',
tasks: ['test']
+ },
+ connect: {
+ server: {
+ options: {
+ hostname: null, // waiting PR to be merged: https://github.com/gruntjs/grunt-contrib-connect/pull/19
+ port: 3000,
+ base: '.',
+ keepalive: true
+ }
+ }
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
+ grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-mocha');
grunt.registerTask('default', ['jshint', 'mocha', 'concat', 'uglify']);
View
@@ -1,33 +1,34 @@
{
- "name": "jquery.finger",
- "version": "0.0.3",
- "author": {
- "name": "Nicolas Gryman",
- "email": "ngryman@gmail.com"
- },
- "license": "MIT",
- "homepage": "https://github.com/ngryman/jquery.finger",
- "repository": {
- "type": "git",
- "url": "https://github.com/ngryman/jquery.finger.git"
- },
- "bugs": {
- "url": "https://github.com/ngryman/jquery.finger/issues",
- "email": "ngryman@gmail.com"
- },
- "engines": {
- "node": ">= 0.8.14"
- },
- "scripts": {
- "preinstall": "npm i -g grunt-cli",
- "test": "grunt mocha"
- },
- "devDependencies": {
- "grunt": "~0.4.0rc8",
- "grunt-contrib-jshint": "~0.1.1",
- "grunt-contrib-concat": "~0.1.2",
- "grunt-contrib-uglify": "~0.1.1rc6",
- "grunt-contrib-watch": "~0.2.0",
- "grunt-mocha": "~0.2.2"
- }
+ "name": "jquery.finger",
+ "version": "0.0.3",
+ "author": {
+ "name": "Nicolas Gryman",
+ "email": "ngryman@gmail.com"
+ },
+ "license": "MIT",
+ "homepage": "https://github.com/ngryman/jquery.finger",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/ngryman/jquery.finger.git"
+ },
+ "bugs": {
+ "url": "https://github.com/ngryman/jquery.finger/issues",
+ "email": "ngryman@gmail.com"
+ },
+ "engines": {
+ "node": ">= 0.8.14"
+ },
+ "scripts": {
+ "preinstall": "npm i -g grunt-cli",
+ "test": "grunt mocha"
+ },
+ "devDependencies": {
+ "grunt": "~0.4.0rc8",
+ "grunt-contrib-jshint": "~0.1.1",
+ "grunt-contrib-concat": "~0.1.2",
+ "grunt-contrib-uglify": "~0.1.1rc6",
+ "grunt-contrib-watch": "~0.2.0",
+ "grunt-contrib-connect": "~0.1.2",
+ "grunt-mocha": "~0.2.2"
+ }
}

0 comments on commit f53d23c

Please sign in to comment.