Browse Source

Use jshint-cli instead of grunt-jshint (#2064)

pull/1415/merge
Yoshiya Hinosawa 8 years ago committed by Ændrew Rininsland
parent
commit
d51d424820
  1. 8
      Gruntfile.coffee
  2. 4
      package.json

8
Gruntfile.coffee

@ -3,13 +3,6 @@ module.exports = (grunt) ->
grunt.initConfig
jshint:
c3: 'src/**/*.js'
spec: 'spec/**/*.js'
options:
reporter: require('jshint-stylish')
jshintrc: '.jshintrc'
uglify:
c3:
files:
@ -20,5 +13,4 @@ module.exports = (grunt) ->
src: 'c3.css'
dest: 'c3.min.css'
grunt.registerTask 'lint', ['jshint']
grunt.registerTask 'minify', ['cssmin', 'uglify']

4
package.json

@ -6,7 +6,7 @@
"scripts": {
"serve": "static -p 8080 htdocs/",
"prepublish": "npm run dist",
"lint": "grunt lint",
"lint": "jshint --reporter=node_modules/jshint-stylish src/ spec/",
"build": "npm run build:js && npm run build:css",
"build:js": "rollup -f umd --name c3 --globals d3:d3 src/index.js > c3.js",
"build:css": "node-sass src/scss/main.scss > c3.css",
@ -36,9 +36,9 @@
"grunt": "^0.4.5",
"grunt-cli": "^1.2.0",
"grunt-contrib-cssmin": "^0.10.0",
"grunt-contrib-jshint": "^1.0.0",
"grunt-contrib-uglify": "~0.4.0",
"jasmine-core": "^2.3.4",
"jshint": "^2.9.4",
"jshint-stylish": "^2.1.0",
"karma": "^0.13.10",
"karma-coverage": "^0.5.2",

Loading…
Cancel
Save