@robgietema/generator-nick 0.0.11 → 0.0.12
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.
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import { fileURLToPath } from 'url';
|
|
3
|
+
import { config } from './config.js';
|
|
4
|
+
|
|
5
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
3
6
|
|
|
4
7
|
const knexSettings = {
|
|
5
8
|
client: 'pg',
|
|
@@ -20,7 +23,7 @@ const knexSettings = {
|
|
|
20
23
|
},
|
|
21
24
|
};
|
|
22
25
|
|
|
23
|
-
|
|
26
|
+
export default {
|
|
24
27
|
development: knexSettings,
|
|
25
28
|
production: knexSettings,
|
|
26
29
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "<%= projectName %>",
|
|
3
3
|
"description": "",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"version": "0.0.1",
|
|
6
7
|
"private": true,
|
|
@@ -14,17 +15,17 @@
|
|
|
14
15
|
"develop": "missdev --config=jsconfig.json --fetch-https",
|
|
15
16
|
"develop:npx": "npx -p mrs-developer missdev --config=jsconfig.json --fetch-https",
|
|
16
17
|
"bootstrap": "pnpm preinstall && pnpm install && pnpm migrate && pnpm seed",
|
|
17
|
-
"convert": "
|
|
18
|
-
"i18n": "
|
|
18
|
+
"convert": "tsx scripts/convert.js",
|
|
19
|
+
"i18n": "tsx src/develop/nick/scripts/i18n.js",
|
|
19
20
|
"i18n:ci": "pnpm i18n && git diff -G'^[^\"POT]' --exit-code",
|
|
20
|
-
"knex": "
|
|
21
|
+
"knex": "tsx ./node_modules/knex/bin/cli.js",
|
|
21
22
|
"lint": "./node_modules/eslint/bin/eslint.js --max-warnings=0 'src/**/*.{js,jsx,json}'",
|
|
22
23
|
"migrate": "pnpm knex migrate:latest",
|
|
23
24
|
"prettier": "./node_modules/.bin/prettier --single-quote --check 'src/**/*.{js,jsx,ts,tsx,json}'",
|
|
24
|
-
"seed": "
|
|
25
|
-
"seed:status": "
|
|
26
|
-
"seed:upgrade": "
|
|
27
|
-
"start": "nodemon --exec '
|
|
25
|
+
"seed": "tsx src/develop/nick/scripts/seed.js run",
|
|
26
|
+
"seed:status": "tsx src/develop/nick/scripts/seed.js status",
|
|
27
|
+
"seed:upgrade": "tsx src/develop/nick/scripts/seed.js upgrade",
|
|
28
|
+
"start": "nodemon --exec 'tsx src/develop/nick/src/server.ts'",
|
|
28
29
|
"rollback": "pnpm knex migrate:rollback --all",
|
|
29
30
|
"reset": "pnpm rollback && pnpm migrate && pnpm seed",
|
|
30
31
|
"test": "AUTH_RATE_LIMIT=1000 jest --passWithNoTests",
|
|
@@ -65,6 +66,6 @@
|
|
|
65
66
|
"@robgietema/nick": "workspace:^",
|
|
66
67
|
"knex": "3.1.0",
|
|
67
68
|
"nodemon": "3.1.11",
|
|
68
|
-
"
|
|
69
|
+
"tsx": "4.21.0"
|
|
69
70
|
}
|
|
70
71
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
12
12
|
|
|
13
13
|
/* Language and Environment */
|
|
14
|
-
"target": "
|
|
14
|
+
"target": "ES2022" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
|
15
15
|
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
16
16
|
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
17
17
|
// "libReplacement": true, /* Enable lib replacement. */
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
27
27
|
|
|
28
28
|
/* Modules */
|
|
29
|
-
"module": "
|
|
29
|
+
"module": "ESNext" /* Specify what module code is generated. */,
|
|
30
30
|
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
31
|
-
"moduleResolution": "
|
|
31
|
+
"moduleResolution": "Bundler" /* Specify how TypeScript looks up a file from a given module specifier. */,
|
|
32
32
|
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
33
33
|
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
34
34
|
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|