@vnodes/cli 0.1.5 → 0.1.6
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 +0 -1
- package/dist/cli/cli.js +3 -1
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/rm/rm.d.ts +12 -0
- package/dist/cli/rm/rm.d.ts.map +1 -0
- package/dist/cli/rm/rm.js +21 -0
- package/dist/cli/rm/rm.js.map +1 -0
- package/dist/generators/project/api/.env.template +4 -3
- package/dist/generators/project/api/.gitignore.template +1 -2
- package/dist/generators/project/api/.npmignore.template +1 -2
- package/dist/generators/project/common/README.md.template +0 -1
- package/dist/package.json +2 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|

|
|
3
3
|

|
|
4
|
-

|
|
5
4
|

|
|
6
5
|
|
|
7
6
|
<p align="center">
|
package/dist/cli/cli.js
CHANGED
|
@@ -2,11 +2,13 @@ import { program } from 'commander';
|
|
|
2
2
|
import { hello } from './hello/hello.js';
|
|
3
3
|
import { wd } from './wd/wd.js';
|
|
4
4
|
import { suffix } from './suffix/suffix.js';
|
|
5
|
+
import { rm } from './rm/rm.js';
|
|
5
6
|
program.name('Vnodes cli').description('Tools and generators').version('0.1.0').showHelpAfterError(true);
|
|
6
7
|
[
|
|
7
8
|
hello,
|
|
8
9
|
wd,
|
|
9
|
-
suffix
|
|
10
|
+
suffix,
|
|
11
|
+
rm
|
|
10
12
|
].map((c)=>c(program));
|
|
11
13
|
program.parse();
|
|
12
14
|
|
package/dist/cli/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/cli/cli.ts"],"sourcesContent":["import { program } from 'commander';\nimport { hello } from './hello/hello.js';\nimport { wd } from './wd/wd.js';\nimport { suffix } from './suffix/suffix.js';\n\nprogram\n .name('Vnodes cli')\n .description('Tools and generators')\n .version('0.1.0')\n .showHelpAfterError(true);\n\n[hello, wd, suffix].map((c) => c(program));\n\nprogram.parse();\n"],"names":["program","hello","wd","suffix","name","description","version","showHelpAfterError","map","c","parse"],"mappings":"AAAA,SAASA,OAAO,QAAQ,YAAY;AACpC,SAASC,KAAK,QAAQ,mBAAmB;AACzC,SAASC,EAAE,QAAQ,aAAa;AAChC,SAASC,MAAM,QAAQ,qBAAqB;
|
|
1
|
+
{"version":3,"sources":["../../src/cli/cli.ts"],"sourcesContent":["import { program } from 'commander';\nimport { hello } from './hello/hello.js';\nimport { wd } from './wd/wd.js';\nimport { suffix } from './suffix/suffix.js';\nimport { rm } from './rm/rm.js';\n\nprogram\n .name('Vnodes cli')\n .description('Tools and generators')\n .version('0.1.0')\n .showHelpAfterError(true);\n\n[hello, wd, suffix, rm].map((c) => c(program));\n\nprogram.parse();\n"],"names":["program","hello","wd","suffix","rm","name","description","version","showHelpAfterError","map","c","parse"],"mappings":"AAAA,SAASA,OAAO,QAAQ,YAAY;AACpC,SAASC,KAAK,QAAQ,mBAAmB;AACzC,SAASC,EAAE,QAAQ,aAAa;AAChC,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SAASC,EAAE,QAAQ,aAAa;AAEhCJ,QACGK,IAAI,CAAC,cACLC,WAAW,CAAC,wBACZC,OAAO,CAAC,SACRC,kBAAkB,CAAC;AAEtB;IAACP;IAAOC;IAAIC;IAAQC;CAAG,CAACK,GAAG,CAAC,CAACC,IAAMA,EAAEV;AAErCA,QAAQW,KAAK"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
/**
|
|
3
|
+
* Remove files/directories
|
|
4
|
+
*
|
|
5
|
+
* ### Example
|
|
6
|
+
* ````sh
|
|
7
|
+
* vnodes rm --username YourName
|
|
8
|
+
* ````
|
|
9
|
+
* @param command main command instance
|
|
10
|
+
*/
|
|
11
|
+
export declare function rm(command: Command): void;
|
|
12
|
+
//# sourceMappingURL=rm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rm.d.ts","sourceRoot":"","sources":["../../../src/cli/rm/rm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC;;;;;;;;GAQG;AACH,wBAAgB,EAAE,CAAC,OAAO,EAAE,OAAO,QAQlC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { rmSync } from 'node:fs';
|
|
2
|
+
import { scope } from '@vnodes/fs';
|
|
3
|
+
import { cwd } from 'node:process';
|
|
4
|
+
/**
|
|
5
|
+
* Remove files/directories
|
|
6
|
+
*
|
|
7
|
+
* ### Example
|
|
8
|
+
* ````sh
|
|
9
|
+
* vnodes rm --username YourName
|
|
10
|
+
* ````
|
|
11
|
+
* @param command main command instance
|
|
12
|
+
*/ export function rm(command) {
|
|
13
|
+
command.command('rm').requiredOption('-p, --path <string>', 'What is your name').action(({ path })=>{
|
|
14
|
+
const resolve = scope(cwd());
|
|
15
|
+
rmSync(resolve(path), {
|
|
16
|
+
recursive: true
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=rm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/cli/rm/rm.ts"],"sourcesContent":["import { Command } from 'commander';\nimport { rmSync } from 'node:fs';\nimport { scope } from '@vnodes/fs';\nimport { cwd } from 'node:process';\n/**\n * Remove files/directories\n *\n * ### Example\n * ````sh\n * vnodes rm --username YourName\n * ````\n * @param command main command instance\n */\nexport function rm(command: Command) {\n command\n .command('rm')\n .requiredOption('-p, --path <string>', 'What is your name')\n .action(({ path }) => {\n const resolve = scope(cwd());\n rmSync(resolve(path), { recursive: true });\n });\n}\n"],"names":["rmSync","scope","cwd","rm","command","requiredOption","action","path","resolve","recursive"],"mappings":"AACA,SAASA,MAAM,QAAQ,UAAU;AACjC,SAASC,KAAK,QAAQ,aAAa;AACnC,SAASC,GAAG,QAAQ,eAAe;AACnC;;;;;;;;CAQC,GACD,OAAO,SAASC,GAAGC,OAAgB;IACjCA,QACGA,OAAO,CAAC,MACRC,cAAc,CAAC,uBAAuB,qBACtCC,MAAM,CAAC,CAAC,EAAEC,IAAI,EAAE;QACf,MAAMC,UAAUP,MAAMC;QACtBF,OAAOQ,QAAQD,OAAO;YAAEE,WAAW;QAAK;IAC1C;AACJ"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
PROFILE=
|
|
1
|
+
PROFILE=DEV
|
|
2
2
|
APP_ID=<%- fileName %>
|
|
3
|
+
APP_DESC=- [ ] Add description
|
|
3
4
|
API_PREFIX=api
|
|
4
5
|
PORT=3000
|
|
5
|
-
DB_URL=postgres
|
|
6
|
-
DB_SCHEMA=<%- fileName %>
|
|
6
|
+
DB_URL=postgres://<%- orgName %>:password@localhost:5432/<%- orgName %>?schema=<%- fileName %>
|
|
7
|
+
DB_SCHEMA=<%- fileName %>
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
!package.json
|
|
1
|
+
dist/package.json
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|

|
|
3
3
|

|
|
4
|
-

|
|
5
4
|

|
|
6
5
|
|
|
7
6
|
<p align="center">
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vnodes/cli",
|
|
3
3
|
"description": "Vnodes cli",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6",
|
|
5
5
|
"author": {
|
|
6
6
|
"email": "robert.brightline+vnodes-prisma@gmail.com",
|
|
7
7
|
"name": "Robert Brightline",
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
"dependencies": {
|
|
89
89
|
"@nx/devkit": "22.7.5",
|
|
90
90
|
"@swc/helpers": "~0.5.18",
|
|
91
|
+
"@vnodes/fs": "workspace:*",
|
|
91
92
|
"commander": "^15.0.0"
|
|
92
93
|
},
|
|
93
94
|
"generators": "./generators.json"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vnodes/cli",
|
|
3
3
|
"description": "Vnodes cli",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6",
|
|
5
5
|
"author": {
|
|
6
6
|
"email": "robert.brightline+vnodes-prisma@gmail.com",
|
|
7
7
|
"name": "Robert Brightline",
|
|
@@ -88,7 +88,8 @@
|
|
|
88
88
|
"dependencies": {
|
|
89
89
|
"@nx/devkit": "22.7.5",
|
|
90
90
|
"@swc/helpers": "~0.5.18",
|
|
91
|
-
"commander": "^15.0.0"
|
|
91
|
+
"commander": "^15.0.0",
|
|
92
|
+
"@vnodes/fs": "0.1.6"
|
|
92
93
|
},
|
|
93
94
|
"generators": "./generators.json"
|
|
94
95
|
}
|