create-domis 1.0.2 β 1.0.4
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/bin.js +14 -33
- package/package.json +6 -3
package/bin.js
CHANGED
|
@@ -1,44 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
import prompts from 'prompts';
|
|
2
3
|
import pc from 'picocolors';
|
|
3
|
-
import degit from 'degit';
|
|
4
4
|
|
|
5
|
-
console.log(
|
|
6
|
-
console.log(pc.
|
|
7
|
-
console.log(pc.cyan(
|
|
5
|
+
console.log('');
|
|
6
|
+
console.log(pc.bgYellow(pc.black(' π₯ DOMISPACKS TECHNICAL v1.0.4 π₯ ')));
|
|
7
|
+
console.log(pc.cyan(' Sales: https://kiwify.app/L2NNYK8'));
|
|
8
|
+
console.log(pc.cyan(' Checkout: https://pay.kiwify.com.br/heAmetM'));
|
|
9
|
+
console.log('');
|
|
8
10
|
|
|
9
|
-
const
|
|
11
|
+
const { proKey: raw } = await prompts({
|
|
10
12
|
type: 'text',
|
|
11
13
|
name: 'proKey',
|
|
12
|
-
message: 'Digite sua PRO_KEY (ou
|
|
14
|
+
message: 'Digite sua PRO_KEY (ou TESTE)',
|
|
13
15
|
});
|
|
14
|
-
const proKey =
|
|
16
|
+
const proKey = (raw || '').trim();
|
|
15
17
|
|
|
16
18
|
if(!proKey || proKey.toUpperCase() === 'TESTE' || proKey.length < 4){
|
|
17
|
-
console.log(pc.green(
|
|
18
|
-
console.log(pc.white(
|
|
19
|
-
console.log(pc.
|
|
20
|
-
console.log(
|
|
21
|
-
console.log(pc.white(`npx create-domis@latest`));
|
|
19
|
+
console.log(pc.green(' OFERTA ATIVA:'));
|
|
20
|
+
console.log(pc.white(' Checkout: https://pay.kiwify.com.br/heAmetM'));
|
|
21
|
+
console.log(pc.white(' Sales: https://kiwify.app/L2NNYK8'));
|
|
22
|
+
console.log('');
|
|
22
23
|
process.exit(0);
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
-
const r2 = await prompts({
|
|
26
|
-
type: 'select',
|
|
27
|
-
name: 'pack',
|
|
28
|
-
message: 'Qual pack deseja baixar?',
|
|
29
|
-
choices: [
|
|
30
|
-
{ title: 'domisdocs-firebase-lite (R$49) - Fix 5min', value: 'domisdocs-firebase-lite' },
|
|
31
|
-
{ title: 'domisdocs-firebase-pro (R$199) - Completo', value: 'domisdocs-firebase-pro' },
|
|
32
|
-
]
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
const pack = r2.pack;
|
|
36
|
-
console.log(pc.cyan(`π¦ Baixando ${pack} com PRO_KEY ${proKey.slice(0,4)}****...`));
|
|
37
|
-
try{
|
|
38
|
-
const emitter = degit(`Domisnnet/DomisPacks-Technical/packs/${pack}#main`, { cache:false, force:true, verbose:false });
|
|
39
|
-
await emitter.clone('.');
|
|
40
|
-
console.log(pc.green(`β
${pack} baixado! npm install e bora!`));
|
|
41
|
-
}catch(e){
|
|
42
|
-
console.log(pc.red(`β Erro: ${e.message}`));
|
|
43
|
-
console.log(pc.white(`Verifique convite GitHub + PRO_KEY. Suporte: github.com/Domisnnet/DomisDocs-Technical/discussions`));
|
|
44
|
-
}
|
|
25
|
+
console.log(' PRO_KEY: ' + proKey.slice(0,4) + '****');
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
ο»Ώ{
|
|
2
2
|
"name": "create-domis",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "CLI
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "CLI DomisPacks Technical - https://pay.kiwify.com.br/heAmetM",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"create-domis": "
|
|
7
|
+
"create-domis": "bin.js"
|
|
8
8
|
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin.js"
|
|
11
|
+
],
|
|
9
12
|
"author": "Domisnnet",
|
|
10
13
|
"license": "MIT",
|
|
11
14
|
"dependencies": {
|