@w5s/dev 1.1.1 → 1.3.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/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './constant.js';
2
1
  export * from './eslint.js';
2
+ export * from './project.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
package/dist/index.js CHANGED
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./constant.js"), exports);
18
17
  __exportStar(require("./eslint.js"), exports);
18
+ __exportStar(require("./project.js"), exports);
19
19
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,+CAA6B"}
@@ -0,0 +1,58 @@
1
+ export declare namespace Project {
2
+ type Extension = `.${string}`;
3
+ /**
4
+ * Supported ECMA version
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * Project.ecmaVersion() // 2022
9
+ * ```
10
+ */
11
+ function ecmaVersion(): 2022;
12
+ /**
13
+ * Supported file extensions
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * Project.sourceExtensions() // ['.ts', '.js', ...]
18
+ * ```
19
+ */
20
+ function sourceExtensions(): readonly `.${string}`[];
21
+ /**
22
+ * Resource file extensions
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * Project.resourceExtensions() // ['.css', '.sass', ...]
27
+ * ```
28
+ */
29
+ function resourceExtensions(): readonly `.${string}`[];
30
+ /**
31
+ * Files and folders to always ignore
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * IGNORED // ['node_modules/', 'build/', ...]
36
+ * ```
37
+ */
38
+ function ignored(): readonly string[];
39
+ /**
40
+ * Return a RegExp that will match any list of extensions
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * Project.extensionsToMatcher(['.js', '.ts']) // RegExp = /(\.js|\.ts)$/
45
+ * ```
46
+ */
47
+ function extensionsToMatcher(extensions: readonly Extension[]): RegExp;
48
+ /**
49
+ * Return a glob matcher that will match any list of extensions
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * Project.extensionsToGlob(['.js', '.ts']) // '*.+(js|ts)'
54
+ * ```
55
+ */
56
+ function extensionsToGlob(extensions: readonly Extension[]): string;
57
+ }
58
+ //# sourceMappingURL=project.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../src/project.ts"],"names":[],"mappings":"AAIA,yBAAiB,OAAO,CAAC;IACvB,KAAY,SAAS,GAAG,IAAI,MAAM,EAAE,CAAC;IAErC;;;;;;;OAOG;IACH,SAAgB,WAAW,SAE1B;IAaD;;;;;;;OAOG;IACH,SAAgB,gBAAgB,4BAE/B;IAkBD;;;;;;;OAOG;IACH,SAAgB,kBAAkB,4BAEjC;IAeD;;;;;;;OAOG;IACH,SAAgB,OAAO,sBAEtB;IAED;;;;;;;OAOG;IACH,SAAgB,mBAAmB,CAAC,UAAU,EAAE,SAAS,SAAS,EAAE,GAAG,MAAM,CAE5E;IAED;;;;;;;OAOG;IACH,SAAgB,gBAAgB,CAAC,UAAU,EAAE,SAAS,SAAS,EAAE,GAAG,MAAM,CAEzE;CACF"}
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Project = void 0;
4
+ function escapeRegExp(value) {
5
+ return value.replaceAll(/[$()*+.?[\\\]^{|}]/g, '\\$&'); // $& means the whole matched string
6
+ }
7
+ var Project;
8
+ (function (Project) {
9
+ /**
10
+ * Supported ECMA version
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * Project.ecmaVersion() // 2022
15
+ * ```
16
+ */
17
+ function ecmaVersion() {
18
+ return 2022;
19
+ }
20
+ Project.ecmaVersion = ecmaVersion;
21
+ const SOURCE_EXTENSIONS = Object.freeze([
22
+ '.ts',
23
+ '.tsx',
24
+ '.cts',
25
+ '.mts',
26
+ '.js',
27
+ '.jsx',
28
+ '.cjs',
29
+ '.mjs',
30
+ ]);
31
+ /**
32
+ * Supported file extensions
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * Project.sourceExtensions() // ['.ts', '.js', ...]
37
+ * ```
38
+ */
39
+ function sourceExtensions() {
40
+ return SOURCE_EXTENSIONS;
41
+ }
42
+ Project.sourceExtensions = sourceExtensions;
43
+ const RESOURCE_EXTENSIONS = Object.freeze([
44
+ '.css',
45
+ '.sass',
46
+ '.scss',
47
+ '.less',
48
+ '.gif',
49
+ '.png',
50
+ '.jpg',
51
+ '.jpeg',
52
+ '.svg',
53
+ '.gql',
54
+ '.graphql',
55
+ '.yml',
56
+ '.yaml',
57
+ ]);
58
+ /**
59
+ * Resource file extensions
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * Project.resourceExtensions() // ['.css', '.sass', ...]
64
+ * ```
65
+ */
66
+ function resourceExtensions() {
67
+ return RESOURCE_EXTENSIONS;
68
+ }
69
+ Project.resourceExtensions = resourceExtensions;
70
+ const IGNORED = Object.freeze([
71
+ 'node_modules/',
72
+ 'build/',
73
+ 'cjs/',
74
+ 'coverage/',
75
+ 'dist/',
76
+ 'dts/',
77
+ 'esm/',
78
+ 'lib/',
79
+ 'mjs/',
80
+ 'umd/',
81
+ ]);
82
+ /**
83
+ * Files and folders to always ignore
84
+ *
85
+ * @example
86
+ * ```ts
87
+ * IGNORED // ['node_modules/', 'build/', ...]
88
+ * ```
89
+ */
90
+ function ignored() {
91
+ return IGNORED;
92
+ }
93
+ Project.ignored = ignored;
94
+ /**
95
+ * Return a RegExp that will match any list of extensions
96
+ *
97
+ * @example
98
+ * ```ts
99
+ * Project.extensionsToMatcher(['.js', '.ts']) // RegExp = /(\.js|\.ts)$/
100
+ * ```
101
+ */
102
+ function extensionsToMatcher(extensions) {
103
+ return new RegExp(`(${extensions.map(escapeRegExp).join('|')})$`);
104
+ }
105
+ Project.extensionsToMatcher = extensionsToMatcher;
106
+ /**
107
+ * Return a glob matcher that will match any list of extensions
108
+ *
109
+ * @example
110
+ * ```ts
111
+ * Project.extensionsToGlob(['.js', '.ts']) // '*.+(js|ts)'
112
+ * ```
113
+ */
114
+ function extensionsToGlob(extensions) {
115
+ return `*.+(${extensions.map((_) => _.replace(/^\./, '')).join('|')})`;
116
+ }
117
+ Project.extensionsToGlob = extensionsToGlob;
118
+ })(Project || (exports.Project = Project = {}));
119
+ //# sourceMappingURL=project.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.js","sourceRoot":"","sources":["../src/project.ts"],"names":[],"mappings":";;;AAAA,SAAS,YAAY,CAAC,KAAa;IACjC,OAAO,KAAK,CAAC,UAAU,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,CAAC,oCAAoC;AAC9F,CAAC;AAED,IAAiB,OAAO,CAkHvB;AAlHD,WAAiB,OAAO;IAGtB;;;;;;;OAOG;IACH,SAAgB,WAAW;QACzB,OAAO,IAAa,CAAC;IACvB,CAAC;IAFe,mBAAW,cAE1B,CAAA;IAED,MAAM,iBAAiB,GAAyB,MAAM,CAAC,MAAM,CAAC;QAC5D,KAAK;QACL,MAAM;QACN,MAAM;QACN,MAAM;QACN,KAAK;QACL,MAAM;QACN,MAAM;QACN,MAAM;KACP,CAAC,CAAC;IAEH;;;;;;;OAOG;IACH,SAAgB,gBAAgB;QAC9B,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAFe,wBAAgB,mBAE/B,CAAA;IAED,MAAM,mBAAmB,GAAyB,MAAM,CAAC,MAAM,CAAC;QAC9D,MAAM;QACN,OAAO;QACP,OAAO;QACP,OAAO;QACP,MAAM;QACN,MAAM;QACN,MAAM;QACN,OAAO;QACP,MAAM;QACN,MAAM;QACN,UAAU;QACV,MAAM;QACN,OAAO;KACR,CAAC,CAAC;IAEH;;;;;;;OAOG;IACH,SAAgB,kBAAkB;QAChC,OAAO,mBAAmB,CAAC;IAC7B,CAAC;IAFe,0BAAkB,qBAEjC,CAAA;IAED,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,eAAe;QACf,QAAQ;QACR,MAAM;QACN,WAAW;QACX,OAAO;QACP,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;KACP,CAAC,CAAC;IAEH;;;;;;;OAOG;IACH,SAAgB,OAAO;QACrB,OAAO,OAAO,CAAC;IACjB,CAAC;IAFe,eAAO,UAEtB,CAAA;IAED;;;;;;;OAOG;IACH,SAAgB,mBAAmB,CAAC,UAAgC;QAClE,OAAO,IAAI,MAAM,CAAC,IAAI,UAAU,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACpE,CAAC;IAFe,2BAAmB,sBAElC,CAAA;IAED;;;;;;;OAOG;IACH,SAAgB,gBAAgB,CAAC,UAAgC;QAC/D,OAAO,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;IACzE,CAAC;IAFe,wBAAgB,mBAE/B,CAAA;AACH,CAAC,EAlHgB,OAAO,uBAAP,OAAO,QAkHvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/dev",
3
- "version": "1.1.1",
3
+ "version": "1.3.0",
4
4
  "description": "Shared development constants and functions",
5
5
  "keywords": [
6
6
  "config",
@@ -51,7 +51,7 @@
51
51
  "@types/eslint": "^8.44.0"
52
52
  },
53
53
  "devDependencies": {
54
- "vite": "4.4.3",
54
+ "vite": "4.4.7",
55
55
  "vitest": "0.33.0"
56
56
  },
57
57
  "engines": {
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "80e6661d57dd6ed7a832f7e34fe3eab7adcddb88"
63
+ "gitHead": "a10793f9e40481a6e84451e57851a3af630ce953"
64
64
  }
package/src/index.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './constant.js';
2
1
  export * from './eslint.js';
2
+ export * from './project.js';
package/src/project.ts ADDED
@@ -0,0 +1,119 @@
1
+ function escapeRegExp(value: string) {
2
+ return value.replaceAll(/[$()*+.?[\\\]^{|}]/g, '\\$&'); // $& means the whole matched string
3
+ }
4
+
5
+ export namespace Project {
6
+ export type Extension = `.${string}`;
7
+
8
+ /**
9
+ * Supported ECMA version
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * Project.ecmaVersion() // 2022
14
+ * ```
15
+ */
16
+ export function ecmaVersion() {
17
+ return 2022 as const;
18
+ }
19
+
20
+ const SOURCE_EXTENSIONS: readonly Extension[] = Object.freeze([
21
+ '.ts',
22
+ '.tsx',
23
+ '.cts',
24
+ '.mts',
25
+ '.js',
26
+ '.jsx',
27
+ '.cjs',
28
+ '.mjs',
29
+ ]);
30
+
31
+ /**
32
+ * Supported file extensions
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * Project.sourceExtensions() // ['.ts', '.js', ...]
37
+ * ```
38
+ */
39
+ export function sourceExtensions() {
40
+ return SOURCE_EXTENSIONS;
41
+ }
42
+
43
+ const RESOURCE_EXTENSIONS: readonly Extension[] = Object.freeze([
44
+ '.css',
45
+ '.sass',
46
+ '.scss',
47
+ '.less',
48
+ '.gif',
49
+ '.png',
50
+ '.jpg',
51
+ '.jpeg',
52
+ '.svg',
53
+ '.gql',
54
+ '.graphql',
55
+ '.yml',
56
+ '.yaml',
57
+ ]);
58
+
59
+ /**
60
+ * Resource file extensions
61
+ *
62
+ * @example
63
+ * ```ts
64
+ * Project.resourceExtensions() // ['.css', '.sass', ...]
65
+ * ```
66
+ */
67
+ export function resourceExtensions() {
68
+ return RESOURCE_EXTENSIONS;
69
+ }
70
+
71
+ const IGNORED = Object.freeze([
72
+ 'node_modules/',
73
+ 'build/',
74
+ 'cjs/',
75
+ 'coverage/',
76
+ 'dist/',
77
+ 'dts/',
78
+ 'esm/',
79
+ 'lib/',
80
+ 'mjs/',
81
+ 'umd/',
82
+ ]);
83
+
84
+ /**
85
+ * Files and folders to always ignore
86
+ *
87
+ * @example
88
+ * ```ts
89
+ * IGNORED // ['node_modules/', 'build/', ...]
90
+ * ```
91
+ */
92
+ export function ignored() {
93
+ return IGNORED;
94
+ }
95
+
96
+ /**
97
+ * Return a RegExp that will match any list of extensions
98
+ *
99
+ * @example
100
+ * ```ts
101
+ * Project.extensionsToMatcher(['.js', '.ts']) // RegExp = /(\.js|\.ts)$/
102
+ * ```
103
+ */
104
+ export function extensionsToMatcher(extensions: readonly Extension[]): RegExp {
105
+ return new RegExp(`(${extensions.map(escapeRegExp).join('|')})$`);
106
+ }
107
+
108
+ /**
109
+ * Return a glob matcher that will match any list of extensions
110
+ *
111
+ * @example
112
+ * ```ts
113
+ * Project.extensionsToGlob(['.js', '.ts']) // '*.+(js|ts)'
114
+ * ```
115
+ */
116
+ export function extensionsToGlob(extensions: readonly Extension[]): string {
117
+ return `*.+(${extensions.map((_) => _.replace(/^\./, '')).join('|')})`;
118
+ }
119
+ }
@@ -1,47 +0,0 @@
1
- /**
2
- * Supported ECMA version
3
- *
4
- * @example
5
- * ```ts
6
- * ECMA_VERSION // 2022
7
- * ```
8
- */
9
- export declare const ECMA_VERSION = 2022;
10
- /**
11
- * Files and folders to always ignore
12
- *
13
- * @example
14
- * ```ts
15
- * IGNORE_LIST // ['node_modules/', 'build/', ...]
16
- * ```
17
- */
18
- export declare const IGNORE_LIST: string[];
19
- /**
20
- * Supported file extensions
21
- *
22
- * @example
23
- * ```ts
24
- * EXTENSIONS // ['.ts', '.js', ...]
25
- * ```
26
- */
27
- export declare const EXTENSIONS: string[];
28
- /**
29
- * Supported file extensions without starting dots
30
- *
31
- * @example
32
- * ```ts
33
- * EXTENSIONS_WITHOUT_DOT // ['ts', 'js', ...]
34
- * ```
35
- */
36
- export declare const EXTENSIONS_WITHOUT_DOT: string[];
37
- /**
38
- * List of globs to find config related files
39
- *
40
- * @example
41
- * ```ts
42
- * CONFIG_GLOB_LIST // ['**\/.*.{js,cjs}', '**\/*.config.{js,cjs}']
43
- * ```
44
- */
45
- export declare const CONFIG_GLOB_LIST: string[];
46
- export declare const EXTENSIONS_RESOURCES_REGEX = "\\.(css|sass|scss|less|gif|png|jpg|jpeg|svg|gql|graphql|yml|yaml)$";
47
- //# sourceMappingURL=constant.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../src/constant.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,UAWvB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,UAAiE,CAAC;AAEzF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,UAAwC,CAAC;AAE5E;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,UAA6C,CAAC;AAE3E,eAAO,MAAM,0BAA0B,uEAAuE,CAAC"}
package/dist/constant.js DELETED
@@ -1,61 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EXTENSIONS_RESOURCES_REGEX = exports.CONFIG_GLOB_LIST = exports.EXTENSIONS_WITHOUT_DOT = exports.EXTENSIONS = exports.IGNORE_LIST = exports.ECMA_VERSION = void 0;
4
- /**
5
- * Supported ECMA version
6
- *
7
- * @example
8
- * ```ts
9
- * ECMA_VERSION // 2022
10
- * ```
11
- */
12
- exports.ECMA_VERSION = 2022;
13
- /**
14
- * Files and folders to always ignore
15
- *
16
- * @example
17
- * ```ts
18
- * IGNORE_LIST // ['node_modules/', 'build/', ...]
19
- * ```
20
- */
21
- exports.IGNORE_LIST = [
22
- 'node_modules/',
23
- 'build/',
24
- 'cjs/',
25
- 'coverage/',
26
- 'dist/',
27
- 'dts/',
28
- 'esm/',
29
- 'lib/',
30
- 'mjs/',
31
- 'umd/',
32
- ];
33
- /**
34
- * Supported file extensions
35
- *
36
- * @example
37
- * ```ts
38
- * EXTENSIONS // ['.ts', '.js', ...]
39
- * ```
40
- */
41
- exports.EXTENSIONS = ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs'];
42
- /**
43
- * Supported file extensions without starting dots
44
- *
45
- * @example
46
- * ```ts
47
- * EXTENSIONS_WITHOUT_DOT // ['ts', 'js', ...]
48
- * ```
49
- */
50
- exports.EXTENSIONS_WITHOUT_DOT = exports.EXTENSIONS.map((ext) => ext.slice(1));
51
- /**
52
- * List of globs to find config related files
53
- *
54
- * @example
55
- * ```ts
56
- * CONFIG_GLOB_LIST // ['**\/.*.{js,cjs}', '**\/*.config.{js,cjs}']
57
- * ```
58
- */
59
- exports.CONFIG_GLOB_LIST = ['**/.*.{js,cjs}', '**/*.config.{js,cjs}'];
60
- exports.EXTENSIONS_RESOURCES_REGEX = '\\.(css|sass|scss|less|gif|png|jpg|jpeg|svg|gql|graphql|yml|yaml)$';
61
- //# sourceMappingURL=constant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constant.js","sourceRoot":"","sources":["../src/constant.ts"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACU,QAAA,YAAY,GAAG,IAAI,CAAC;AAEjC;;;;;;;GAOG;AACU,QAAA,WAAW,GAAG;IACzB,eAAe;IACf,QAAQ;IACR,MAAM;IACN,WAAW;IACX,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;CACP,CAAC;AAEF;;;;;;;GAOG;AACU,QAAA,UAAU,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEzF;;;;;;;GAOG;AACU,QAAA,sBAAsB,GAAG,kBAAU,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAE5E;;;;;;;GAOG;AACU,QAAA,gBAAgB,GAAG,CAAC,gBAAgB,EAAE,sBAAsB,CAAC,CAAC;AAE9D,QAAA,0BAA0B,GAAG,oEAAoE,CAAC"}
package/src/constant.ts DELETED
@@ -1,62 +0,0 @@
1
- /**
2
- * Supported ECMA version
3
- *
4
- * @example
5
- * ```ts
6
- * ECMA_VERSION // 2022
7
- * ```
8
- */
9
- export const ECMA_VERSION = 2022;
10
-
11
- /**
12
- * Files and folders to always ignore
13
- *
14
- * @example
15
- * ```ts
16
- * IGNORE_LIST // ['node_modules/', 'build/', ...]
17
- * ```
18
- */
19
- export const IGNORE_LIST = [
20
- 'node_modules/',
21
- 'build/',
22
- 'cjs/',
23
- 'coverage/',
24
- 'dist/',
25
- 'dts/',
26
- 'esm/',
27
- 'lib/',
28
- 'mjs/',
29
- 'umd/',
30
- ];
31
-
32
- /**
33
- * Supported file extensions
34
- *
35
- * @example
36
- * ```ts
37
- * EXTENSIONS // ['.ts', '.js', ...]
38
- * ```
39
- */
40
- export const EXTENSIONS = ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs'];
41
-
42
- /**
43
- * Supported file extensions without starting dots
44
- *
45
- * @example
46
- * ```ts
47
- * EXTENSIONS_WITHOUT_DOT // ['ts', 'js', ...]
48
- * ```
49
- */
50
- export const EXTENSIONS_WITHOUT_DOT = EXTENSIONS.map((ext) => ext.slice(1));
51
-
52
- /**
53
- * List of globs to find config related files
54
- *
55
- * @example
56
- * ```ts
57
- * CONFIG_GLOB_LIST // ['**\/.*.{js,cjs}', '**\/*.config.{js,cjs}']
58
- * ```
59
- */
60
- export const CONFIG_GLOB_LIST = ['**/.*.{js,cjs}', '**/*.config.{js,cjs}'];
61
-
62
- export const EXTENSIONS_RESOURCES_REGEX = '\\.(css|sass|scss|less|gif|png|jpg|jpeg|svg|gql|graphql|yml|yaml)$';