@arvoretech/hub 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.js +7 -0
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/config/index.d.ts
CHANGED
|
@@ -169,6 +169,7 @@ declare const repo: {
|
|
|
169
169
|
nestjs: (name: string, url: string, overrides?: RepoOverrides) => Repo;
|
|
170
170
|
nextjs: (name: string, url: string, overrides?: RepoOverrides) => Repo;
|
|
171
171
|
react: (name: string, url: string, overrides?: RepoOverrides) => Repo;
|
|
172
|
+
reactNative: (name: string, url: string, overrides?: RepoOverrides) => Repo;
|
|
172
173
|
elixir: (name: string, url: string, overrides?: RepoOverrides) => Repo;
|
|
173
174
|
go: (name: string, url: string, overrides?: RepoOverrides) => Repo;
|
|
174
175
|
python: (name: string, url: string, overrides?: RepoOverrides) => Repo;
|
package/dist/config/index.js
CHANGED
|
@@ -40,6 +40,13 @@ var repo = {
|
|
|
40
40
|
test: "pnpm test",
|
|
41
41
|
lint: "pnpm lint"
|
|
42
42
|
}),
|
|
43
|
+
reactNative: createRepo("react-native", {
|
|
44
|
+
install: "pnpm install",
|
|
45
|
+
dev: "pnpm start",
|
|
46
|
+
build: "pnpm build",
|
|
47
|
+
test: "pnpm test",
|
|
48
|
+
lint: "pnpm lint"
|
|
49
|
+
}),
|
|
43
50
|
elixir: createRepo("elixir", {
|
|
44
51
|
install: "mix deps.get",
|
|
45
52
|
dev: "mix phx.server",
|
package/dist/index.js
CHANGED
|
@@ -432,7 +432,7 @@ function inferTech(name) {
|
|
|
432
432
|
const lower = name.toLowerCase();
|
|
433
433
|
if (lower.includes("api") || lower.includes("backend")) return "nestjs";
|
|
434
434
|
if (lower.includes("frontend") || lower.includes("web") || lower.includes("next")) return "nextjs";
|
|
435
|
-
if (lower.includes("mobile") || lower.includes("app")) return "react";
|
|
435
|
+
if (lower.includes("mobile") || lower.includes("app")) return "react-native";
|
|
436
436
|
return void 0;
|
|
437
437
|
}
|
|
438
438
|
function ReposStep({ repos: initialRepos, onSubmit }) {
|
|
@@ -1254,6 +1254,7 @@ var REPO_HELPER_MAP = {
|
|
|
1254
1254
|
nestjs: "repo.nestjs",
|
|
1255
1255
|
nextjs: "repo.nextjs",
|
|
1256
1256
|
react: "repo.react",
|
|
1257
|
+
"react-native": "repo.reactNative",
|
|
1257
1258
|
elixir: "repo.elixir",
|
|
1258
1259
|
go: "repo.go",
|
|
1259
1260
|
python: "repo.python"
|
|
@@ -3997,6 +3998,7 @@ function detectTech(repoDir) {
|
|
|
3997
3998
|
if (existsSync14(join18(repoDir, "go.mod"))) return "go";
|
|
3998
3999
|
if (existsSync14(join18(repoDir, "Gemfile"))) return "rails";
|
|
3999
4000
|
if (existsSync14(join18(repoDir, "manage.py"))) return "django";
|
|
4001
|
+
if (existsSync14(join18(repoDir, "app.json")) || existsSync14(join18(repoDir, "app.config.js")) || existsSync14(join18(repoDir, "app.config.ts"))) return "react-native";
|
|
4000
4002
|
if (existsSync14(join18(repoDir, "package.json"))) return "react";
|
|
4001
4003
|
return void 0;
|
|
4002
4004
|
}
|