@robgietema/generator-nick 0.0.7 → 0.0.8
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/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2022 Rob Gietema
|
|
3
|
+
Copyright (c) 2022-2025 Rob Gietema
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
|
package/README.md
CHANGED
|
@@ -31,12 +31,12 @@ yo @robgietema/nick
|
|
|
31
31
|
|
|
32
32
|
This will bootstrap a new Nick project inside the current folder.
|
|
33
33
|
|
|
34
|
-
### Start Nick with `
|
|
34
|
+
### Start Nick with `pnpm start`
|
|
35
35
|
|
|
36
36
|
Start Nick with:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
|
|
39
|
+
pnpm start
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
This runs the project in development mode.
|
|
@@ -45,10 +45,10 @@ Consult the Nick docs for further details:
|
|
|
45
45
|
|
|
46
46
|
https://nickcms.org
|
|
47
47
|
|
|
48
|
-
### Run unit tests with `
|
|
48
|
+
### Run unit tests with `pnpm test`
|
|
49
49
|
|
|
50
50
|
Runs all the tests.
|
|
51
51
|
|
|
52
|
-
### Update translations with `
|
|
52
|
+
### Update translations with `pnpm i18n`
|
|
53
53
|
|
|
54
54
|
Runs the test i18n runner which extracts all the translation strings and generates the needed files.
|
package/generators/app/index.js
CHANGED
|
@@ -105,13 +105,13 @@ Run "npm install -g @robgietema/generator-nick" to update.`,
|
|
|
105
105
|
this.fs.delete(this.destinationPath(base, '.gitignorefile'));
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
install() {
|
|
108
|
+
async install() {
|
|
109
109
|
if (!this.opts['skip-install']) {
|
|
110
110
|
const base =
|
|
111
111
|
currentDir === this.globals.projectName
|
|
112
112
|
? '.'
|
|
113
113
|
: this.globals.projectName;
|
|
114
|
-
|
|
114
|
+
await exec(`pnpm install --cwd ${base}`);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -129,8 +129,8 @@ $ GRANT ALL PRIVILEGES ON DATABASE "${this.globals.projectName}" TO "${this.glob
|
|
|
129
129
|
|
|
130
130
|
Now go to the ${this.globals.projectName} folder and run:
|
|
131
131
|
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
pnpm bootstrap
|
|
133
|
+
pnpm start
|
|
134
134
|
`,
|
|
135
135
|
);
|
|
136
136
|
} else {
|
|
@@ -145,9 +145,9 @@ $ GRANT ALL PRIVILEGES ON DATABASE "${this.globals.projectName}" TO "${this.glob
|
|
|
145
145
|
|
|
146
146
|
Now go to the ${this.globals.projectName} folder and run:
|
|
147
147
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
pnpm install
|
|
149
|
+
pnpm bootstrap
|
|
150
|
+
pnpm start
|
|
151
151
|
`);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"develop": "missdev --config=jsconfig.json --fetch-https",
|
|
15
15
|
"develop:npx": "npx -p mrs-developer missdev --config=jsconfig.json --fetch-https",
|
|
16
|
-
"bootstrap": "
|
|
16
|
+
"bootstrap": "pnpm install && pnpm migrate && pnpm seed",
|
|
17
17
|
"coverage": "jest --coverage",
|
|
18
18
|
"i18n": "babel-node scripts/i18n.js",
|
|
19
|
-
"i18n:ci": "
|
|
20
|
-
"knex": "babel-node --plugins ./src/develop/nick/src/plugins/strip-i18n.js node_modules
|
|
19
|
+
"i18n:ci": "pnpm i18n && git diff -G'^[^\"POT]' --exit-code",
|
|
20
|
+
"knex": "babel-node --plugins ./src/develop/nick/src/plugins/strip-i18n.js node_modules/knex/bin/cli.js",
|
|
21
21
|
"lint": "./node_modules/eslint/bin/eslint.js --max-warnings=0 'src/**/*.{js,jsx,json}' --no-error-on-unmatched-pattern",
|
|
22
|
-
"migrate": "
|
|
23
|
-
"preinstall": "if [ -f $(pwd)/node_modules/.bin/missdev ]; then
|
|
22
|
+
"migrate": "pnpm knex migrate:latest",
|
|
23
|
+
"preinstall": "if [ -f $(pwd)/node_modules/.bin/missdev ]; then pnpm develop; else pnpm develop:npx; fi",
|
|
24
24
|
"prettier": "./node_modules/.bin/prettier --single-quote --check 'src/**/*.{js,jsx,ts,tsx,json}'",
|
|
25
25
|
"seed": "babel-node src/develop/nick/scripts/seed.js run",
|
|
26
26
|
"seed:status": "babel-node src/develop/nick/scripts/seed.js status",
|
|
27
27
|
"seed:upgrade": "babel-node src/develop/nick/scripts/seed.js upgrade",
|
|
28
28
|
"start": "nodemon --exec babel-node src/develop/nick/src/server.js",
|
|
29
|
-
"rollback": "
|
|
30
|
-
"reset": "
|
|
29
|
+
"rollback": "pnpm knex migrate:rollback --all",
|
|
30
|
+
"reset": "pnpm rollback && pnpm migrate && pnpm seed",
|
|
31
31
|
"test": "jest --passWithNoTests"
|
|
32
32
|
},
|
|
33
33
|
"prettier": {
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "0.0.
|
|
12
|
+
"version": "0.0.8",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git@github.com:robgietema/nick.git"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"cms"
|
|
31
31
|
],
|
|
32
32
|
"engines": {
|
|
33
|
-
"node": "^20 || ^22 || ^23"
|
|
33
|
+
"node": "^20 || ^22 || ^23 || ^24"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"update-notifier": "^5.0.1",
|