Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added .jshintrc and connect task.

  • Loading branch information...
commit f53d23cba8d9945b869509228183456239bcb803 1 parent 2464ec3
@ngryman authored
Showing with 61 additions and 47 deletions.
  1. +17 −0 .jshintrc
  2. +12 −16 Gruntfile.js
  3. +32 −31 package.json
View
17 .jshintrc
@@ -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
28 Gruntfile.js
@@ -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,6 +51,16 @@ 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
+ }
+ }
}
});
@@ -73,6 +68,7 @@ module.exports = function(grunt) {
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
63 package.json
@@ -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"
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.