Skip to content

Commit

Permalink
Merge pull request #29 from rreusser/rr-babel-prepublish
Browse files Browse the repository at this point in the history
Transpile to ES5 via prepublish hook
  • Loading branch information
jeanregisser committed Apr 6, 2016
2 parents f1102c1 + 094aeaf commit 9504e02
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["react-native"]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ project.xcworkspace
#
node_modules/
npm-debug.log
lib
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "react-native-slider",
"version": "0.5.2",
"description": "A pure JavaScript <Slider /> component for react-native",
"main": "Slider.js",
"main": "lib/Slider.js",
"author": "Jean Regisser <[email protected]> (https://github.com/jeanregisser)",
"keywords": [
"react-component",
Expand All @@ -13,17 +13,22 @@
],
"license": "MIT",
"scripts": {
"start": "node_modules/react-native/packager/packager.sh"
"clean": "rimraf lib",
"start": "node_modules/react-native/packager/packager.sh",
"build": "babel src --out-dir lib",
"prepublish": "npm run clean && npm run build"
},
"repository": {
"type": "git",
"url": "[email protected]:jeanregisser/react-native-slider.git"
},
"dependencies": {
},
"dependencies": {},
"devDependencies": {
"babel-cli": "^6.6.5",
"babel-eslint": "^3.1.15",
"babel-preset-react-native": "^1.5.6",
"eslint": "^0.23.0",
"eslint-plugin-react": "^2.5.2"
"eslint-plugin-react": "^2.5.2",
"rimraf": "^2.5.2"
}
}
File renamed without changes.

0 comments on commit 9504e02

Please sign in to comment.