Skip to content

Commit

Permalink
feat: split ama
Browse files Browse the repository at this point in the history
  • Loading branch information
ceceppa committed Sep 7, 2023
1 parent f70fe94 commit d7aaed7
Show file tree
Hide file tree
Showing 76 changed files with 9,855 additions and 139 deletions.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn commitlint --edit
#yarn commitlint --edit
33 changes: 0 additions & 33 deletions lib/modules/AMAAnimationsStatusModule.ts

This file was deleted.

36 changes: 5 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
{
"name": "react-native-ama",
"version": "0.7.3",
"description": "Accessible Mobile App Library for React Native",
"main": "dist/commonjs/index",
"module": "dist/module/index",
"types": "dist/typescript/index.d.ts",
"react-native": "lib/index",
"source": "lib/index",
"private": true,
"scripts": {
"prepare": "husky install",
"test": "jest",
"ts:check": "tsc --noEmit",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "yarn lint --fix",
"build": "bob build",
"example": "yarn --cwd example",
"fabric": "yarn --cwd FabricExample",
"expo": "yarn --cwd ExpoExample",
"pods": "cd example && pod-install --quiet",
"bootstrap": "yarn example && yarn && yarn pods",
"postinstall": "./scripts/init.sh",
Expand All @@ -34,17 +26,6 @@
"a11y",
"accessibility"
],
"repository": "https://github.com/FormidableLabs/react-native-ama",
"author": "Alessandro Senese <[email protected]> (https://github.com/FormidableLabs)",
"license": "MIT",
"bugs": {
"url": "https://github.com/FormidableLabs/react-native-ama/issues"
},
"homepage": "https://github.com/FormidableLabs/react-native-ama#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"provenance": true
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@commitlint/cli": "^17.0.0",
Expand Down Expand Up @@ -73,25 +54,18 @@
"react-native": "0.66",
"react-native-builder-bob": "^0.18.2",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "^2.4.2",
"react-native-reanimated": "2.7",
"react-test-renderer": "17",
"typescript": "^4.1.3",
"wcag-color": "^1.1.1"
"typescript": "^4.1.3"
},
"peerDependencies": {
"react": ">=17",
"react-native": ">=0.66",
"react-native-gesture-handler": "*",
"react-native-reanimated": "*",
"wcag-color": "^1.1.1"
"react-native": ">=0.66"
},
"jest": {
"preset": "react-native",
"modulePathIgnorePatterns": [
"<rootDir>/example/node_modules",
"<rootDir>/dist/",
"<rootDir>/src/"
"<rootDir>/dist/"
],
"collectCoverageFrom": [
"lib/**/*.{ts,tsx}"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
118 changes: 118 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"name": "@react-native-ama/core",
"version": "0.8.0",
"description": "Accessible Mobile App Library for React Native",
"main": "dist/commonjs/index",
"module": "dist/module/index",
"types": "dist/typescript/index.d.ts",
"react-native": "lib/index",
"source": "lib/index",
"scripts": {
"test": "jest",
"ts:check": "tsc --noEmit",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "yarn lint --fix",
"build": "bob build"
},
"keywords": [
"react-native",
"ios",
"android",
"a11y",
"accessibility"
],
"repository": {
"type": "git",
"url": "https://github.com/FormidableLabs/react-native-ama",
"directory": "packages/core"
},
"author": "Alessandro Senese <[email protected]> (https://github.com/FormidableLabs)",
"license": "MIT",
"bugs": {
"url": "https://github.com/FormidableLabs/react-native-ama/issues"
},
"homepage": "https://github.com/FormidableLabs/react-native-ama#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"provenance": true
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"@ianvs/prettier-plugin-sort-imports": "^3.4.2",
"@react-native-community/eslint-config": "^2.0.0",
"@react-navigation/stack": "^6.2.1",
"@svitejs/changesets-changelog-github-compact": "^0.1.1",
"@testing-library/react-hooks": "^8.0.0",
"@testing-library/react-native": "^9.1.0",
"@types/jest": "^26.0.0",
"@types/react": "^17",
"@types/react-native": "^0.68.0",
"babel-jest": "^29.2.1",
"babel-plugin-transform-strip-block": "^0.0.5",
"commitlint": "^11.0.0",
"eslint": "^7.2.0",
"eslint-config-prettier": "^7.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^3.1.3",
"jest": "^26.0.1",
"pod-install": "^0.1.0",
"prettier": "^2.0.5",
"react": "17",
"react-native": "0.66",
"react-native-builder-bob": "^0.18.2",
"react-native-fs": "^2.20.0",
"react-test-renderer": "17",
"typescript": "^4.1.3"
},
"peerDependencies": {
"react": ">=17",
"react-native": ">=0.66"
},
"jest": {
"preset": "react-native",
"modulePathIgnorePatterns": [
"<rootDir>/example/node_modules",
"<rootDir>/dist/",
"<rootDir>/src/"
],
"collectCoverageFrom": [
"lib/**/*.{ts,tsx}"
],
"coverageThreshold": {
"global": {
"statements": 90,
"branches": 82,
"functions": 83,
"lines": 91
}
},
"setupFilesAfterEnv": [
"./jest.setup.js"
],
"transformIgnorePatterns": [
"node_modules/(?!(@react-native|react-native|react-native-reanimated/))"
],
"verbose": true
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"react-native-builder-bob": {
"source": "lib",
"output": "dist",
"targets": [
"commonjs",
"module",
[
"typescript",
{
"project": "tsconfig.build.json"
}
]
]
}
}
28 changes: 28 additions & 0 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"react-native-ama": ["./lib/index"]
},
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"esModuleInterop": true,
"importsNotUsedAsValues": "error",
"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", "dist", "src", "node_modules", "__mocks__"]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit d7aaed7

Please sign in to comment.