Skip to content

Commit

Permalink
Add prepare script
Browse files Browse the repository at this point in the history
  • Loading branch information
zpv committed Feb 19, 2021
1 parent 10d9956 commit 90f39fb
Show file tree
Hide file tree
Showing 4 changed files with 5,447 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ local.properties
buck-out/
\.buckd/
*.keystore

# generated by bob
lib/
36 changes: 29 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
{
"name": "react-native-cfddlc",
"title": "react-native-cfddlc",
"version": "0.0.1",
"version": "0.0.2",
"description": "React Native module for cfd-dlc",
"main": "src/index.js",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
"react-native": "src/index.ts",
"source": "src/index",
"files": [
"src",
"lib",
"!**/__tests__",
"!**/__fixtures__",
"!**/__mocks__",
"README.md",
"android",
"ios",
"resources",
"src",
"react-native-cfddlc.podspec"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepublishOnly": "git clean -d -x -f ./android && git clean -d -x -f ./ios"
"prepublishOnly": "git clean -d -x -f ./android && git clean -d -x -f ./ios",
"prepare": "bob build"
},
"devDependencies": {
"@types/react-native": "^0.63.50",
"react": "^17.0.1",
"react-native": "0.63.4"
"react-native": "0.63.4",
"react-native-builder-bob": "^0.17.1"
},
"peerDependencies": {
"react": "*",
Expand All @@ -44,5 +52,19 @@
"bugs": {
"url": "https://github.com/atomicfinance/react-native-cfddlc/issues"
},
"homepage": "https://github.com/atomicfinance/react-native-cfddlc#readme"
}
"homepage": "https://github.com/atomicfinance/react-native-cfddlc#readme",
"types": "lib/typescript/src/index.d.ts",
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module",
"typescript"
]
},
"eslintIgnore": [
"node_modules/",
"lib/"
]
}
25 changes: 25 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"jsx": "react",
"lib": [
"esnext"
],
"module": "esnext",
"moduleResolution": "node",
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noImplicitUseStrict": false,
"noStrictGenericChecks": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "esnext"
},
"exclude": ["example"]
}
Loading

0 comments on commit 90f39fb

Please sign in to comment.