Skip to content

Commit

Permalink
chore: add rn sdks to nx console for deployment (#1183)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalashshah authored Mar 22, 2024
1 parent 395ded2 commit cd4fa1b
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 58 deletions.
3 changes: 3 additions & 0 deletions packages/reactnative/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
lib/
shim.js
3 changes: 2 additions & 1 deletion packages/reactnative/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@
"!**/.*"
],
"scripts": {
"test": "jest",
"test": "jest --bail=false --passWithNoTests",
"typecheck": "tsc --noEmit",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"build": "bob build",
"prepare": "bob build",
"release": "release-it",
"bootstrap": "yarn install",
Expand Down
54 changes: 1 addition & 53 deletions packages/reactnative/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,57 +3,5 @@
"sourceRoot": "packages/reactnative/src",
"projectType": "library",
"tags": [],
"targets": {
"build": {
"executor": "@nrwl/web:rollup",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/packages/reactnative",
"tsConfig": "packages/reactnative/tsconfig.lib.json",
"project": "packages/reactnative/package.json",
"entryFile": "packages/reactnative/src/index.ts",
"external": ["react/jsx-runtime", "react-native"],
"rollupConfig": [
"@nrwl/react/plugins/bundle-rollup",
"packages/reactnative/rollup.config.cjs"
],
"assets": [
{
"glob": "packages/reactnative/README.md",
"input": ".",
"output": "."
},
{
"glob": "packages/reactnative/src/lib/assets/*.*",
"input": ".",
"output": "lib/assets"
}
],
"format": ["esm", "cjs"],
"updateBuildableProjectDepsInPackageJson": true,
"buildableProjectDepsInPackageJsonType": "dependencies"
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/reactnative/**/*.{ts,tsx,js,jsx}"]
}
},
"ci-version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular",
"commitMessageFormat": "ci(${projectName}): 🎉 cut release to ${projectName}-v${version}",
"postTargets": ["reactnative:build", "reactnative:ci-publish"]
}
},
"ci-publish": {
"executor": "@nrwl/workspace:run-commands",
"options": {
"command": "node tools/scripts/publish.mjs reactnative"
}
}
}
"targets": {}
}
1 change: 0 additions & 1 deletion packages/reactnative/src/__tests__/index.test.tsx

This file was deleted.

6 changes: 4 additions & 2 deletions packages/uireactnative/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@
"!**/.*"
],
"scripts": {
"test": "jest",
"test": "jest --bail=false --passWithNoTests",
"typecheck": "tsc --noEmit",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"lint": "eslint \"**/*.{js,ts,tsx}\" --ignore-pattern 'node_modules, /lib/*'",
"prepare": "bob build",
"build": "bob build",
"release": "release-it"
},
"keywords": [
Expand All @@ -40,6 +41,7 @@
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@react-native/babel-preset": "^0.75.0-main",
"@react-native/eslint-config": "^0.72.2",
"@release-it/conventional-changelog": "^5.0.0",
"@types/jest": "^28.1.2",
Expand Down
7 changes: 7 additions & 0 deletions packages/uireactnative/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/uireactnative/src",
"projectType": "library",
"tags": [],
"targets": {}
}
4 changes: 3 additions & 1 deletion workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"restapi": "packages/restapi",
"socket": "packages/socket",
"uiembed": "packages/uiembed",
"uiweb": "packages/uiweb"
"uiweb": "packages/uiweb",
"react-native-sdk": "packages/reactnative",
"uireactnative": "packages/uireactnative"
}
}

0 comments on commit cd4fa1b

Please sign in to comment.