-
Notifications
You must be signed in to change notification settings - Fork 274
Switch to Yarn workspaces #507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
759c239
f5f1111
31dd596
8537503
f6438a9
d1871d8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ build | |
# Ignore lock files in examples for now | ||
examples/**/yarn.lock | ||
.docusaurus | ||
|
||
.expo |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// added for Jest inline snapshots to not use default Prettier config | ||
module.exports = { | ||
singleQuote: true, | ||
trailingComma: "es5" | ||
} | ||
trailingComma: 'es5', | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
module.exports = { | ||
presets: ['module:metro-react-native-babel-preset'], | ||
module.exports = function (api) { | ||
api.cache(true); | ||
return { | ||
presets: ['babel-preset-expo'], | ||
}; | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import registerRootComponent from 'expo/build/launch/registerRootComponent'; | ||
|
||
import App from './src/App'; | ||
|
||
// registerRootComponent calls AppRegistry.registerComponent('main', () => App); | ||
// It also ensures that whether you load the app in the Expo client or in a native build, | ||
// the environment is set up appropriately | ||
registerRootComponent(App); |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = function (api) { | ||
api.cache(true); | ||
return { | ||
presets: ['module:metro-react-native-babel-preset'], | ||
presets: ['babel-preset-expo'], | ||
}; | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,23 @@ | ||
{ | ||
"name": "@testing-library/react-native", | ||
"version": "7.0.1", | ||
"description": "Simple and complete React Native testing utilities that encourage good testing practices.", | ||
"main": "build/index.js", | ||
"typings": "./typings/index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/callstack/react-native-testing-library.git" | ||
}, | ||
"homepage": "https://callstack.github.io/react-native-testing-library", | ||
"author": "Michał Pierzchała <[email protected]>", | ||
"license": "MIT", | ||
"private": false, | ||
"keywords": [ | ||
"react-native", | ||
"react", | ||
"test", | ||
"integration" | ||
], | ||
"files": [ | ||
"build/", | ||
"typings/index.d.ts", | ||
"pure.js", | ||
"dont-cleanup-after-each.js" | ||
"name": "react-native-testing-library", | ||
"private": true, | ||
"workspaces": [ | ||
"examples/*", | ||
"packages/*", | ||
"website" | ||
], | ||
"devDependencies": { | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.9.0", | ||
"@babel/plugin-proposal-class-properties": "^7.8.3", | ||
"@babel/preset-env": "^7.9.6", | ||
"@babel/preset-flow": "^7.9.0", | ||
"@babel/preset-react": "^7.9.4", | ||
"@callstack/eslint-config": "^10.0.0", | ||
"@release-it/conventional-changelog": "^1.1.0", | ||
"@testing-library/jest-native": "~3.3.0", | ||
"@types/react": "^16.9.34", | ||
"@types/react-native": "^0.63.0", | ||
"@types/react-test-renderer": "^16.9.2", | ||
"babel-jest": "^26.0.1", | ||
"conventional-changelog-cli": "^2.0.11", | ||
"dedent": "^0.7.0", | ||
"eslint": "^7.0.0", | ||
"flow-bin": "^0.122.0", | ||
"flow-copy-source": "^2.0.9", | ||
"jest": "^26.0.1", | ||
"react": "^16.13.1", | ||
"react-native": "^0.63.0-rc.1", | ||
"react-test-renderer": "^16.13.1", | ||
"release-it": "^13.6.0", | ||
"strip-ansi": "^6.0.0", | ||
"typescript": "^3.8.3" | ||
}, | ||
"dependencies": { | ||
"pretty-format": "^26.0.1" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.0.0", | ||
"react-test-renderer": ">=16.0.0" | ||
}, | ||
"scripts": { | ||
"test": "jest", | ||
"flow-check": "flow check", | ||
"typescript-check": "tsc --noEmit --skipLibCheck --jsx react ./typings/__tests__/*", | ||
"lint": "eslint src --cache", | ||
"release": "release-it", | ||
"prepublish": "yarn build && yarn copy-flowtypes", | ||
"copy-flowtypes": "flow-copy-source --ignore __tests__/*.js src build", | ||
"build": "rm -rf build; babel src --out-dir build --ignore 'src/__tests__/*'" | ||
"react": "^16.13.1", | ||
"react-native": "^0.63.2" | ||
}, | ||
"jest": { | ||
"preset": "react-native", | ||
"moduleFileExtensions": [ | ||
"js", | ||
"json" | ||
], | ||
"rootDir": "./src" | ||
"devDependencies": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI, there's no need to differentiate between deps and devDeps in workspace root, I don't mind it though, your call :) |
||
"@callstack/eslint-config": "^10.0.1", | ||
"@types/react": "^16.9.46", | ||
"@types/react-native": "^0.63.8", | ||
"@types/react-test-renderer": "^16.9.3", | ||
"babel-jest": "^26.3.0", | ||
"eslint": "^7.7.0", | ||
"jest": "^26.4.0", | ||
"react-test-renderer": "^16.13.1" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"name": "@testing-library/react-native", | ||
"version": "7.0.1", | ||
"description": "Simple and complete React Native testing utilities that encourage good testing practices.", | ||
"main": "build/index.js", | ||
"typings": "./typings/index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/callstack/react-native-testing-library.git" | ||
}, | ||
"homepage": "https://callstack.github.io/react-native-testing-library", | ||
"author": "Michał Pierzchała <[email protected]>", | ||
"license": "MIT", | ||
"private": false, | ||
"keywords": [ | ||
"react-native", | ||
"react", | ||
"test", | ||
"integration" | ||
], | ||
"files": [ | ||
"build/", | ||
"typings/index.d.ts", | ||
"pure.js", | ||
"dont-cleanup-after-each.js" | ||
], | ||
"devDependencies": { | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.9.0", | ||
"@babel/plugin-proposal-class-properties": "^7.8.3", | ||
"@babel/preset-env": "^7.9.6", | ||
"@babel/preset-flow": "^7.9.0", | ||
"@babel/preset-react": "^7.9.4", | ||
"@callstack/eslint-config": "*", | ||
"@release-it/conventional-changelog": "^1.1.0", | ||
"@testing-library/jest-native": "~3.3.0", | ||
"@types/react": "*", | ||
"@types/react-native": "*", | ||
"@types/react-test-renderer": "*", | ||
"babel-jest": "*", | ||
"conventional-changelog-cli": "^2.0.11", | ||
"dedent": "^0.7.0", | ||
"eslint": "*", | ||
"flow-bin": "^0.122.0", | ||
"flow-copy-source": "^2.0.9", | ||
"jest": "*", | ||
"react": "*", | ||
"react-native": "*", | ||
"react-test-renderer": "*", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we get rid of |
||
"release-it": "^13.6.0", | ||
"strip-ansi": "^6.0.0", | ||
"typescript": "^3.8.3" | ||
}, | ||
"dependencies": { | ||
"pretty-format": "^26.0.1" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.0.0", | ||
"react-test-renderer": ">=16.0.0" | ||
}, | ||
"scripts": { | ||
"test": "jest", | ||
"flow-check": "flow check", | ||
"typescript-check": "tsc --noEmit --skipLibCheck --jsx react ./typings/__tests__/*", | ||
"lint": "eslint src --cache", | ||
"release": "release-it", | ||
"prepublish": "yarn build && yarn copy-flowtypes", | ||
"copy-flowtypes": "flow-copy-source --ignore __tests__/*.js src build", | ||
"build": "rm -rf build; babel src --out-dir build --ignore 'src/__tests__/*'" | ||
}, | ||
"jest": { | ||
"preset": "react-native", | ||
"moduleFileExtensions": [ | ||
"js", | ||
"json" | ||
], | ||
"rootDir": "./src" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linting and type checks should go from the root, please remove and adjust configuration if needed