-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from lifeomic/v1.1.2
v1.1.2
- Loading branch information
Showing
9 changed files
with
1,348 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@lifeomic/prim", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Prim is a customizable TypeScript atomic styles framework for React Native.", | ||
"repository": "[email protected]:lifeomic/react-native-prim.git", | ||
"author": "LifeOmic <[email protected]>", | ||
|
@@ -12,12 +12,14 @@ | |
"react", | ||
"typescript" | ||
], | ||
"main": "dist/commonjs/index.js", | ||
"module": "dist/module/index.js", | ||
"react-native": "src/index.ts", | ||
"types": "dist/typescript/index.d.ts", | ||
"scripts": { | ||
"clean": "rm -rf dist", | ||
"build": "tsc --build tsconfig.build.json", | ||
"prebuild": "yarn clean", | ||
"postbuild": "cp package.json ./dist/", | ||
"build": "bob build", | ||
"test": "jest", | ||
"tsc": "tsc --noEmit", | ||
"lint": "eslint --ext .ts,.tsx,.js,.jsx src/**/*.tsx src/**/*.ts" | ||
}, | ||
"husky": { | ||
|
@@ -30,12 +32,13 @@ | |
"use-memo-one": "^1.0.0" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.13.1", | ||
"react-native": ">=0.63.2" | ||
"react": "*", | ||
"react-native": ">=0.50.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.11.6", | ||
"@babel/runtime": "^7.11.2", | ||
"@react-native-community/bob": "^0.16.2", | ||
"@testing-library/react-hooks": "^3.4.1", | ||
"@testing-library/react-native": "^7.0.2", | ||
"@types/hoist-non-react-statics": "^3.3.1", | ||
|
@@ -61,5 +64,19 @@ | |
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"@react-native-community/bob": { | ||
"source": "src", | ||
"output": "dist", | ||
"targets": [ | ||
"commonjs", | ||
"module", | ||
[ | ||
"typescript", | ||
{ | ||
"project": "./tsconfig.build.json" | ||
} | ||
] | ||
] | ||
} | ||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/configurePrim.test.tsx → src/__tests__/configurePrim.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
import configurePrim from './configurePrim' | ||
import defaultOptions from './defaultOptions' | ||
|
||
export { default as configurePrim } from './configurePrim' | ||
export { default as defaultOptions } from './defaultOptions' | ||
|
||
export const { PrimProvider, usePrim, primmed } = configurePrim(defaultOptions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"noEmit": false | ||
}, | ||
"exclude": ["node_modules", "dist/*", "**/*.test.*", "coverage"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,18 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"module": "commonjs", | ||
"lib": ["es6"], | ||
"module": "es2015", | ||
"lib": ["es6", "es2016", "es2018"], | ||
"jsx": "react-native", | ||
"noEmit": true, | ||
"isolatedModules": true, | ||
"strict": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"noImplicitReturns": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"moduleResolution": "node", | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"baseUrl": "./src/", | ||
"forceConsistentCasingInFileNames": true | ||
"types": ["react", "react-native"] | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"dist/*", | ||
"babel.config.js", | ||
"jest.*.js", | ||
"coverage" | ||
] | ||
"include": ["src/index.ts"] | ||
} |
Oops, something went wrong.