Skip to content

Commit

Permalink
Merge pull request #271 from HallexCosta/master
Browse files Browse the repository at this point in the history
Remove --tailwind and --typescript flags from commands in documentation
  • Loading branch information
Mortaro authored Feb 2, 2024
2 parents d504201 + 47e2ffc commit 900ddb6
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ yarn.lock
.development
.production
public/pt-BR.json
public/en-US.json
public/en-US.json
docs
2 changes: 1 addition & 1 deletion i18n/en-US/articles/frequently-asked-questions.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ Nulla-Chan is the avatar of Nullstack, it belongs to a category of avatars calle
Definitively it was deciding if We should spell it "full stack", "fullstack", or "full-stack". Seriously please tell us on discord which one to pick.

## How can i get started?
Just go to your favorite terminal and type "npx create-nullstack-app app-name", and if you are feeling fancy you can also pass the flags --typescript and --tailwind.
Just go to your favorite terminal and type "npx create-nullstack-app app-name" and use the templates available through the CLI.
4 changes: 1 addition & 3 deletions i18n/en-US/articles/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ Replace `project-name` with your project name and run the command below to start
npx create-nullstack-app@latest project-name
```

> 💡 If you want to start with a template using .tsx files, add `-ts` or `--typescript` to the end of command
> 💡 If you want to start with a template using tailwind, add `-tw` or `--tailwind` to the end of command
> 💡 You can use a CLI to select the blank javascript or typescript template or select the template with tailwind css.
Change directory to the generated folder:

Expand Down
2 changes: 1 addition & 1 deletion i18n/en-US/components/Home.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ hero:
- Nullstack is a web framework that makes coding fun again.
- "Write the backend and frontend of a feature in a single isomorphic component with zero boilerplate or glue code."
getStarted: "Get Started"
callToAction: "npx create-nullstack-app --typescript --tailwind"
callToAction: "npx create-nullstack-app"
actionLink: '/getting-started'
actionCallback: 'Command copied, paste it in the terminal'
trinity:
Expand Down
2 changes: 1 addition & 1 deletion i18n/pt-BR/articles/comecando.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Troque `project-name` com o nome do seu projeto e rode o comanto abaixo para com
npx create-nullstack-app@latest project-name
```

> 💡 Se quiser começar com um template usando arquivos .tsx, adicione `-ts` ou `--typescript` ao fim do comando
> 💡 Você pode usar a CLI para selecionar o modelo javascript ou typescript em branco ou selecionar o modelo com tailwind css.
Troque o diretório para a pasta gerada:

Expand Down
2 changes: 1 addition & 1 deletion i18n/pt-BR/components/Home.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ hero:
- "Nullstack é um web framework que torna programar divertido novamente."
- "Escreva o backend e o frontend de um recurso em um único componente isomórfico sem boilerplate ou glue code."
getStarted: "Comece a usar"
callToAction: "npx create-nullstack-app --typescript --tailwind"
callToAction: "npx create-nullstack-app"
actionLink: '/pt-br/comecando'
actionCallback: 'Comando copiado, cole no terminal'
trinity:
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
"author": "",
"license": "ISC",
"devDependencies": {
"http-server": "^14.1.1",
"nullstack": "~0.18.0",
"tailwindcss": "^3.0.0",
"postcss-loader": "^7.0.1"
"postcss-loader": "^7.0.1",
"tailwindcss": "^3.0.0"
},
"scripts": {
"start": "npx nullstack start",
"build": "npx nullstack build --mode=ssg --output=docs",
"start:docs": "npx http-server docs",
"reinstall": "rm -rf .development .production package-lock.json node_modules && npm install"
},
"dependencies": {
Expand All @@ -27,4 +29,4 @@
"remarkable-meta": "^1.0.1",
"yaml": "^1.10.0"
}
}
}
2 changes: 1 addition & 1 deletion src/Home.njs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Home extends Translatable {

async getStarted({ router, action }) {
if ('clipboard' in navigator) {
const command = 'npx create-nullstack-app@latest --typescript --tailwind';
const command = 'npx create-nullstack-app@latest';
await navigator.clipboard.writeText(command);
}
clearTimeout(this.gettingStarted);
Expand Down

0 comments on commit 900ddb6

Please sign in to comment.