@nimbuslab/cli 0.17.1 → 0.17.2
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/README.md +33 -0
- package/dist/index.js +1 -57
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -112,6 +112,39 @@ curl -fsSL https://bun.sh/install | bash
|
|
|
112
112
|
- [create-next-app](https://github.com/nimbuslab/create-next-app)
|
|
113
113
|
- [create-turborepo](https://github.com/nimbuslab/create-turborepo)
|
|
114
114
|
|
|
115
|
+
## Desenvolvimento
|
|
116
|
+
|
|
117
|
+
### Release
|
|
118
|
+
|
|
119
|
+
O projeto usa injecao de versao no build time para evitar problemas de versionamento.
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
# Release interativo (recomendado)
|
|
123
|
+
bun run release
|
|
124
|
+
|
|
125
|
+
# Release especifico
|
|
126
|
+
bun run release:patch # 0.17.1 -> 0.17.2
|
|
127
|
+
bun run release:minor # 0.17.1 -> 0.18.0
|
|
128
|
+
bun run release:major # 0.17.1 -> 1.0.0
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
**Como funciona:**
|
|
132
|
+
1. `bumpp` faz o bump da versao no `package.json`
|
|
133
|
+
2. `scripts/build.ts` le a versao e injeta no bundle via `--define`
|
|
134
|
+
3. `npm publish` publica o pacote
|
|
135
|
+
|
|
136
|
+
**Importante:** O script `prepublishOnly` garante que o build sempre roda antes do publish, mesmo se voce esquecer.
|
|
137
|
+
|
|
138
|
+
### Build Local
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
# Build de desenvolvimento
|
|
142
|
+
bun run build
|
|
143
|
+
|
|
144
|
+
# Testar localmente
|
|
145
|
+
bun run dist/index.js --version
|
|
146
|
+
```
|
|
147
|
+
|
|
115
148
|
## Licenca
|
|
116
149
|
|
|
117
150
|
UNLICENSED - [nimbuslab](https://nimbuslab.com.br) 2026
|
package/dist/index.js
CHANGED
|
@@ -146,61 +146,6 @@ var require_src = __commonJS((exports, module) => {
|
|
|
146
146
|
module.exports = { cursor, scroll, erase, beep };
|
|
147
147
|
});
|
|
148
148
|
|
|
149
|
-
// package.json
|
|
150
|
-
var require_package = __commonJS((exports, module) => {
|
|
151
|
-
module.exports = {
|
|
152
|
-
name: "@nimbuslab/cli",
|
|
153
|
-
version: "0.17.0",
|
|
154
|
-
description: "CLI para criar projetos nimbuslab",
|
|
155
|
-
type: "module",
|
|
156
|
-
bin: {
|
|
157
|
-
nimbus: "./dist/index.js"
|
|
158
|
-
},
|
|
159
|
-
files: [
|
|
160
|
-
"dist"
|
|
161
|
-
],
|
|
162
|
-
scripts: {
|
|
163
|
-
dev: "bun run src/index.ts",
|
|
164
|
-
build: "bun build src/index.ts --outdir dist --target bun",
|
|
165
|
-
typecheck: "tsc --noEmit"
|
|
166
|
-
},
|
|
167
|
-
keywords: [
|
|
168
|
-
"nimbuslab",
|
|
169
|
-
"cli",
|
|
170
|
-
"nextjs",
|
|
171
|
-
"fast",
|
|
172
|
-
"landing-page",
|
|
173
|
-
"saas"
|
|
174
|
-
],
|
|
175
|
-
author: {
|
|
176
|
-
name: "nimbuslab",
|
|
177
|
-
email: "contato@nimbuslab.com.br",
|
|
178
|
-
url: "https://nimbuslab.com.br"
|
|
179
|
-
},
|
|
180
|
-
license: "UNLICENSED",
|
|
181
|
-
private: false,
|
|
182
|
-
repository: {
|
|
183
|
-
type: "git",
|
|
184
|
-
url: "git+https://github.com/nimbuslab/cli.git"
|
|
185
|
-
},
|
|
186
|
-
homepage: "https://nimbuslab.com.br",
|
|
187
|
-
bugs: {
|
|
188
|
-
url: "https://github.com/nimbuslab/cli/issues"
|
|
189
|
-
},
|
|
190
|
-
engines: {
|
|
191
|
-
node: ">=18"
|
|
192
|
-
},
|
|
193
|
-
devDependencies: {
|
|
194
|
-
"@types/bun": "latest",
|
|
195
|
-
typescript: "^5"
|
|
196
|
-
},
|
|
197
|
-
dependencies: {
|
|
198
|
-
"@clack/prompts": "^0.11.0",
|
|
199
|
-
picocolors: "^1.1.1"
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
});
|
|
203
|
-
|
|
204
149
|
// src/index.ts
|
|
205
150
|
var import_picocolors9 = __toESM(require_picocolors(), 1);
|
|
206
151
|
|
|
@@ -4120,8 +4065,7 @@ async function setupNode(args) {
|
|
|
4120
4065
|
|
|
4121
4066
|
// src/index.ts
|
|
4122
4067
|
var PACKAGE_NAME2 = "@nimbuslab/cli";
|
|
4123
|
-
var
|
|
4124
|
-
var CURRENT_VERSION = pkg.version;
|
|
4068
|
+
var CURRENT_VERSION = "0.17.2";
|
|
4125
4069
|
var LOGO = `
|
|
4126
4070
|
\u2588\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2557\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557
|
|
4127
4071
|
\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nimbuslab/cli",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.2",
|
|
4
4
|
"description": "CLI para criar projetos nimbuslab",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -11,8 +11,13 @@
|
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
13
|
"dev": "bun run src/index.ts",
|
|
14
|
-
"build": "bun
|
|
15
|
-
"typecheck": "tsc --noEmit"
|
|
14
|
+
"build": "bun run scripts/build.ts",
|
|
15
|
+
"typecheck": "tsc --noEmit",
|
|
16
|
+
"prepublishOnly": "bun run build",
|
|
17
|
+
"release": "bunx bumpp && bun run build && npm publish",
|
|
18
|
+
"release:patch": "bunx bumpp patch && bun run build && npm publish",
|
|
19
|
+
"release:minor": "bunx bumpp minor && bun run build && npm publish",
|
|
20
|
+
"release:major": "bunx bumpp major && bun run build && npm publish"
|
|
16
21
|
},
|
|
17
22
|
"keywords": [
|
|
18
23
|
"nimbuslab",
|