From d3d6420a8ecf31b8ee546d8847877de801258048 Mon Sep 17 00:00:00 2001 From: HallexCosta Date: Thu, 1 Feb 2024 21:37:26 -0300 Subject: [PATCH 1/5] chore: adjust translation removing flag --typescript and --tailwind --- i18n/en-US/articles/getting-started.md | 4 +--- i18n/en-US/components/Home.yml | 2 +- i18n/pt-BR/articles/comecando.md | 2 +- i18n/pt-BR/components/Home.yml | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/i18n/en-US/articles/getting-started.md b/i18n/en-US/articles/getting-started.md index b3d1941b..00102d3b 100644 --- a/i18n/en-US/articles/getting-started.md +++ b/i18n/en-US/articles/getting-started.md @@ -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: diff --git a/i18n/en-US/components/Home.yml b/i18n/en-US/components/Home.yml index 80d014dd..9b777bc6 100644 --- a/i18n/en-US/components/Home.yml +++ b/i18n/en-US/components/Home.yml @@ -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: diff --git a/i18n/pt-BR/articles/comecando.md b/i18n/pt-BR/articles/comecando.md index fcf1970e..f3946041 100644 --- a/i18n/pt-BR/articles/comecando.md +++ b/i18n/pt-BR/articles/comecando.md @@ -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: diff --git a/i18n/pt-BR/components/Home.yml b/i18n/pt-BR/components/Home.yml index f4bdb76e..fe161a32 100644 --- a/i18n/pt-BR/components/Home.yml +++ b/i18n/pt-BR/components/Home.yml @@ -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: From 617cc46ede3c87046f2a4cdbaa4f79750d46ae6b Mon Sep 17 00:00:00 2001 From: HallexCosta Date: Thu, 1 Feb 2024 21:38:12 -0300 Subject: [PATCH 2/5] refactor: adjust copy command from home page --- src/Home.njs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Home.njs b/src/Home.njs index e22c156a..24f4d20a 100644 --- a/src/Home.njs +++ b/src/Home.njs @@ -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); From 034257635a56ba55a41cd6bdb8527120f7e28815 Mon Sep 17 00:00:00 2001 From: HallexCosta Date: Thu, 1 Feb 2024 21:40:16 -0300 Subject: [PATCH 3/5] feat: add new dev dependencies http-server --- package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2151988f..c675b440 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -27,4 +29,4 @@ "remarkable-meta": "^1.0.1", "yaml": "^1.10.0" } -} \ No newline at end of file +} From 024442d56432e00d76b3d78099248a85cce63010 Mon Sep 17 00:00:00 2001 From: HallexCosta Date: Thu, 1 Feb 2024 21:40:49 -0300 Subject: [PATCH 4/5] chore: add docs folder on .gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 121147ab..81cf24c6 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ yarn.lock .development .production public/pt-BR.json -public/en-US.json \ No newline at end of file +public/en-US.json +docs From 47e2ffc0665749dd7920e545befb86d76483e3c9 Mon Sep 17 00:00:00 2001 From: HallexCosta Date: Thu, 1 Feb 2024 22:08:28 -0300 Subject: [PATCH 5/5] chore: remove flags --typescript and --tailwind from docs --- i18n/en-US/articles/frequently-asked-questions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/en-US/articles/frequently-asked-questions.md b/i18n/en-US/articles/frequently-asked-questions.md index 9e78c385..a1627f6b 100644 --- a/i18n/en-US/articles/frequently-asked-questions.md +++ b/i18n/en-US/articles/frequently-asked-questions.md @@ -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. \ No newline at end of file +Just go to your favorite terminal and type "npx create-nullstack-app app-name" and use the templates available through the CLI. \ No newline at end of file