Skip to content

Commit

Permalink
feat: transpile JSX sources to JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
jsamr committed Dec 1, 2020
1 parent 04db25e commit 1ee51ae
Show file tree
Hide file tree
Showing 4 changed files with 210 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ npm-debug.log
/Demo/package-lock.json
/coverage/
test.html
/lib

# Foundry

Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
presets: ["module:metro-react-native-babel-preset"],
};
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
"repository": "https://github.com/archriss/react-native-render-html",
"description": "React Native component that renders HTML as native views",
"types": "types/react-native-render-html/index.d.ts",
"main": "src/index.js",
"main": "lib/index.js",
"scripts": {
"test": "npm run test:js && npm run test:ts && npm run test:lint",
"test": "yarn test:js && yarn test:ts && yarn test:lint",
"test:ts": "dtslint types/react-native-render-html",
"test:js": "jest",
"test:lint": "eslint src/",
"fixlint": "prettier --write src/"
"fixlint": "prettier --write src/",
"build": "babel src --out-dir lib",
"prepack": "yarn build"
},
"keywords": [
"react-native",
Expand All @@ -30,6 +32,7 @@
"react-native": "*"
},
"devDependencies": {
"@babel/cli": "^7.12.8",
"@babel/core": "^7.12.9",
"@babel/runtime": "^7.12.5",
"@react-native-community/eslint-config": "^2.0.0",
Expand Down
Loading

0 comments on commit 1ee51ae

Please sign in to comment.