@naturalcycles/dev-lib 13.0.3 → 13.2.0
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/cfg/eslint-rules.js +4 -1
- package/cfg/overwrite/.gitignore +53 -0
- package/dist/bin/update-from-dev-lib.js +10 -2
- package/dist/util/buildInfo.util.d.ts +1 -1
- package/package.json +3 -2
- package/dist/cmd/update-from-dev-lib.command.d.ts +0 -1
- package/dist/cmd/update-from-dev-lib.command.js +0 -14
package/cfg/eslint-rules.js
CHANGED
|
@@ -31,8 +31,11 @@ module.exports = {
|
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
33
|
],
|
|
34
|
+
'@typescript-eslint/consistent-type-imports': 2,
|
|
35
|
+
'@typescript-eslint/consistent-type-exports': 2,
|
|
34
36
|
'@typescript-eslint/consistent-type-assertions': 2,
|
|
35
|
-
'@typescript-eslint/consistent-type-definitions': 2,
|
|
37
|
+
'@typescript-eslint/consistent-type-definitions': [2, 'interface'],
|
|
38
|
+
'@typescript-eslint/consistent-generic-constructors': [2, 'constructor'],
|
|
36
39
|
// Doc: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/naming-convention.md
|
|
37
40
|
// Loosely based on this: https://github.com/xojs/eslint-config-xo-typescript/blob/main/index.js
|
|
38
41
|
'@typescript-eslint/naming-convention': [
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#
|
|
2
|
+
# DO NOT MODIFY, WILL BE OVERWRITTEN BY @naturalcycles/dev-lib
|
|
3
|
+
#
|
|
4
|
+
# You can put more .gitignore files in your respective subfolders (e.g `src`) to ignore additional things.
|
|
5
|
+
# Or PR to @naturalcycles/dev-lib if you want to ignore something generic.
|
|
6
|
+
#
|
|
7
|
+
|
|
8
|
+
#
|
|
9
|
+
# Global (all dirs)
|
|
10
|
+
#
|
|
11
|
+
*.iml
|
|
12
|
+
.idea
|
|
13
|
+
.DS_Store
|
|
14
|
+
node_modules
|
|
15
|
+
.env
|
|
16
|
+
.npmrc
|
|
17
|
+
.classpath
|
|
18
|
+
.project
|
|
19
|
+
.settings
|
|
20
|
+
.externalToolBuilders
|
|
21
|
+
.cache
|
|
22
|
+
.stencil
|
|
23
|
+
.nuxt
|
|
24
|
+
.gitconfig
|
|
25
|
+
.lighthouseci
|
|
26
|
+
|
|
27
|
+
#
|
|
28
|
+
# Root dir
|
|
29
|
+
#
|
|
30
|
+
/target
|
|
31
|
+
/*.log
|
|
32
|
+
/log.txt
|
|
33
|
+
/.sass-cache
|
|
34
|
+
/.sourcemaps
|
|
35
|
+
/docs/.vuepress/dist
|
|
36
|
+
/loader
|
|
37
|
+
/.angular/cache
|
|
38
|
+
|
|
39
|
+
/coverage
|
|
40
|
+
|
|
41
|
+
/dist
|
|
42
|
+
/dist-cjs
|
|
43
|
+
/dist-esm
|
|
44
|
+
/tmp
|
|
45
|
+
|
|
46
|
+
# All secrets are ignored, except encrypted
|
|
47
|
+
/secret/**/*.*
|
|
48
|
+
!/secret/**/*.enc
|
|
49
|
+
|
|
50
|
+
/scripts/try.*
|
|
51
|
+
/logs
|
|
52
|
+
/www/*
|
|
53
|
+
!/www/.gitkeep
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const fs_1 = require("@naturalcycles/nodejs-lib/dist/fs");
|
|
4
5
|
const script_1 = require("@naturalcycles/nodejs-lib/dist/script");
|
|
5
|
-
const
|
|
6
|
-
(0, script_1.runScript)(
|
|
6
|
+
const paths_cnst_1 = require("../cnst/paths.cnst");
|
|
7
|
+
(0, script_1.runScript)(() => {
|
|
8
|
+
(0, fs_1.kpySync)({
|
|
9
|
+
baseDir: paths_cnst_1.cfgOverwriteDir,
|
|
10
|
+
outputDir: './',
|
|
11
|
+
dotfiles: true,
|
|
12
|
+
verbose: true,
|
|
13
|
+
});
|
|
14
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BuildInfo } from './buildInfo.model';
|
|
1
|
+
import type { BuildInfo } from './buildInfo.model';
|
|
2
2
|
export declare function generateBuildInfo(dev?: boolean): Promise<BuildInfo>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/dev-lib",
|
|
3
|
-
"version": "13.0
|
|
3
|
+
"version": "13.2.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"prepare": "husky install",
|
|
6
6
|
"tsn-debug": "tsn testScript.ts",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"prettier": "^2.0.4",
|
|
60
60
|
"stylelint": "^14.0.0",
|
|
61
61
|
"stylelint-config-prettier": "^9.0.3",
|
|
62
|
-
"stylelint-config-standard-scss": "^
|
|
62
|
+
"stylelint-config-standard-scss": "^5.0.0",
|
|
63
63
|
"timekeeper": "^2.2.0",
|
|
64
64
|
"ts-jest": "^28.0.0",
|
|
65
65
|
"typescript": "^4.0.2",
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"files": [
|
|
72
72
|
"dist",
|
|
73
73
|
"scripts/tsconfig.json",
|
|
74
|
+
"cfg/overwrite/.gitignore",
|
|
74
75
|
"cfg"
|
|
75
76
|
],
|
|
76
77
|
"main": "dist/index.js",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function updateFromDevLibCommand(): void;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateFromDevLibCommand = void 0;
|
|
4
|
-
const fs_1 = require("@naturalcycles/nodejs-lib/dist/fs");
|
|
5
|
-
const paths_cnst_1 = require("../cnst/paths.cnst");
|
|
6
|
-
function updateFromDevLibCommand() {
|
|
7
|
-
(0, fs_1.kpySync)({
|
|
8
|
-
baseDir: paths_cnst_1.cfgOverwriteDir,
|
|
9
|
-
outputDir: './',
|
|
10
|
-
dotfiles: true,
|
|
11
|
-
verbose: true,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
exports.updateFromDevLibCommand = updateFromDevLibCommand;
|