Skip to content

Commit

Permalink
Setup babel build
Browse files Browse the repository at this point in the history
  • Loading branch information
hectahertz committed Jan 29, 2018
1 parent 05f35a1 commit 688eb22
Show file tree
Hide file tree
Showing 4 changed files with 1,459 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .babelrc
@@ -0,0 +1,3 @@
{
"presets": ["react-native"]
}
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
.DS_Store
node_modules/
npm-debug.*
dist/
7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -3,12 +3,13 @@
"version": "1.2.1",
"description":
"Pixel–perfect, native–looking typographic styles for React Native",
"main": "src/index.js",
"files": ["src/"],
"main": "dist/index.js",
"files": ["src/", "dist/"],
"directories": {
"example": "example"
},
"scripts": {
"build": "rm -rf dist && babel src --out-dir dist",
"format": "prettier --write '**/*.js'",
"precommit": "lint-staged",
"test": "echo \\\"Error: no test specified\\\" && exit 1"
Expand Down Expand Up @@ -41,6 +42,8 @@
"react-native": "*"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-preset-react-native": "^4.0.0",
"husky": "^0.14.3",
"lint-staged": "^6.0.0",
"prettier": "1.9.1"
Expand Down

0 comments on commit 688eb22

Please sign in to comment.