Skip to content

Commit

Permalink
chore(cli): rename CLI to create-rootstrap-rn-app
Browse files Browse the repository at this point in the history
  • Loading branch information
asdolo committed Aug 2, 2024
1 parent fccce7b commit 1e13d4a
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 39 deletions.
19 changes: 14 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,20 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "astro-build.astro-vscode"
},
"cSpell.words": ["Flashlist", "Lato"],
"i18n-ally.localesPaths": ["src/translations/"],
"cSpell.words": [
"Flashlist",
"Lato",
"rootstrap"
],
"i18n-ally.localesPaths": [
"src/translations/"
],
"i18n-ally.keystyle": "nested",
"i18n-ally.disabled": false, // make sure to disable i18n-ally in your global setting and only enable it for such projects
"tailwindCSS.experimental.classRegex": [
["tv\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
]
}
[
"tv\\(([^)]*)\\)",
"[\"'`]([^\"'`]*).*?[\"'`]"
]
],
}
2 changes: 1 addition & 1 deletion cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# 🚀 Quick start

```sh
npx create-obytes-app@latest MyApp
npx create-rootstrap-rn-app@latest MyApp

```

Expand Down
2 changes: 1 addition & 1 deletion cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const createObytesApp = async () => {
// check if project name is provided
if (!projectName) {
consola.error(
'Please provide a name for your project: `npx create-obytes-app@latest <project-name>`'
'Please provide a name for your project: `npx create-rootstrap-rn-app@latest <project-name>`'
);
process.exit(1);
}
Expand Down
15 changes: 8 additions & 7 deletions cli/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "create-obytes-app",
"version": "1.7.1",
"description": "Obytes expo starter cli",
"homepage": "https://github.com/obytes/react-native-template-obytes",
"name": "create-rootstrap-rn-app",
"version": "1.0.0",
"description": "Rootstrap expo starter cli",
"homepage": "https://github.com/rootstrap/react-native-template",
"repository": {
"type": "git",
"url": "git+https://github.com/obytes/react-native-template-obytes.git"
"url": "git+https://github.com/rootstrap/react-native-template.git"
},
"main": "index.js",
"scripts": {
"start": "node ."
},
"bin": {
"create-obytes-app": "index.js"
"create-rootstrap-rn-app": "index.js"
},
"files": [
"index.js",
Expand All @@ -33,6 +33,7 @@
"react-native-boilerplate",
"expo-boilerplate",
"cli",
"obytes"
"obytes",
"rootstrap"
]
}
54 changes: 32 additions & 22 deletions cli/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/src/content/docs/getting-started/create-new-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ First make sure you have `pnpm` installed on your machine, if not you can instal
npm install -g pnpm
```

Start your project using `create-obytes-app` command:
Start your project using `create-rootstrap-rn-app` command:

```bash
npx create-obytes-app@latest MyApp
npx create-rootstrap-rn-app@latest MyApp
```

The command will create an expo app named `MyApp` and install all the dependencies added by the starter.
Expand All @@ -46,7 +46,7 @@ The name must satisfy the following rules:
- It must have at least two segments (one or more dots).
- Each segment must start with a letter.
- All characters must be alphanumeric or an underscore [a-zA-Z0-9_].
:::
:::

## Open Project on VS Code

Expand Down

0 comments on commit 1e13d4a

Please sign in to comment.