listpage_cli 0.0.190 → 0.0.191

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/cli.js CHANGED
@@ -110,7 +110,13 @@ function copyDir(src, dest) {
110
110
  ensureDir(dest);
111
111
  for (const entry of fs_1.default.readdirSync(src)) {
112
112
  const s = path_1.default.join(src, entry);
113
- const outEntry = entry === "gitignore" ? ".gitignore" : entry;
113
+ let outEntry = entry;
114
+ if (entry === "gitignore")
115
+ outEntry = ".gitignore";
116
+ else if (entry === ".gitignore.tmpl")
117
+ outEntry = ".gitignore";
118
+ else if (entry.endsWith(".tmpl"))
119
+ outEntry = entry.slice(0, -5);
114
120
  const d = path_1.default.join(dest, outEntry);
115
121
  const stat = fs_1.default.statSync(s);
116
122
  if (stat.isDirectory())
@@ -196,9 +202,7 @@ function copyTemplateDir(srcDir, destDir, vars) {
196
202
  const rel = path_1.default.relative(srcDir, src);
197
203
  const isTmpl = rel.endsWith(".tmpl");
198
204
  let outRel = isTmpl ? rel.slice(0, -5) : rel;
199
- if (path_1.default.basename(outRel) === "gitignore") {
200
- outRel = path_1.default.join(path_1.default.dirname(outRel), ".gitignore");
201
- }
205
+ console.log(rel);
202
206
  const dest = path_1.default.join(destDir, outRel);
203
207
  ensureDir(path_1.default.dirname(dest));
204
208
  const buf = fs_1.default.readFileSync(src, "utf8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage_cli",
3
- "version": "0.0.190",
3
+ "version": "0.0.191",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "listpage_cli": "bin/cli.js"
@@ -8,7 +8,7 @@
8
8
  "scripts": {
9
9
  "build": "tsc -p tsconfig.json",
10
10
  "prepublishOnly": "npm run build",
11
- "start": "node bin/cli.js",
11
+ "start": "node bin/cli.js init",
12
12
  "test": "node bin/cli.js --help"
13
13
  },
14
14
  "files": [
@@ -0,0 +1,122 @@
1
+ # Logs
2
+ *.log
3
+ npm-debug.log*
4
+ yarn-debug.log*
5
+ yarn-error.log*
6
+ .pnpm-debug.log*
7
+
8
+ # Diagnostic reports (https://nodejs.org/api/report.html)
9
+ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
10
+
11
+ # Runtime data
12
+ *.pid
13
+ *.seed
14
+ *.pid.lock
15
+
16
+ # Directory for instrumented libs generated by jscoverage/JSCover
17
+ lib-cov/
18
+
19
+ # Coverage directory used by tools like istanbul
20
+ coverage/
21
+
22
+ # nyc test coverage
23
+ .nyc_output/
24
+
25
+ # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26
+ .grunt/
27
+
28
+ # Bower dependency directory (https://bower.io/)
29
+ bower_components/
30
+
31
+ # node-waf configuration
32
+ .lock-wscript/
33
+
34
+ # Compiled binary addons (https://nodejs.org/api/addons.html)
35
+ build/Release/
36
+
37
+ # Dependency directories
38
+ node_modules/
39
+ jspm_packages/
40
+
41
+ # TypeScript cache
42
+ *.tsbuildinfo
43
+
44
+ # Optional npm cache directory
45
+ .npm/
46
+
47
+ # Optional eslint cache
48
+ .eslintcache/
49
+
50
+ # Optional REPL history
51
+ .node_repl_history
52
+
53
+ # Output of 'npm pack'
54
+ *.tgz
55
+
56
+ # Yarn Integrity file
57
+ .yarn-integrity
58
+
59
+ # dotenv environment variables file
60
+ .env
61
+ .env.development.local
62
+ .env.test.local
63
+ .env.production.local
64
+ .env.local
65
+
66
+ # next.js build output
67
+ .next/
68
+
69
+ # Docusaurus cache and generated files
70
+ .docusaurus/
71
+
72
+ # Serverless directories
73
+ .serverless/
74
+
75
+ # FuseBox cache
76
+ .fusebox/
77
+
78
+ # DynamoDB Local files
79
+ .dynamodb/
80
+
81
+ # yarn v2
82
+ .yarn/cache/
83
+ .yarn/unplugged/
84
+ .yarn/build-state.yml
85
+ .yarn/install-state.gz
86
+ .pnp.*
87
+
88
+ # OS X temporary files
89
+ .DS_Store
90
+
91
+ # IntelliJ IDEA project files; if you want to commit IntelliJ settings, this recipe may be helpful:
92
+ # https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
93
+ .idea/
94
+ *.iml
95
+
96
+ # Visual Studio Code
97
+ .vscode/
98
+ !.vscode/tasks.json
99
+ !.vscode/launch.json
100
+
101
+ # Rush temporary files
102
+ common/deploy/
103
+ common/temp/
104
+ common/autoinstallers/*/.npmrc
105
+ **/.rush/temp/
106
+ *.lock
107
+
108
+ # Common toolchain intermediate files
109
+ temp/
110
+ lib/
111
+ lib-amd/
112
+ lib-es6/
113
+ lib-esnext/
114
+ lib-commonjs/
115
+ lib-shim/
116
+ dist/
117
+ dist-storybook/
118
+ *.tsbuildinfo
119
+
120
+ # Heft temporary files
121
+ .cache/
122
+ .heft/
@@ -0,0 +1,56 @@
1
+ # compiled output
2
+ /dist
3
+ /node_modules
4
+ /build
5
+
6
+ # Logs
7
+ logs
8
+ *.log
9
+ npm-debug.log*
10
+ pnpm-debug.log*
11
+ yarn-debug.log*
12
+ yarn-error.log*
13
+ lerna-debug.log*
14
+
15
+ # OS
16
+ .DS_Store
17
+
18
+ # Tests
19
+ /coverage
20
+ /.nyc_output
21
+
22
+ # IDEs and editors
23
+ /.idea
24
+ .project
25
+ .classpath
26
+ .c9/
27
+ *.launch
28
+ .settings/
29
+ *.sublime-workspace
30
+
31
+ # IDE - VSCode
32
+ .vscode/*
33
+ !.vscode/settings.json
34
+ !.vscode/tasks.json
35
+ !.vscode/launch.json
36
+ !.vscode/extensions.json
37
+
38
+ # dotenv environment variable files
39
+ .env
40
+ .env.development.local
41
+ .env.test.local
42
+ .env.production.local
43
+ .env.local
44
+
45
+ # temp directory
46
+ .temp
47
+ .tmp
48
+
49
+ # Runtime data
50
+ pids
51
+ *.pid
52
+ *.seed
53
+ *.pid.lock
54
+
55
+ # Diagnostic reports (https://nodejs.org/api/report.html)
56
+ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
@@ -9,9 +9,8 @@
9
9
  "build": "nest build",
10
10
  "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
11
11
  "start": "nest start",
12
- "start:dev": "nest start --watch",
13
- "start:debug": "nest start --debug --watch",
14
- "start:prod": "node dist/main"
12
+ "dev": "nest start --watch",
13
+ "prisma:gen": "npx prisma generate"
15
14
  },
16
15
  "dependencies": {
17
16
  "@nestjs/common": "^11.0.1",
@@ -0,0 +1,14 @@
1
+ generator client {
2
+ provider = "prisma-client-js"
3
+ }
4
+
5
+ datasource db {
6
+ provider = "sqlite"
7
+ url = "file:./dev.db"
8
+ }
9
+
10
+ model User {
11
+ id Int @id @default(autoincrement())
12
+ email String @unique
13
+ password String
14
+ }
@@ -0,0 +1,16 @@
1
+ # Local
2
+ .DS_Store
3
+ *.local
4
+ *.log*
5
+
6
+ # Dist
7
+ node_modules
8
+ dist/
9
+
10
+ # Profile
11
+ .rspack-profile-*/
12
+
13
+ # IDE
14
+ .vscode/*
15
+ !.vscode/extensions.json
16
+ .idea
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "react": "^19.2.0",
14
14
  "react-dom": "^19.2.0",
15
- "listpage-next": "~0.0.190",
15
+ "listpage-next": "~0.0.191",
16
16
  "react-router-dom": ">=6.0.0",
17
17
  "@ant-design/v5-patch-for-react-19": "~1.0.3",
18
18
  "ahooks": "^3.9.5",