-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
1 parent
4e4eb23
commit 99db275
Showing
46 changed files
with
22,896 additions
and
31,564 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,4 @@ allure-results | |
pluginTemplates | ||
templateFiles/**/* | ||
!/**/*/*.json | ||
*.d.ts | ||
/.nx/workspace-data | ||
*.d.ts |
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
{ | ||
"version": "independent", | ||
"npmClient": "yarn", | ||
"packages": ["packages/*"], | ||
"$schema": "node_modules/lerna/schemas/lerna-schema.json" | ||
"useWorkspaces": true, | ||
"command": { | ||
"bootstrap": { | ||
"npmClientArgs": ["--no-package-lock", "--unsafe-perm=true", "--no-optional"] | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -56,9 +56,8 @@ | |
"url": "git://github.com/flexn-io/renative.git" | ||
}, | ||
"scripts": { | ||
"bootstrap": "yarn install && yarn setup", | ||
"bootstrap-clean": "yarn clean-gitignore && yarn install && yarn setup", | ||
"setup": "yarn build && yarn link:rnv && yarn generateSchema && yarn resetOverrides", | ||
"bootstrap": "npx lerna@6 bootstrap && yarn build && yarn link:rnv && yarn generateSchema && yarn resetOverrides", | ||
"bootstrap-clean": "yarn clean-gitignore && yarn bootstrap", | ||
"build": "lerna run build", | ||
"clean-gitignore": "git clean -f -d -i -X", | ||
"compile": "npx lerna run compile", | ||
|
@@ -69,7 +68,7 @@ | |
"generateSchema": "npx rnv hooks run -x generateSchema && yarn prettier-write-json", | ||
"link:rnv": "npm r rnv -g && cd packages/rnv && npm link", | ||
"lint": "npx eslint ./packages", | ||
"postinstall": " npx jetify && npx husky install", | ||
"postinstall": "npx lerna link --force-local && npx jetify && npx husky install", | ||
"pre-publish": "yarn build && yarn link:rnv && yarn lint && yarn test && rnv hooks run -x prePublish && rnv hooks run -x gitCommitAndTag && yarn generateSchema", | ||
"prettier-write-all": "npx prettier '**/*.{js,jsx,ts,tsx,mjs,cjs,json,md}' --write --config .prettierrc.js", | ||
"prettier-write-json": "npx prettier '**/{package.json,renative.json,renative.**.json,rnv.json,rnv.**.json,renative-1.0.schema.json}' --write --config .prettierrc.js", | ||
|
@@ -82,9 +81,6 @@ | |
"watch": "npx lerna exec yarn watch --parallel", | ||
"watch-alt": "npx lerna run compile & npx lerna watch -- lerna run compile" | ||
}, | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"devDependencies": { | ||
"@babel/eslint-parser": "7.17.0", | ||
"@flexn/eslint-config": "1.0.0", | ||
|
@@ -113,7 +109,7 @@ | |
"jest": "^29.6.3", | ||
"jest-environment-jsdom": "29.7.0", | ||
"json-diff": "1.0.6", | ||
"lerna": "^8.1.9", | ||
"lerna": "^6.6.2", | ||
"lint-staged": "12.3.4", | ||
"madge": "6.1.0", | ||
"prettier": "2.8.8", | ||
|
@@ -144,5 +140,20 @@ | |
"eslint" | ||
] | ||
}, | ||
"packageManager": "[email protected]" | ||
"workspaces": { | ||
"packages": [ | ||
"packages/*" | ||
], | ||
"nohoist": [ | ||
"html-webpack-plugin", | ||
"html-webpack-harddisk-plugin", | ||
"webpack", | ||
"mini-css-extract-plugin", | ||
"execa", | ||
"**/@flexn/graybox", | ||
"**/appium-*", | ||
"**/@wdio/*", | ||
"**/@react-native/metro-babel-transformer" | ||
] | ||
} | ||
} |
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
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
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 |
---|---|---|
|
@@ -58,6 +58,5 @@ | |
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"title": "ReNative Core SDK", | ||
"packageManager": "[email protected]" | ||
"title": "ReNative Core SDK" | ||
} |
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
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
29 changes: 0 additions & 29 deletions
29
packages/engine-core/src/tasks/bootstrap/questions/configureYarnVersion.ts
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
packages/engine-core/src/tasks/bootstrap/questions/resolvePeerDepsNPM.ts.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,22 @@ | ||
import { getContext, inquirerPrompt, isYarnInstalled, writeFileSync } from '@rnv/core'; | ||
import path from 'path'; | ||
|
||
const Question = async () => { | ||
if (isYarnInstalled()) return; | ||
const c = getContext(); | ||
const content = 'legacy-peer-deps=true'; | ||
|
||
const { confirmCreateNpmrc } = await inquirerPrompt({ | ||
name: 'confirmCreateNpmrc', | ||
type: 'confirm', | ||
message: `To avoid the issue with the resolving peer dependencies .npmrc file with content: "${content}" will be added to your project`, | ||
}); | ||
|
||
if (confirmCreateNpmrc) { | ||
const npmrcPath = path.join(c.paths.project.dir, '.npmrc'); | ||
|
||
writeFileSync(npmrcPath, content); | ||
} | ||
}; | ||
|
||
export default Question; |
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
Oops, something went wrong.