Skip to content

Commit

Permalink
Precompile es6 to es5 with babel (fixes #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian VanSchooten committed Jun 28, 2015
1 parent 0c03bb2 commit 829ecb3
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"loose": true,
"sourceMaps": "inline"
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
node_modules

# Compiled code
lib/

# Ignore configuration and automatically generated cruft
*.log

Expand Down
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
tests
.gitignore
test.js
.gitignore
*.sublime*
src/
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node

require('babel/register');
// require('babel/register');
require("babel/polyfill");
module.exports = require('./lib/main');
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"name": "eslint-nibble",
"version": "0.0.1",
"version": "0.0.2",
"description": "Ease into ESLint, by fixing one rule at a time",
"main": "index.js",
"bin": {"eslint-nibble": "index.js"},
"scripts": {
"test": "echo 'sorry no tests yet'"
"test": "echo 'sorry no tests yet'",
"compile": "babel -d lib/ src/",
"prepublish": "npm run compile"
},
"keywords": [
"eslint",
Expand All @@ -28,11 +30,11 @@
"babel": "^5.6.14",
"chalk": "^1.0.0",
"eslint": "^0.24.0",
"inquirer": "^0.8.5"
},
"devDependencies": {
"eslint-config-standard": "^3.3.0",
"inquirer": "^0.8.5",
"eslint-friendly-formatter": "^1.0.8",
"eslint-stats": "0.0.3"
},
"devDependencies": {
"eslint-config-standard": "^3.3.0"
}
}
File renamed without changes.

0 comments on commit 829ecb3

Please sign in to comment.