Skip to content

Commit

Permalink
Add babel build process
Browse files Browse the repository at this point in the history
  • Loading branch information
shootaroo committed Apr 7, 2015
1 parent 218c142 commit 357a452
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules/
build/
lib/
7 changes: 5 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@ module.exports = function (grunt) {
require('./jit-grunt')(grunt);

grunt.initConfig({

jscs: {
options: {
config: '.jscsrc'
},
all: ['*.js', '{lib,test}/**/*.js']
all: ['*.js', '{src,test}/**/*.js']
},

jshint: {
options: {
jshintrc: true
},
all: ['*.js', '{lib,test}/**/*.js']
all: ['*.js', '{src,test}/**/*.js']
},

mochaTest: {
options: {
reporter: 'spec',
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@
"url": "git://github.com/shootaroo/jit-grunt.git"
},
"scripts": {
"test": "grunt",
"build": "babel src --out-dir lib --source-maps-inline",
"watch": "babel src --out-dir lib --source-maps-inline --watch",
"test": "npm run build && grunt",
"precommit": "npm test",
"prepush": "npm test"
},
"devDependencies": {
"babel": "^5.0.0",
"espower-babel": "^1.4.1",
"grunt": "~0.4.0",
"grunt-contrib-jshint": "~0.11.0",
Expand Down
File renamed without changes.

0 comments on commit 357a452

Please sign in to comment.