@digest/scripts 4.14.4 → 4.14.5-beta.1

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@digest/scripts",
3
3
  "title": "Digest Scripts",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "4.14.4",
5
+ "version": "4.14.5-beta.1",
6
6
  "description": "Helper scripts for various digests",
7
7
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
8
8
  "contributors": [
@@ -34,7 +34,7 @@
34
34
  "clean": "rimraf node_modules dist package-lock.json npm-debug.log"
35
35
  },
36
36
  "devDependencies": {
37
- "@types/node": "^24.0.4"
37
+ "@types/node": "^25.0.3"
38
38
  },
39
39
  "dependencies": {
40
40
  "find-up": "5.0.0"
@@ -43,5 +43,5 @@
43
43
  "digest",
44
44
  "scripts"
45
45
  ],
46
- "gitHead": "878a82df5bc335b95a6292c645acdf5a64f8298c"
46
+ "gitHead": "a1d0041df4dd60b1d85f330e1ee9f3246330d06e"
47
47
  }
@@ -1,2 +0,0 @@
1
- declare const consume: (type: "bool" | "both" | "false" | "number" | "obj" | "string" | "true", setting: unknown) => any;
2
- export default consume;
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const getBool_1 = __importDefault(require("./getBool"));
7
- const consume = (type, setting) => {
8
- switch (type) {
9
- case 'bool': {
10
- return (0, getBool_1.default)(setting);
11
- }
12
- case 'both': {
13
- return (0, getBool_1.default)(setting, true);
14
- }
15
- case 'false': {
16
- return (0, getBool_1.default)(setting, false);
17
- }
18
- case 'number': {
19
- const number = Number(setting);
20
- return Number.isNaN(number) ?
21
- undefined :
22
- number;
23
- }
24
- case 'obj': {
25
- if (setting &&
26
- Object.prototype.toString.call(setting) === '[object String]') {
27
- return JSON.parse(setting.replace(/""(.*)""/gu, '"\\"$1\\""'));
28
- }
29
- else {
30
- return setting !== null && setting !== void 0 ? setting : {};
31
- }
32
- }
33
- case 'true': {
34
- return (0, getBool_1.default)(setting, true);
35
- }
36
- case 'string':
37
- default: {
38
- return setting;
39
- }
40
- }
41
- };
42
- exports.default = consume;
@@ -1,2 +0,0 @@
1
- declare const getBool: (environment: boolean | string | undefined, ignore?: boolean) => string | boolean | undefined;
2
- export default getBool;
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const getBool = (environment, ignore) => {
4
- if (environment === 'true' || (typeof environment === 'boolean' && environment === true)) {
5
- if (ignore === undefined) {
6
- return true;
7
- }
8
- else if (ignore) {
9
- return undefined;
10
- }
11
- else {
12
- return true;
13
- }
14
- }
15
- else if (environment === 'false' || (typeof environment === 'boolean')) {
16
- if (ignore === undefined) {
17
- return false;
18
- }
19
- else if (ignore) {
20
- return false;
21
- }
22
- else {
23
- return undefined;
24
- }
25
- }
26
- else if (environment === '') {
27
- return undefined;
28
- }
29
- else {
30
- return environment;
31
- }
32
- };
33
- exports.default = getBool;
@@ -1,3 +0,0 @@
1
- import { type completeDigest } from './settings';
2
- declare const config: completeDigest;
3
- export default config;
@@ -1,108 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- const package_1 = __importDefault(require("../package"));
40
- const production_1 = __importDefault(require("../production"));
41
- const consume_1 = __importDefault(require("./consume"));
42
- const resolvePath_1 = __importDefault(require("./resolvePath"));
43
- const settings_1 = __importStar(require("./settings"));
44
- const find_up_1 = __importDefault(require("find-up"));
45
- const node_path_1 = __importDefault(require("node:path"));
46
- const cwd = process.cwd();
47
- const { DIGEST_NAME = 'digest.config.json' } = process.env;
48
- const digestPath = find_up_1.default.sync(DIGEST_NAME);
49
- const digestConfig = digestPath ?
50
- require(digestPath) :
51
- {};
52
- const config = settings_1.keys.reduce((prev, key) => {
53
- var _a, _b, _c, _d, _e;
54
- const { defaults, env: envKey, packageName, resolve, type } = settings_1.default[key];
55
- const envSetting = process.env[envKey];
56
- const transformedEnvSetting = (0, consume_1.default)(type, envSetting);
57
- const configSetting = digestConfig[key];
58
- const transformedConfigSetting = (0, consume_1.default)(type, configSetting);
59
- const userSetting = (_a = transformedEnvSetting !== null && transformedEnvSetting !== void 0 ? transformedEnvSetting : transformedConfigSetting) !== null && _a !== void 0 ? _a : defaults;
60
- const verifiedSetting = userSetting &&
61
- packageName ?
62
- ((0, resolvePath_1.default)(packageName) ?
63
- userSetting :
64
- false) :
65
- userSetting;
66
- const resolveSetting = verifiedSetting &&
67
- resolve ?
68
- (0, resolvePath_1.default)(verifiedSetting, true) :
69
- verifiedSetting;
70
- switch (key) {
71
- case 'cache': {
72
- prev[key] = resolveSetting ?
73
- node_path_1.default.join(cwd, resolveSetting) :
74
- resolveSetting;
75
- break;
76
- }
77
- case 'reports': {
78
- prev[key] = resolveSetting === 'reports' ?
79
- node_path_1.default.join(cwd, 'reports') :
80
- resolveSetting;
81
- break;
82
- }
83
- case 'shortName': {
84
- prev[key] = (_e = (_b = transformedEnvSetting !== null && transformedEnvSetting !== void 0 ? transformedEnvSetting : transformedConfigSetting) !== null && _b !== void 0 ? _b : (_d = (_c = package_1.default === null || package_1.default === void 0 ? void 0 : package_1.default.name) === null || _c === void 0 ? void 0 : _c.replace('@', '')) === null || _d === void 0 ? void 0 : _d.replace('/', '-')) !== null && _e !== void 0 ? _e : 'nd';
85
- break;
86
- }
87
- default: {
88
- prev[key] = resolveSetting;
89
- }
90
- }
91
- return prev;
92
- }, {
93
- digestName: DIGEST_NAME
94
- });
95
- config.cache = config.cache ?
96
- node_path_1.default.join(config.cache, config.library ?
97
- 'library' :
98
- (production_1.default ?
99
- 'production' :
100
- 'development')) :
101
- config.cache;
102
- config.staticPath = config.staticPath === 'public' ?
103
- node_path_1.default.join(cwd, config.library ?
104
- 'lib' :
105
- 'public') :
106
- config.staticPath;
107
- config.context = node_path_1.default.join(process.cwd(), config.sourcePath);
108
- exports.default = config;
@@ -1,2 +0,0 @@
1
- declare const resolvePath: (givenPath: string, up?: boolean) => string | false;
2
- export default resolvePath;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const find_up_1 = __importDefault(require("find-up"));
7
- const resolvePath = (givenPath, up = false) => {
8
- var _a;
9
- try {
10
- return require.resolve(givenPath);
11
- }
12
- catch (_b) {
13
- if (up) {
14
- return (_a = find_up_1.default.sync(givenPath)) !== null && _a !== void 0 ? _a : false;
15
- }
16
- else {
17
- return false;
18
- }
19
- }
20
- };
21
- exports.default = resolvePath;
@@ -1,164 +0,0 @@
1
- declare const settings: {
2
- [key: string]: {
3
- defaults: boolean | number | string;
4
- env: string;
5
- ignore?: boolean;
6
- packageName: false | string;
7
- resolve: boolean;
8
- type: "bool" | "both" | "false" | "number" | "obj" | "string" | "true";
9
- };
10
- };
11
- declare const keys: Array<keyof completeDigest>;
12
- type completeDigest = {
13
- angular: boolean;
14
- appHost: string;
15
- appPort: number;
16
- babel: false | string;
17
- babelAngular: boolean;
18
- babelEmotion: boolean;
19
- babelFlow: boolean;
20
- babelGraphQL: boolean;
21
- babelPolyfills: string;
22
- babelPreset: boolean;
23
- babelReact: boolean;
24
- babelReactNative: boolean;
25
- babelTypeScript: boolean;
26
- baseHref: string;
27
- baseHrefHtml: false | string;
28
- cache: false | string;
29
- compression: boolean;
30
- context: string;
31
- cssModules: boolean;
32
- digestName: string;
33
- e2ePath: string;
34
- emotion: boolean;
35
- env: {
36
- [key: string]: number | string;
37
- };
38
- eslint: false | string;
39
- eslintAngular: boolean;
40
- eslintBabel: boolean;
41
- eslintEmotion: boolean;
42
- eslintFlow: boolean;
43
- eslintGraphQL: boolean;
44
- eslintJest: boolean;
45
- eslintReact: boolean;
46
- eslintReactNative: boolean;
47
- eslintTypeScript: boolean;
48
- favicon: false | string;
49
- flow: false | string;
50
- graphql: boolean;
51
- graphqlSchema: string;
52
- hashLimit: number;
53
- indexHtml: false | string;
54
- jest: boolean;
55
- jestBabel: boolean;
56
- jestEmotion: boolean;
57
- jestGraphQL: boolean;
58
- jestJUnit: boolean;
59
- jestReact: boolean;
60
- jestSetup: string;
61
- jestTypeScript: boolean;
62
- library: boolean;
63
- minimize: boolean;
64
- parallel: boolean;
65
- polyfills: false | string;
66
- postcss: string;
67
- postcssWhitelist: string;
68
- pwa: boolean;
69
- react: boolean;
70
- reactNative: boolean;
71
- reactNativeWeb: boolean;
72
- reports: false | string;
73
- seleniumChromeDriver: string;
74
- seleniumDriver: string;
75
- seleniumGeckoDriver: string;
76
- seleniumHeadless: boolean;
77
- seleniumHost: string;
78
- seleniumPort: number;
79
- seleniumStart: boolean;
80
- shortName: string;
81
- sourceMaps: boolean;
82
- sourcePath: string;
83
- staticPath: string;
84
- stylelint: false | string;
85
- stylelintIgnore: string;
86
- typescript: string;
87
- webpack: string;
88
- webpackAngular: boolean;
89
- webpackBabel: boolean;
90
- webpackDashboard: boolean;
91
- webpackESLint: boolean;
92
- webpackFlow: boolean;
93
- webpackGraphQL: boolean;
94
- webpackPostCSS: boolean;
95
- webpackReact: boolean;
96
- webpackReactNative: boolean;
97
- webpackStyleLint: boolean;
98
- webpackTypeScript: boolean;
99
- webpackWorkbox: boolean;
100
- };
101
- type digest = Omit<Partial<completeDigest>, 'context'> & {
102
- angular?: false;
103
- babel?: false | string;
104
- babelAngular?: false;
105
- babelEmotion?: false;
106
- babelFlow?: false;
107
- babelGraphQL?: false;
108
- babelPolyfills?: false;
109
- babelPreset?: false;
110
- babelReact?: false;
111
- babelReactNative?: false;
112
- babelTypeScript?: false;
113
- cache?: false | string;
114
- compression?: false;
115
- cssModules?: true;
116
- eslint?: false | string;
117
- eslintAngular?: false;
118
- eslintBabel?: false;
119
- eslintEmotion?: false;
120
- eslintFlow?: false;
121
- eslintGraphQL?: false;
122
- eslintJest?: false;
123
- eslintReact?: false;
124
- eslintReactNative?: false;
125
- eslintTypeScript?: false;
126
- favicon?: false | string;
127
- flow?: false | string;
128
- graphql?: false;
129
- jest?: false;
130
- jestBabel?: false;
131
- jestEmotion?: false;
132
- jestGraphQL?: false;
133
- jestJUnit?: false;
134
- jestReact?: false;
135
- jestTypeScript?: false;
136
- library?: true;
137
- minimize?: false;
138
- parallel?: false;
139
- polyfills?: false | string;
140
- postcss?: false | string;
141
- pwa?: true;
142
- react?: false;
143
- reactNative?: false;
144
- reactNativeWeb?: true;
145
- reports?: false | string;
146
- sourceMaps?: false;
147
- stylelint?: false | string;
148
- typescript?: false | string;
149
- webpackAngular?: false;
150
- webpackBabel?: false;
151
- webpackDashboard?: false;
152
- webpackESLint?: false;
153
- webpackFlow?: false;
154
- webpackGraphQL?: false;
155
- webpackPostCSS?: false;
156
- webpackReact?: false;
157
- webpackReactNative?: false;
158
- webpackStyleLint?: false;
159
- webpackTypeScript?: false;
160
- webpackWorkbox?: false;
161
- };
162
- export default settings;
163
- export { keys };
164
- export type { completeDigest, digest };
@@ -1,611 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.keys = void 0;
7
- const production_1 = __importDefault(require("../production"));
8
- const node_path_1 = __importDefault(require("node:path"));
9
- const settings = {
10
- angular: {
11
- defaults: true,
12
- env: 'DIGEST_ANGULAR',
13
- packageName: '@digest/angular',
14
- resolve: false,
15
- type: 'true'
16
- },
17
- appHost: {
18
- defaults: '127.0.0.1',
19
- env: 'APP_HOST',
20
- packageName: false,
21
- resolve: false,
22
- type: 'string'
23
- },
24
- appPort: {
25
- defaults: production_1.default ?
26
- 8080 :
27
- 8090,
28
- env: 'APP_PORT',
29
- packageName: false,
30
- resolve: false,
31
- type: 'number'
32
- },
33
- babel: {
34
- defaults: '@digest/babel/dist/babel.config.js',
35
- env: 'DIGEST_BABEL',
36
- packageName: '@digest/babel',
37
- resolve: true,
38
- type: 'both'
39
- },
40
- babelAngular: {
41
- defaults: true,
42
- env: 'DIGEST_BABEL_ANGULAR',
43
- packageName: '@digest/babel-angular',
44
- resolve: false,
45
- type: 'true'
46
- },
47
- babelEmotion: {
48
- defaults: true,
49
- env: 'DIGEST_BABEL_EMOTION',
50
- packageName: '@digest/babel-emotion',
51
- resolve: false,
52
- type: 'true'
53
- },
54
- babelFlow: {
55
- defaults: true,
56
- env: 'DIGEST_BABEL_FLOW',
57
- packageName: '@digest/babel-flow',
58
- resolve: false,
59
- type: 'true'
60
- },
61
- babelGraphQL: {
62
- defaults: true,
63
- env: 'DIGEST_BABEL_GRAPHQL',
64
- packageName: '@digest/babel-graphql',
65
- resolve: false,
66
- type: 'true'
67
- },
68
- babelPolyfills: {
69
- defaults: true,
70
- env: 'DIGEST_BABEL_POLYFILLS',
71
- packageName: '@digest/babel-polyfills',
72
- resolve: true,
73
- type: 'true'
74
- },
75
- babelPreset: {
76
- defaults: true,
77
- env: 'DIGEST_BABEL_PRESET',
78
- packageName: false,
79
- resolve: false,
80
- type: 'true'
81
- },
82
- babelReact: {
83
- defaults: true,
84
- env: 'DIGEST_BABEL_REACT',
85
- packageName: '@digest/babel-react',
86
- resolve: false,
87
- type: 'true'
88
- },
89
- babelReactNative: {
90
- defaults: true,
91
- env: 'DIGEST_BABEL_REACT_NATIVE',
92
- packageName: '@digest/babel-react-native',
93
- resolve: false,
94
- type: 'true'
95
- },
96
- babelTypeScript: {
97
- defaults: true,
98
- env: 'DIGEST_BABEL_TYPESCRIPT',
99
- packageName: '@digest/babel-typescript',
100
- resolve: false,
101
- type: 'true'
102
- },
103
- baseHref: {
104
- defaults: '/',
105
- env: 'DIGEST_BASE_HREF',
106
- packageName: false,
107
- resolve: false,
108
- type: 'string'
109
- },
110
- baseHrefHtml: {
111
- defaults: false,
112
- env: 'DIGEST_BASE_HREF_HTML',
113
- packageName: false,
114
- resolve: false,
115
- type: 'string'
116
- },
117
- cache: {
118
- defaults: node_path_1.default.join('node_modules', '.cache'),
119
- env: 'DIGEST_CACHE',
120
- ignore: true,
121
- packageName: false,
122
- resolve: false,
123
- type: 'both'
124
- },
125
- compression: {
126
- defaults: true,
127
- env: 'DIGEST_COMPRESSION',
128
- packageName: false,
129
- resolve: false,
130
- type: 'true'
131
- },
132
- cssModules: {
133
- defaults: false,
134
- env: 'DIGEST_CSS_MODULES',
135
- packageName: false,
136
- resolve: false,
137
- type: 'false'
138
- },
139
- digestName: {
140
- defaults: 'digest',
141
- env: 'DIGEST_NAME',
142
- packageName: false,
143
- resolve: true,
144
- type: 'string'
145
- },
146
- e2ePath: {
147
- defaults: '__e2e__',
148
- env: 'DIGEST_E2E',
149
- packageName: false,
150
- resolve: false,
151
- type: 'string'
152
- },
153
- emotion: {
154
- defaults: true,
155
- env: 'DIGEST_EMOTION',
156
- packageName: '@digest/emotion',
157
- resolve: false,
158
- type: 'true'
159
- },
160
- env: {
161
- defaults: true,
162
- env: 'DIGEST_ENV',
163
- packageName: false,
164
- resolve: false,
165
- type: 'obj'
166
- },
167
- eslint: {
168
- defaults: '@digest/eslint-config/src/.eslintrc.js',
169
- env: 'DIGEST_ESLINT_ANGULAR',
170
- ignore: true,
171
- packageName: '@digest/eslint-config',
172
- resolve: true,
173
- type: 'both'
174
- },
175
- eslintAngular: {
176
- defaults: true,
177
- env: 'DIGEST_ESLINT_ANGULAR',
178
- packageName: '@digest/eslint-config-angular',
179
- resolve: false,
180
- type: 'true'
181
- },
182
- eslintBabel: {
183
- defaults: true,
184
- env: 'DIGEST_ESLINT_BABEL',
185
- packageName: '@digest/eslint-config-babel',
186
- resolve: false,
187
- type: 'true'
188
- },
189
- eslintEmotion: {
190
- defaults: true,
191
- env: 'DIGEST_ESLINT_EMOTION',
192
- packageName: '@digest/eslint-config-emotion',
193
- resolve: false,
194
- type: 'true'
195
- },
196
- eslintFlow: {
197
- defaults: true,
198
- env: 'DIGEST_ESLINT_FLOW',
199
- packageName: '@digest/eslint-config-flow',
200
- resolve: false,
201
- type: 'true'
202
- },
203
- eslintGraphQL: {
204
- defaults: true,
205
- env: 'DIGEST_ESLINT_GRAPHQL',
206
- packageName: '@digest/eslint-config-graphql',
207
- resolve: false,
208
- type: 'true'
209
- },
210
- eslintJest: {
211
- defaults: true,
212
- env: 'DIGEST_ESLINT_JEST',
213
- packageName: '@digest/eslint-config-jest',
214
- resolve: false,
215
- type: 'true'
216
- },
217
- eslintReact: {
218
- defaults: true,
219
- env: 'DIGEST_ESLINT_REACT',
220
- packageName: '@digest/eslint-config-react',
221
- resolve: false,
222
- type: 'true'
223
- },
224
- eslintReactNative: {
225
- defaults: true,
226
- env: 'DIGEST_ESLINT_REACT_NATIVE',
227
- packageName: '@digest/eslint-config-react-native',
228
- resolve: false,
229
- type: 'true'
230
- },
231
- eslintTypeScript: {
232
- defaults: true,
233
- env: 'DIGEST_ESLINT_TYPESCRIPT',
234
- packageName: '@digest/eslint-config-typescript',
235
- resolve: false,
236
- type: 'true'
237
- },
238
- favicon: {
239
- defaults: '@digest/webpack/share/favicon.png',
240
- env: 'DIGEST_FAVICON',
241
- ignore: true,
242
- packageName: false,
243
- resolve: true,
244
- type: 'both'
245
- },
246
- flow: {
247
- defaults: true,
248
- env: 'DIGEST_FLOW',
249
- ignore: true,
250
- packageName: '@digest/flow',
251
- resolve: false,
252
- type: 'both'
253
- },
254
- graphql: {
255
- defaults: true,
256
- env: 'DIGEST_GRAPHQL',
257
- ignore: true,
258
- packageName: '@digest/graphql',
259
- resolve: false,
260
- type: 'both'
261
- },
262
- graphqlSchema: {
263
- defaults: 'schema.graphql',
264
- env: 'DIGEST_GRAPHQL_SCHEMA',
265
- packageName: false,
266
- resolve: true,
267
- type: 'string'
268
- },
269
- hashLimit: {
270
- defaults: 6,
271
- env: 'DIGEST_HASH_LIMIT',
272
- packageName: false,
273
- resolve: false,
274
- type: 'number'
275
- },
276
- indexHtml: {
277
- defaults: '@digest/webpack/share/index.htm',
278
- env: 'DIGEST_INDEX_HTML',
279
- packageName: false,
280
- resolve: true,
281
- type: 'string'
282
- },
283
- jest: {
284
- defaults: true,
285
- env: 'DIGEST_JEST',
286
- packageName: '@digest/jest',
287
- resolve: false,
288
- type: 'true'
289
- },
290
- jestBabel: {
291
- defaults: true,
292
- env: 'DIGEST_JEST_BABEL',
293
- packageName: '@digest/jest-babel',
294
- resolve: false,
295
- type: 'true'
296
- },
297
- jestEmotion: {
298
- defaults: true,
299
- env: 'DIGEST_JEST_EMOTION',
300
- packageName: '@digest/jest-emotion',
301
- resolve: false,
302
- type: 'true'
303
- },
304
- jestGraphQL: {
305
- defaults: true,
306
- env: 'DIGEST_JEST_GRAPHQL',
307
- packageName: '@digest/jest-graphql',
308
- resolve: false,
309
- type: 'true'
310
- },
311
- jestJUnit: {
312
- defaults: true,
313
- env: 'DIGEST_JEST_JUNIT',
314
- packageName: '@digest/jest-junit',
315
- resolve: false,
316
- type: 'true'
317
- },
318
- jestReact: {
319
- defaults: true,
320
- env: 'DIGEST_JEST_REACT',
321
- packageName: '@digest/jest-react',
322
- resolve: false,
323
- type: 'true'
324
- },
325
- jestSetup: {
326
- defaults: '@digest/jest/dist/jest.setup.js',
327
- env: 'DIGEST_JEST_SETUP',
328
- packageName: '@digest/jest-setup',
329
- resolve: false,
330
- type: 'string'
331
- },
332
- jestTypeScript: {
333
- defaults: true,
334
- env: 'DIGEST_JEST_TYPESCRIPT',
335
- packageName: '@digest/jest-typescript',
336
- resolve: false,
337
- type: 'true'
338
- },
339
- library: {
340
- defaults: false,
341
- env: 'DIGEST_LIBRARY',
342
- packageName: false,
343
- resolve: false,
344
- type: 'false'
345
- },
346
- minimize: {
347
- defaults: true,
348
- env: 'DIGEST_MINIMIZE',
349
- packageName: false,
350
- resolve: false,
351
- type: 'true'
352
- },
353
- parallel: {
354
- defaults: true,
355
- env: 'DIGEST_PARALLEL',
356
- packageName: false,
357
- resolve: false,
358
- type: 'true'
359
- },
360
- polyfills: {
361
- defaults: 'polyfills.js',
362
- env: 'DIGEST_POLYFILLS',
363
- ignore: true,
364
- packageName: false,
365
- resolve: true,
366
- type: 'both'
367
- },
368
- postcss: {
369
- defaults: '@digest/postcss/src/postcss.config.js',
370
- env: 'DIGEST_POSTCSS',
371
- ignore: true,
372
- packageName: '@digest/postcss',
373
- resolve: true,
374
- type: 'both'
375
- },
376
- postcssWhitelist: {
377
- defaults: false,
378
- env: 'DIGEST_POSTCSS_WHITELIST',
379
- packageName: false,
380
- resolve: true,
381
- type: 'string'
382
- },
383
- pwa: {
384
- defaults: true,
385
- env: 'DIGEST_PWA',
386
- packageName: false,
387
- resolve: false,
388
- type: 'bool'
389
- },
390
- react: {
391
- defaults: true,
392
- env: 'DIGEST_REACT',
393
- packageName: '@digest/react',
394
- resolve: false,
395
- type: 'true'
396
- },
397
- reactNative: {
398
- defaults: true,
399
- env: 'DIGEST_REACT_NATIVE',
400
- packageName: '@digest/react-native',
401
- resolve: false,
402
- type: 'true'
403
- },
404
- reactNativeWeb: {
405
- defaults: false,
406
- env: 'DIGEST_REACT_NATIVE_WEB',
407
- packageName: false,
408
- resolve: false,
409
- type: 'false'
410
- },
411
- reports: {
412
- defaults: 'reports',
413
- env: 'DIGEST_REPORTS',
414
- ignore: true,
415
- packageName: false,
416
- resolve: false,
417
- type: 'both'
418
- },
419
- seleniumChromeDriver: {
420
- defaults: '111.0.5563.64',
421
- env: 'SELENIUM_CHROME_DRIVER',
422
- packageName: false,
423
- resolve: false,
424
- type: 'string'
425
- },
426
- seleniumDriver: {
427
- defaults: '4.8.0',
428
- env: 'SELENIUM_DRIVER',
429
- packageName: false,
430
- resolve: false,
431
- type: 'string'
432
- },
433
- seleniumGeckoDriver: {
434
- defaults: '0.33.0',
435
- env: 'SELENIUM_GECKO_DRIVER',
436
- packageName: false,
437
- resolve: false,
438
- type: 'string'
439
- },
440
- seleniumHeadless: {
441
- defaults: false,
442
- env: 'SELENIUM_HEADLESS',
443
- packageName: false,
444
- resolve: false,
445
- type: 'bool'
446
- },
447
- seleniumHost: {
448
- defaults: '127.0.0.1',
449
- env: 'SELENIUM_HOST',
450
- packageName: false,
451
- resolve: false,
452
- type: 'string'
453
- },
454
- seleniumPort: {
455
- defaults: 4444,
456
- env: 'SELENIUM_PORT',
457
- packageName: false,
458
- resolve: false,
459
- type: 'number'
460
- },
461
- seleniumStart: {
462
- defaults: '',
463
- env: 'SELENIUM_START',
464
- packageName: false,
465
- resolve: false,
466
- type: 'string'
467
- },
468
- shortName: {
469
- defaults: 'digest',
470
- env: 'DIGEST_SHORT_NAME',
471
- packageName: false,
472
- resolve: false,
473
- type: 'string'
474
- },
475
- sourceMaps: {
476
- defaults: true,
477
- env: 'DIGEST_SOURCE_MAPS',
478
- packageName: false,
479
- resolve: false,
480
- type: 'true'
481
- },
482
- sourcePath: {
483
- defaults: 'src',
484
- env: 'DIGEST_SOURCE_PATH',
485
- packageName: false,
486
- resolve: false,
487
- type: 'string'
488
- },
489
- staticPath: {
490
- defaults: 'public',
491
- env: 'DIGEST_STATIC_PATH',
492
- packageName: false,
493
- resolve: false,
494
- type: 'string'
495
- },
496
- stylelint: {
497
- defaults: '@digest/stylelint-config/src/.stylelintrc.json',
498
- env: 'DIGEST_STYLELINT',
499
- packageName: '@digest/stylelint-config',
500
- resolve: true,
501
- type: 'both'
502
- },
503
- stylelintIgnore: {
504
- defaults: '@digest/stylelint-config/src/.stylelintignore',
505
- env: 'DIGEST_STYLELINT_IGNORE',
506
- packageName: false,
507
- resolve: true,
508
- type: 'string'
509
- },
510
- typescript: {
511
- defaults: 'tsconfig.json',
512
- env: 'DIGEST_TYPESCRIPT',
513
- packageName: '@digest/typescript',
514
- resolve: true,
515
- type: 'true'
516
- },
517
- webpack: {
518
- defaults: 'webpack.config.js',
519
- env: 'DIGEST_WEBPACK',
520
- packageName: '@digest/typescript',
521
- resolve: true,
522
- type: 'string'
523
- },
524
- webpackAngular: {
525
- defaults: true,
526
- env: 'DIGEST_WEBPACK_ANGULAR',
527
- packageName: '@digest/webpack-angular',
528
- resolve: false,
529
- type: 'true'
530
- },
531
- webpackBabel: {
532
- defaults: true,
533
- env: 'DIGEST_WEBPACK_BABEL',
534
- packageName: '@digest/webpack-babel',
535
- resolve: false,
536
- type: 'true'
537
- },
538
- webpackDashboard: {
539
- defaults: true,
540
- env: 'DIGEST_WEBPACK_DASHBOARD',
541
- packageName: '@digest/webpack-dashboard',
542
- resolve: false,
543
- type: 'true'
544
- },
545
- webpackESLint: {
546
- defaults: true,
547
- env: 'DIGEST_WEBPACK_ESLINT',
548
- packageName: '@digest/webpack-eslint',
549
- resolve: false,
550
- type: 'true'
551
- },
552
- webpackFlow: {
553
- defaults: true,
554
- env: 'DIGEST_WEBPACK_FLOW',
555
- packageName: '@digest/webpack-flow',
556
- resolve: false,
557
- type: 'true'
558
- },
559
- webpackGraphQL: {
560
- defaults: true,
561
- env: 'DIGEST_WEBPACK_GRAPHQL',
562
- packageName: '@digest/webpack-graphql',
563
- resolve: false,
564
- type: 'true'
565
- },
566
- webpackPostCSS: {
567
- defaults: true,
568
- env: 'DIGEST_WEBPACK_POSTCSS',
569
- packageName: '@digest/webpack-postcss',
570
- resolve: false,
571
- type: 'true'
572
- },
573
- webpackReact: {
574
- defaults: true,
575
- env: 'DIGEST_WEBPACK_REACT',
576
- packageName: '@digest/webpack-react',
577
- resolve: false,
578
- type: 'true'
579
- },
580
- webpackReactNative: {
581
- defaults: true,
582
- env: 'DIGEST_WEBPACK_REACT_NATIVE',
583
- packageName: '@digest/webpack-react-native',
584
- resolve: false,
585
- type: 'true'
586
- },
587
- webpackStyleLint: {
588
- defaults: true,
589
- env: 'DIGEST_WEBPACK_STYLELINT',
590
- packageName: '@digest/webpack-stylelint',
591
- resolve: false,
592
- type: 'true'
593
- },
594
- webpackTypeScript: {
595
- defaults: true,
596
- env: 'DIGEST_WEBPACK_TYPESCRIPT',
597
- packageName: '@digest/webpack-typescript',
598
- resolve: false,
599
- type: 'true'
600
- },
601
- webpackWorkbox: {
602
- defaults: true,
603
- env: 'DIGEST_WEBPACK_WORKBOX',
604
- packageName: '@digest/webpack-workbox',
605
- resolve: false,
606
- type: 'true'
607
- }
608
- };
609
- const keys = Object.keys(settings);
610
- exports.keys = keys;
611
- exports.default = settings;
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export { default as config } from './config';
2
- export { default as package } from './package';
3
- export { default as production } from './production';
package/dist/index.js DELETED
@@ -1,12 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.production = exports.package = exports.config = void 0;
7
- var config_1 = require("./config");
8
- Object.defineProperty(exports, "config", { enumerable: true, get: function () { return __importDefault(config_1).default; } });
9
- var package_1 = require("./package");
10
- Object.defineProperty(exports, "package", { enumerable: true, get: function () { return __importDefault(package_1).default; } });
11
- var production_1 = require("./production");
12
- Object.defineProperty(exports, "production", { enumerable: true, get: function () { return __importDefault(production_1).default; } });
@@ -1,2 +0,0 @@
1
- declare const project: any;
2
- export default project;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const find_up_1 = __importDefault(require("find-up"));
7
- const projectPath = find_up_1.default.sync('package.json');
8
- const project = projectPath ?
9
- require(projectPath) :
10
- {};
11
- exports.default = project;
@@ -1,2 +0,0 @@
1
- declare const production: boolean;
2
- export default production;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const { NODE_ENV } = process.env;
4
- const production = NODE_ENV !== 'development';
5
- exports.default = production;