-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
7,091 additions
and
2,096 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ metro.config.js | |
bob.config.js | ||
README.md | ||
node_modules | ||
scripts | ||
dist |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -25,4 +25,4 @@ jobs: | |
run: yarn install --frozen-lockfile | ||
|
||
- name: 🔎 Run typecheck | ||
run: yarn typecheck:all | ||
run: yarn typecheck |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Override Yarn command so we can automatically setup the repo on running `yarn` | ||
|
||
yarn-path "scripts/bootstrap.js" |
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,11 +1,9 @@ | ||
# 1.0.0 (2023-10-27) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* Add missing dependencies ([#20](https://github.com/MatiPl01/react-native-skia-responsive-text/issues/20)) ([cd5050d](https://github.com/MatiPl01/react-native-skia-responsive-text/commit/cd5050d5bd83c7d04b84f3c0113879d7779ad396)) | ||
|
||
- Add missing dependencies ([#20](https://github.com/MatiPl01/react-native-skia-responsive-text/issues/20)) ([cd5050d](https://github.com/MatiPl01/react-native-skia-responsive-text/commit/cd5050d5bd83c7d04b84f3c0113879d7779ad396)) | ||
|
||
### Features | ||
|
||
* Add main library code ([#9](https://github.com/MatiPl01/react-native-skia-responsive-text/issues/9)) ([a2596f9](https://github.com/MatiPl01/react-native-skia-responsive-text/commit/a2596f9907afad07a701632bb18695d56820d14b)) | ||
- Add main library code ([#9](https://github.com/MatiPl01/react-native-skia-responsive-text/issues/9)) ([a2596f9](https://github.com/MatiPl01/react-native-skia-responsive-text/commit/a2596f9907afad07a701632bb18695d56820d14b)) |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
presets: ['module:metro-react-native-babel-preset'] | ||
}; |
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,5 +1,14 @@ | ||
module.exports = { | ||
source: 'src', | ||
output: 'dist', | ||
targets: ['commonjs', 'module'] | ||
targets: [ | ||
'commonjs', | ||
'module', | ||
[ | ||
'typescript', | ||
{ | ||
project: 'tsconfig.build.json' | ||
} | ||
] | ||
] | ||
}; |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -10,14 +10,16 @@ | |
"@semantic-release/npm": "^11.0.0", | ||
"@semantic-release/release-notes-generator": "^12.0.0", | ||
"@shopify/react-native-skia": "0.1.196", | ||
"@types/react": "^18.2.33", | ||
"eslint": "^8.52.0", | ||
"eslint-config-react-native-matipl01": "^1.0.2", | ||
"husky": "^8.0.0", | ||
"jest": "^29.7.0", | ||
"lint-staged": "^15.0.2", | ||
"prettier": "^3.0.3", | ||
"react": "^18.2.0", | ||
"react-native": "^0.72.5", | ||
"react": "18.2.0", | ||
"react-native": "0.72.6", | ||
"react-native-builder-bob": "^0.23.1", | ||
"react-native-reanimated": "~3.3.0", | ||
"semantic-release": "^22.0.5", | ||
"syncpack": "^11.2.1", | ||
|
@@ -60,35 +62,23 @@ | |
"react-native": "*", | ||
"react-native-reanimated": ">=2.0.0" | ||
}, | ||
"private": true, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"react-native": "src/index", | ||
"repository": "[email protected]:MatiPl01/react-native-skia-responsive-text.git", | ||
"resolutions": { | ||
"react": "^18.2.0", | ||
"react-native": "^0.72.5" | ||
}, | ||
"scripts": { | ||
"build": "yarn clean && bob build && yarn declarations:emit", | ||
"bootstrap": "yarn example && yarn", | ||
"build": "yarn clean && bob build", | ||
"clean": "rm -rf dist && rm -f *.tgz", | ||
"declarations:emit": "tsc -p tsconfig.build.json", | ||
"example": "yarn --cwd example workspace example start", | ||
"example:android": "yarn workspace example android", | ||
"example:ios": "yarn workspace example ios", | ||
"example": "yarn --cwd example", | ||
"format:code": "prettier --write . --ignore-unknown", | ||
"format:deps": "syncpack format", | ||
"lint": "eslint .", | ||
"lint:fix": "eslint --fix .", | ||
"prepack": "yarn build", | ||
"prepare": "husky install", | ||
"typecheck": "tsc -p tsconfig.json --noEmit", | ||
"typecheck:all": "yarn typecheck && yarn typecheck:example", | ||
"typecheck:example": "yarn workspace example typecheck" | ||
"typecheck": "tsc -p tsconfig.json --noEmit" | ||
}, | ||
"types": "dist/typescript/index.d.ts", | ||
"workspaces": [ | ||
"example" | ||
] | ||
"types": "dist/typescript/index.d.ts" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const os = require('os'); | ||
const path = require('path'); | ||
const child_process = require('child_process'); | ||
|
||
const root = path.resolve(__dirname, '..'); | ||
const args = process.argv.slice(2); | ||
const options = { | ||
cwd: process.cwd(), | ||
env: process.env, | ||
stdio: 'inherit', | ||
encoding: 'utf-8' | ||
}; | ||
|
||
if (os.type() === 'Windows_NT') { | ||
options.shell = true; | ||
} | ||
|
||
let result; | ||
|
||
if (process.cwd() !== root || args.length) { | ||
// We're not in the root of the project, or additional arguments were passed | ||
// In this case, forward the command to `yarn` | ||
result = child_process.spawnSync('yarn', args, options); | ||
} else { | ||
// If `yarn` is run without arguments, perform bootstrap | ||
result = child_process.spawnSync('yarn', ['bootstrap'], options); | ||
} | ||
|
||
process.exitCode = result.status; |
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,5 +1,5 @@ | ||
{ | ||
"extends": "eslint-config-react-native-matipl01/tsconfig.base", | ||
"include": ["src"], | ||
"exclude": ["example", "node_modules"] | ||
"exclude": ["example"] | ||
} |
Oops, something went wrong.