Browse Source

Add babel

pull/2/head
Luke Childs 9 years ago
parent
commit
9a2de3ccbc
  1. 3
      .gitignore
  2. 1
      .npmignore
  3. 22
      package.json

3
.gitignore

@ -1,3 +1,6 @@
# Project
dist
# Logs
logs
*.log

1
.npmignore

@ -0,0 +1 @@
src

22
package.json

@ -2,9 +2,20 @@
"name": "htconvert",
"version": "0.0.0",
"description": "Convert .htaccess redirects to nginx.conf redirects",
"main": "index.js",
"main": "dist/htconvert.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"prebuild": "rm -rf dist",
"build": "babel -d dist src",
"test": "echo \"Error: no test specified\" && exit 1",
"prepublish": "npm run build"
},
"babel": {
"presets": [
"es2015"
],
"plugins": [
"add-module-exports"
]
},
"repository": {
"type": "git",
@ -23,5 +34,10 @@
"bugs": {
"url": "https://github.com/lukechilds/htconvert/issues"
},
"homepage": "https://github.com/lukechilds/htconvert#readme"
"homepage": "https://github.com/lukechilds/htconvert#readme",
"devDependencies": {
"babel-cli": "^6.9.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-es2015": "^6.9.0"
}
}

Loading…
Cancel
Save