create-domis 1.0.0 → 1.0.3

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.
Files changed (2) hide show
  1. package/bin.js +29 -54
  2. package/package.json +14 -6
package/bin.js CHANGED
@@ -1,58 +1,33 @@
1
- #!/usr/bin/env node
2
- import degit from 'degit';
3
1
  import prompts from 'prompts';
4
2
  import pc from 'picocolors';
5
3
 
6
- console.log(pc.green(`\n🚀 create-domis - DomisPacks-Technical\n`));
7
-
8
- const response = await prompts([
9
- {
10
- type: 'text',
11
- name: 'key',
12
- message: 'Digite sua PRO_KEY (enviada por e-mail da Kiwify):',
13
- validate: v => v.length > 10 ? true : 'PRO_KEY inválida'
14
- },
15
- {
16
- type: 'select',
17
- name: 'template',
18
- message: 'Qual pack deseja baixar?',
19
- choices: [
20
- { title: 'domisdocs-firebase-lite (R$49)', value: 'lite' },
21
- { title: 'domisdocs-firebase-pro (R$199)', value: 'pro' }
22
- ]
23
- }
24
- ]);
25
-
26
- const repoMap = {
27
- lite: 'Domisnnet/DomisPacks-Technical/packs/domisdocs-firebase-lite',
28
- pro: 'Domisnnet/DomisPacks-Technical/packs/domisdocs-firebase-pro'
29
- };
30
-
31
- const repo = repoMap[response.template];
32
-
33
- console.log(pc.cyan(`\n📦 Baixando ${repo} com sua PRO_KEY...\n`));
34
-
35
- try {
36
- // Usa a PRO_KEY como token no git clone via degit com auth
37
- const emitter = degit(`${repo}`, {
38
- cache: false,
39
- force: true,
40
- verbose: true
41
- });
42
-
43
- // Passa token via env - degit usa https
44
- // O usuário precisa ter aceito convite do repo privado antes
45
- await emitter.clone('./domis-pack');
46
-
47
- console.log(pc.green(`\n✅ Pack baixado em ./domis-pack !\n`));
48
- console.log(pc.dim(`Próximos passos:`));
49
- console.log(` cd domis-pack`);
50
- console.log(` cp firebase.json seu-projeto/\n`);
51
- } catch (e) {
52
- console.log(pc.red(`\n❌ Erro: ${e.message}\n`));
53
- console.log(pc.yellow(`Soluções:`));
54
- console.log(`1. Verifique se aceitou o convite do GitHub para DomisPacks-Technical`);
55
- console.log(`2. Verifique sua PRO_KEY`);
56
- console.log(`3. Tente via git clone manual:`);
57
- console.log(pc.cyan(` git clone https://${response.key}@github.com/Domisnnet/DomisPacks-Technical.git\n`));
4
+ console.log('');
5
+ console.log(pc.bgYellow(pc.black(' 🔥 DOMISPACKS TECHNICAL v1.0.3 🔥 ')));
6
+ console.log(pc.cyan('Sales: https://kiwify.app/L2NNYK8'));
7
+ console.log(pc.cyan('Checkout: https://pay.kiwify.com.br/heAmetM'));
8
+ console.log('');
9
+
10
+ const r1 = await prompts({
11
+ type: 'text',
12
+ name: 'proKey',
13
+ message: 'Digite sua PRO_KEY (ou TESTE para ver oferta)',
14
+ });
15
+ const proKey = (r1.proKey || '').trim();
16
+
17
+ if(!proKey || proKey.toUpperCase() === 'TESTE' || proKey.length < 4){
18
+ console.log(pc.green(' 🚀 ENTRADA EPICA - OFERTA ATIVA:'));
19
+ console.log('');
20
+ console.log(pc.white(' 👉 Checkout OFICIAL R$49/R$199: https://pay.kiwify.com.br/heAmetM'));
21
+ console.log(pc.cyan(' 👉 Sales Page: https://kiwify.app/L2NNYK8'));
22
+ console.log('');
23
+ console.log(pc.yellow(' LITE R$49 -> Fix Angular 17-20 + Firebase em 5min'));
24
+ console.log(pc.yellow(' PRO R$199 -> Rules + Hosting + CI/CD + SSR Completo'));
25
+ console.log('');
26
+ console.log(pc.dim(' Apos pagar voce recebe PRO_KEY por e-mail e roda: npx create-domis@latest'));
27
+ console.log('');
28
+ process.exit(0);
58
29
  }
30
+
31
+ console.log(pc.green(`✅ PRO_KEY recebida: ${proKey.slice(0,4)}****`));
32
+ console.log(pc.yellow('Integracao com repo privado em desenvolvimento - use TESTE para ver oferta'));
33
+ console.log(pc.cyan(`Checkout: https://pay.kiwify.com.br/heAmetM`));
package/package.json CHANGED
@@ -1,16 +1,24 @@
1
1
  {
2
2
  "name": "create-domis",
3
- "version": "1.0.0",
4
- "description": "CLI para puxar packs privados DomisPacks-Technical via PRO_KEY",
3
+ "version": "1.0.3",
4
+ "description": "CLI DomisPacks Technical - Fix Angular 17-20 + Firebase 5min - Kiwify https://pay.kiwify.com.br/heAmetM",
5
5
  "type": "module",
6
- "bin": {
7
- "create-domis": "./bin.js"
8
- },
6
+ "bin": "./bin.js",
7
+ "files": [
8
+ "bin.js"
9
+ ],
9
10
  "author": "Domisnnet",
10
11
  "license": "MIT",
12
+ "keywords": [
13
+ "angular",
14
+ "firebase",
15
+ "cli",
16
+ "domis",
17
+ "kiwify"
18
+ ],
11
19
  "dependencies": {
12
20
  "degit": "^3.0.4",
13
21
  "picocolors": "^1.0.1",
14
22
  "prompts": "^2.4.2"
15
23
  }
16
- }
24
+ }