@digest/scripts 3.4.4 → 3.5.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/packages.js DELETED
@@ -1,388 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- let angular;
4
- try {
5
- angular = require.resolve('@digest/angular');
6
- }
7
- catch (_a) {
8
- angular = false;
9
- }
10
- let babel;
11
- try {
12
- babel = require.resolve('@digest/babel');
13
- }
14
- catch (_b) {
15
- babel = false;
16
- }
17
- let babelAngular;
18
- try {
19
- babelAngular = require.resolve('@digest/babel-angular');
20
- }
21
- catch (_c) {
22
- babelAngular = false;
23
- }
24
- let babelEmotion;
25
- try {
26
- babelEmotion = require.resolve('@digest/babel-emotion');
27
- }
28
- catch (_d) {
29
- babelEmotion = false;
30
- }
31
- let babelFlow;
32
- try {
33
- babelFlow = require.resolve('@digest/babel-flow');
34
- }
35
- catch (_e) {
36
- babelFlow = false;
37
- }
38
- let babelGraphQL;
39
- try {
40
- babelGraphQL = require.resolve('@digest/babel-graphql');
41
- }
42
- catch (_f) {
43
- babelGraphQL = false;
44
- }
45
- let babelPolyfills;
46
- try {
47
- babelPolyfills = require.resolve('@digest/babel-polyfills');
48
- }
49
- catch (_g) {
50
- babelPolyfills = false;
51
- }
52
- let babelReact;
53
- try {
54
- babelReact = require.resolve('@digest/babel-react');
55
- }
56
- catch (_h) {
57
- babelReact = false;
58
- }
59
- let babelTypeScript;
60
- try {
61
- babelTypeScript = require.resolve('@digest/babel-typescript');
62
- }
63
- catch (_j) {
64
- babelTypeScript = false;
65
- }
66
- let emotion;
67
- try {
68
- emotion = require.resolve('@digest/emotion');
69
- }
70
- catch (_k) {
71
- emotion = false;
72
- }
73
- let enzyme;
74
- try {
75
- enzyme = Boolean(require.resolve('@digest/enzyme'));
76
- }
77
- catch (_l) {
78
- enzyme = false;
79
- }
80
- let eslint;
81
- try {
82
- eslint = Boolean(require.resolve('@digest/eslint-config'));
83
- }
84
- catch (_m) {
85
- eslint = false;
86
- }
87
- let eslintAngular;
88
- try {
89
- eslintAngular = Boolean(require.resolve('@digest/eslint-config-angular'));
90
- }
91
- catch (_o) {
92
- eslintAngular = false;
93
- }
94
- let eslintBabel;
95
- try {
96
- eslintBabel = Boolean(require.resolve('@digest/eslint-config-babel'));
97
- }
98
- catch (_p) {
99
- eslintBabel = false;
100
- }
101
- let eslintEmotion;
102
- try {
103
- eslintEmotion = Boolean(require.resolve('@digest/eslint-config-emotion'));
104
- }
105
- catch (_q) {
106
- eslintEmotion = false;
107
- }
108
- let eslintFlow;
109
- try {
110
- eslintFlow = Boolean(require.resolve('@digest/eslint-config-flow'));
111
- }
112
- catch (_r) {
113
- eslintFlow = false;
114
- }
115
- let eslintGraphQL;
116
- try {
117
- eslintGraphQL = Boolean(require.resolve('@digest/eslint-config-graphql'));
118
- }
119
- catch (_s) {
120
- eslintGraphQL = false;
121
- }
122
- let eslintJest;
123
- try {
124
- eslintJest = Boolean(require.resolve('@digest/eslint-config-jest'));
125
- }
126
- catch (_t) {
127
- eslintJest = false;
128
- }
129
- let eslintReact;
130
- try {
131
- eslintReact = Boolean(require.resolve('@digest/eslint-config-react'));
132
- }
133
- catch (_u) {
134
- eslintReact = false;
135
- }
136
- let eslintTypeScript;
137
- try {
138
- eslintTypeScript = Boolean(require.resolve('@digest/eslint-config-typescript'));
139
- }
140
- catch (_v) {
141
- eslintTypeScript = false;
142
- }
143
- let flow;
144
- try {
145
- flow = Boolean(require.resolve('@digest/flow'));
146
- }
147
- catch (_w) {
148
- flow = false;
149
- }
150
- let graphql;
151
- try {
152
- graphql = Boolean(require.resolve('@digest/graphql'));
153
- }
154
- catch (_x) {
155
- graphql = false;
156
- }
157
- let jestDigest;
158
- try {
159
- jestDigest = Boolean(require.resolve('@digest/jest'));
160
- }
161
- catch (_y) {
162
- jestDigest = false;
163
- }
164
- let jestBabel;
165
- try {
166
- jestBabel = Boolean(require.resolve('@digest/jest-babel'));
167
- }
168
- catch (_z) {
169
- jestBabel = false;
170
- }
171
- let jestEmotion;
172
- try {
173
- jestEmotion = Boolean(require.resolve('@digest/jest-emotion'));
174
- }
175
- catch (_0) {
176
- jestEmotion = false;
177
- }
178
- let jestEnzyme;
179
- try {
180
- jestEnzyme = Boolean(require.resolve('@digest/jest-enzyme'));
181
- }
182
- catch (_1) {
183
- jestEnzyme = false;
184
- }
185
- let jestGraphQL;
186
- try {
187
- jestGraphQL = Boolean(require.resolve('@digest/jest-graphql'));
188
- }
189
- catch (_2) {
190
- jestGraphQL = false;
191
- }
192
- let jestJUnit;
193
- try {
194
- jestJUnit = Boolean(require.resolve('@digest/jest-junit'));
195
- }
196
- catch (_3) {
197
- jestJUnit = false;
198
- }
199
- let jestReact;
200
- try {
201
- jestReact = Boolean(require.resolve('@digest/jest-react'));
202
- }
203
- catch (_4) {
204
- jestReact = false;
205
- }
206
- let jestTypeScript;
207
- try {
208
- jestTypeScript = Boolean(require.resolve('@digest/jest-typescript'));
209
- }
210
- catch (_5) {
211
- jestTypeScript = false;
212
- }
213
- let postcss;
214
- try {
215
- postcss = Boolean(require.resolve('@digest/postcss'));
216
- }
217
- catch (_6) {
218
- postcss = false;
219
- }
220
- let pwa;
221
- try {
222
- pwa = Boolean(require.resolve('@digest/webpack-workbox'));
223
- }
224
- catch (_7) {
225
- pwa = false;
226
- }
227
- let react;
228
- try {
229
- react = Boolean(require.resolve('@digest/react'));
230
- }
231
- catch (_8) {
232
- react = false;
233
- }
234
- let scss;
235
- try {
236
- scss = Boolean(require.resolve('@digest/scss'));
237
- }
238
- catch (_9) {
239
- scss = false;
240
- }
241
- let stylelint;
242
- try {
243
- stylelint = Boolean(require.resolve('@digest/stylelint-config'));
244
- }
245
- catch (_10) {
246
- stylelint = false;
247
- }
248
- let typescript;
249
- try {
250
- typescript = Boolean(require.resolve('@digest/typescript'));
251
- }
252
- catch (_11) {
253
- typescript = false;
254
- }
255
- let webpackAngular;
256
- try {
257
- webpackAngular = Boolean(require.resolve('@digest/webpack-angular'));
258
- }
259
- catch (_12) {
260
- webpackAngular = false;
261
- }
262
- let webpackBabel;
263
- try {
264
- webpackBabel = Boolean(require.resolve('@digest/webpack-babel'));
265
- }
266
- catch (_13) {
267
- webpackBabel = false;
268
- }
269
- let webpackDashboard;
270
- try {
271
- webpackDashboard = Boolean(require.resolve('@digest/webpack-dashboard'));
272
- }
273
- catch (_14) {
274
- webpackDashboard = false;
275
- }
276
- let webpackESLint;
277
- try {
278
- webpackESLint = Boolean(require.resolve('@digest/webpack-eslint'));
279
- }
280
- catch (_15) {
281
- webpackESLint = false;
282
- }
283
- let webpackFlow;
284
- try {
285
- webpackFlow = Boolean(require.resolve('@digest/webpack-flow'));
286
- }
287
- catch (_16) {
288
- webpackFlow = false;
289
- }
290
- let webpackGraphQL;
291
- try {
292
- webpackGraphQL = Boolean(require.resolve('@digest/webpack-graphql'));
293
- }
294
- catch (_17) {
295
- webpackGraphQL = false;
296
- }
297
- let webpackPostCSS;
298
- try {
299
- webpackPostCSS = Boolean(require.resolve('@digest/webpack-postcss'));
300
- }
301
- catch (_18) {
302
- webpackPostCSS = false;
303
- }
304
- let webpackReact;
305
- try {
306
- webpackReact = Boolean(require.resolve('@digest/webpack-react'));
307
- }
308
- catch (_19) {
309
- webpackReact = false;
310
- }
311
- let webpackSCSS;
312
- try {
313
- webpackSCSS = Boolean(require.resolve('@digest/webpack-scss'));
314
- }
315
- catch (_20) {
316
- webpackSCSS = false;
317
- }
318
- let webpackStyleLint;
319
- try {
320
- webpackStyleLint = Boolean(require.resolve('@digest/webpack-stylelint'));
321
- }
322
- catch (_21) {
323
- webpackStyleLint = false;
324
- }
325
- let webpackTypeScript;
326
- try {
327
- webpackTypeScript = Boolean(require.resolve('@digest/webpack-typescript'));
328
- }
329
- catch (_22) {
330
- webpackTypeScript = false;
331
- }
332
- let webpackWorkbox;
333
- try {
334
- webpackWorkbox = Boolean(require.resolve('@digest/webpack-workbox'));
335
- }
336
- catch (_23) {
337
- webpackWorkbox = false;
338
- }
339
- exports.default = {
340
- angular,
341
- babel,
342
- babelAngular,
343
- babelEmotion,
344
- babelFlow,
345
- babelGraphQL,
346
- babelPolyfills,
347
- babelReact,
348
- babelTypeScript,
349
- emotion,
350
- enzyme,
351
- eslint,
352
- eslintAngular,
353
- eslintBabel,
354
- eslintEmotion,
355
- eslintFlow,
356
- eslintGraphQL,
357
- eslintJest,
358
- eslintReact,
359
- eslintTypeScript,
360
- flow,
361
- graphql,
362
- jestBabel,
363
- jestDigest,
364
- jestEmotion,
365
- jestEnzyme,
366
- jestGraphQL,
367
- jestJUnit,
368
- jestReact,
369
- jestTypeScript,
370
- postcss,
371
- pwa,
372
- react,
373
- scss,
374
- stylelint,
375
- typescript,
376
- webpackAngular,
377
- webpackBabel,
378
- webpackDashboard,
379
- webpackESLint,
380
- webpackFlow,
381
- webpackGraphQL,
382
- webpackPostCSS,
383
- webpackReact,
384
- webpackSCSS,
385
- webpackStyleLint,
386
- webpackTypeScript,
387
- webpackWorkbox
388
- };
package/dist/paths.d.ts DELETED
@@ -1,20 +0,0 @@
1
- declare const _default: {
2
- babel: string | false | null;
3
- config: string | null;
4
- context: string;
5
- e2e: any;
6
- eslint: string | false | null;
7
- favicon: string;
8
- graphqlSchema: string | null;
9
- index: string | null;
10
- jestEnvSetup: string | null;
11
- jestSetup: string | null;
12
- polyfills: string | null;
13
- postcss: string | false | null;
14
- reportPath: string;
15
- srcPath: any;
16
- staticPath: string;
17
- stylelint: string | false | null;
18
- typescript: string | false | null;
19
- };
20
- export default _default;
package/dist/paths.js DELETED
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12;
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- const path_1 = __importDefault(require("path"));
8
- const packages_1 = __importDefault(require("./packages"));
9
- const resolve_1 = __importDefault(require("./resolve"));
10
- const vars_1 = require("./vars");
11
- exports.default = {
12
- babel: packages_1.default.babel && (0, resolve_1.default)('@digest/babel/dist/babel.config.js', (_b = (_a = process.env.BABEL) !== null && _a !== void 0 ? _a : vars_1.digest.babel) !== null && _b !== void 0 ? _b : '.babelrc', (_c = process.env.BABEL) !== null && _c !== void 0 ? _c : vars_1.digest.babel),
13
- config: (0, resolve_1.default)('webpack.config.js', (_d = process.env.CONFIG) !== null && _d !== void 0 ? _d : vars_1.digest.config, (_e = process.env.CONFIG) !== null && _e !== void 0 ? _e : vars_1.digest.config),
14
- context: path_1.default.join(process.cwd(), vars_1.sourcePath !== null && vars_1.sourcePath !== void 0 ? vars_1.sourcePath : vars_1.digest.srcPath),
15
- e2e: (_g = (_f = process.env.E2E_PATH) !== null && _f !== void 0 ? _f : vars_1.digest.e2ePath) !== null && _g !== void 0 ? _g : '__e2e__',
16
- eslint: packages_1.default.eslint && (0, resolve_1.default)('@digest/eslint-config/src/.eslintrc.js', (_j = (_h = process.env.ESLINT) !== null && _h !== void 0 ? _h : vars_1.digest.eslint) !== null && _j !== void 0 ? _j : '.eslintrc', (_k = process.env.ESLINT) !== null && _k !== void 0 ? _k : vars_1.digest.eslint),
17
- favicon: (0, resolve_1.default)('@digest/webpack/share/favicon.png', (_l = process.env.FAVICON) !== null && _l !== void 0 ? _l : vars_1.digest.favicon, (_m = process.env.FAVICON) !== null && _m !== void 0 ? _m : vars_1.digest.favicon),
18
- graphqlSchema: (0, resolve_1.default)('schema.graphql', (_o = process.env.GRAPHQL_SCHEMA) !== null && _o !== void 0 ? _o : vars_1.digest.graphqlSchema, (_p = process.env.GRAPHQL_SCHEMA) !== null && _p !== void 0 ? _p : vars_1.digest.graphqlSchema),
19
- index: (0, resolve_1.default)('@digest/webpack/share/index.htm', (_r = (_q = process.env.INDEX) !== null && _q !== void 0 ? _q : vars_1.digest.index) !== null && _r !== void 0 ? _r : path_1.default.join(vars_1.sourcePath, 'index.htm'), (_s = process.env.INDEX) !== null && _s !== void 0 ? _s : vars_1.digest.index),
20
- jestEnvSetup: (0, resolve_1.default)('@digest/jest/dist/jest.env.setup.js', (_u = (_t = process.env.JEST_SETUP) !== null && _t !== void 0 ? _t : vars_1.digest.testConfig) !== null && _u !== void 0 ? _u : 'jest.env.setup.js', (_v = process.env.JEST_SETUP) !== null && _v !== void 0 ? _v : vars_1.digest.testConfig),
21
- jestSetup: (0, resolve_1.default)('@digest/jest/dist/jest.setup.js', (_x = (_w = process.env.JEST_SETUP) !== null && _w !== void 0 ? _w : vars_1.digest.testConfig) !== null && _x !== void 0 ? _x : 'jest.setup.js', (_y = process.env.JEST_SETUP) !== null && _y !== void 0 ? _y : vars_1.digest.testConfig),
22
- polyfills: (0, resolve_1.default)('polyfills.js', (_z = process.env.POLYFILLS) !== null && _z !== void 0 ? _z : vars_1.digest.polyfills, (_0 = process.env.POLYFILLS) !== null && _0 !== void 0 ? _0 : vars_1.digest.polyfills),
23
- postcss: packages_1.default.postcss && (0, resolve_1.default)('@digest/postcss/src/postcss.config.js', (_2 = (_1 = process.env.POSTCSS) !== null && _1 !== void 0 ? _1 : vars_1.digest.postcss) !== null && _2 !== void 0 ? _2 : 'postcss.config.js', (_3 = process.env.POSTCSS) !== null && _3 !== void 0 ? _3 : vars_1.digest.postcss),
24
- reportPath: ((_4 = process.env.REPORT_PATH) !== null && _4 !== void 0 ? _4 : vars_1.digest.reportPath) ?
25
- path_1.default.join(process.cwd(), (_5 = process.env.REPORT_PATH) !== null && _5 !== void 0 ? _5 : vars_1.digest.reportPath) :
26
- path_1.default.join(process.cwd(), 'reports'),
27
- srcPath: vars_1.sourcePath,
28
- staticPath: ((_6 = process.env.STATIC_PATH) !== null && _6 !== void 0 ? _6 : vars_1.digest.staticPath) ?
29
- path_1.default.join(process.cwd(), (_7 = process.env.STATIC_PATH) !== null && _7 !== void 0 ? _7 : vars_1.digest.staticPath, vars_1.library ?
30
- '' :
31
- 'bundle') :
32
- path_1.default.join(process.cwd(), vars_1.library ?
33
- 'lib' :
34
- 'public', vars_1.library ?
35
- '' :
36
- 'bundle'),
37
- stylelint: packages_1.default.stylelint && (0, resolve_1.default)('@digest/stylelint-config/src/.stylelintrc.json', (_9 = (_8 = process.env.STYLELINT) !== null && _8 !== void 0 ? _8 : vars_1.digest.stylelint) !== null && _9 !== void 0 ? _9 : '.stylelintrc', (_10 = process.env.STYLELINT) !== null && _10 !== void 0 ? _10 : vars_1.digest.stylelint),
38
- typescript: packages_1.default.typescript && (0, resolve_1.default)('tsconfig.json', (_11 = process.env.TYPESCRIPT) !== null && _11 !== void 0 ? _11 : vars_1.digest.typescript, (_12 = process.env.TYPESCRIPT) !== null && _12 !== void 0 ? _12 : vars_1.digest.typescript)
39
- };
package/dist/resolve.d.ts DELETED
@@ -1 +0,0 @@
1
- export default function resolve(name: string, full?: string | false | null, throwError?: boolean): string | null;
package/dist/resolve.js DELETED
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- var _a;
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- const fs_1 = __importDefault(require("fs"));
8
- const path_1 = __importDefault(require("path"));
9
- const file_exists_1 = __importDefault(require("file-exists"));
10
- const SRC_PATH = (_a = process.env.SRC_PATH) !== null && _a !== void 0 ? _a : '.';
11
- function resolve(name, full, throwError = false) {
12
- if (full) {
13
- if (file_exists_1.default.sync(path_1.default.join(process.cwd(), full))) {
14
- return path_1.default.resolve(path_1.default.join(process.cwd(), full));
15
- }
16
- if (file_exists_1.default.sync(path_1.default.join(full))) {
17
- return path_1.default.resolve(path_1.default.join(full));
18
- }
19
- if (throwError) {
20
- throw new Error(`Unable to resolve ${path_1.default.join(process.cwd(), full)}`);
21
- }
22
- }
23
- if (file_exists_1.default.sync(path_1.default.join(process.cwd(), SRC_PATH, name))) {
24
- return path_1.default.resolve(path_1.default.join(process.cwd(), SRC_PATH, name));
25
- }
26
- if (file_exists_1.default.sync(path_1.default.join(process.cwd(), name))) {
27
- return path_1.default.resolve(path_1.default.join(process.cwd(), name));
28
- }
29
- if (fs_1.default.existsSync(path_1.default.join(process.cwd(), 'node_modules', name))) {
30
- return path_1.default.join(process.cwd(), 'node_modules', name);
31
- }
32
- try {
33
- return require.resolve(name);
34
- }
35
- catch (_a) {
36
- return null;
37
- }
38
- }
39
- exports.default = resolve;
@@ -1,26 +0,0 @@
1
- import resolve from './resolve';
2
- declare const _default: {
3
- appHost: any;
4
- baseHref: any;
5
- cache: string;
6
- env: any;
7
- fallbackDenyList: any;
8
- HASH_LIMIT: number;
9
- headless: boolean;
10
- host: any;
11
- ignore: RegExp;
12
- library: boolean;
13
- port: number;
14
- postcssWhitelist: any;
15
- production: boolean;
16
- project: any;
17
- resolve: typeof resolve;
18
- seleniumChromeDriver: any;
19
- seleniumDriver: any;
20
- seleniumGeckoDriver: any;
21
- seleniumHost: any;
22
- seleniumPort: any;
23
- seleniumStart: boolean;
24
- shortName: any;
25
- };
26
- export default _default;
package/dist/settings.js DELETED
@@ -1,43 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- const path_1 = __importDefault(require("path"));
8
- const resolve_1 = __importDefault(require("./resolve"));
9
- const vars_1 = require("./vars");
10
- exports.default = {
11
- appHost: (_b = (_a = process.env.APP_HOST) !== null && _a !== void 0 ? _a : vars_1.digest.appHost) !== null && _b !== void 0 ? _b : vars_1.host,
12
- baseHref: (_d = (_c = process.env.BASE_HREF) !== null && _c !== void 0 ? _c : vars_1.digest.baseHref) !== null && _d !== void 0 ? _d : '/',
13
- cache: path_1.default.join((_f = (_e = process.env.CACHE) !== null && _e !== void 0 ? _e : vars_1.digest.cache) !== null && _f !== void 0 ? _f : path_1.default.join(process.cwd(), 'node_modules', '.cache'), vars_1.library ?
14
- 'library' :
15
- (vars_1.production ?
16
- 'production' :
17
- 'development')),
18
- env: Object.assign(Object.assign({}, (process.env.ENV ?
19
- JSON.parse(process.env.ENV.replace(/""(.*)""/ug, '"\\"$1\\""')) :
20
- {})), vars_1.digest.env),
21
- fallbackDenyList: (_g = process.env.FALLBACK_DENY_LIST) !== null && _g !== void 0 ? _g : vars_1.digest.fallbackDenyList,
22
- HASH_LIMIT: 6,
23
- headless: !((_k = (_j = (_h = process.env.HEADLESS === false) !== null && _h !== void 0 ? _h : process.env.HEADLESS === 'false') !== null && _j !== void 0 ? _j : vars_1.digest.headless === false) !== null && _k !== void 0 ? _k : false),
24
- host: vars_1.host,
25
- ignore: /(node_modules|lib|dist)[\\/\\\\]/u,
26
- library: vars_1.library,
27
- port: Number(process.env.PORT) ?
28
- Number(process.env.PORT) :
29
- (vars_1.production ?
30
- 8080 :
31
- 8090),
32
- postcssWhitelist: (_m = (_l = process.env.POSTCSS_WHITELIST) !== null && _l !== void 0 ? _l : vars_1.digest.postcssWhitelist) !== null && _m !== void 0 ? _m : 'react-toolbox',
33
- production: vars_1.production,
34
- project: vars_1.project,
35
- resolve: resolve_1.default,
36
- seleniumChromeDriver: (_p = (_o = process.env.SELENIUM_CHROME_DRIVER) !== null && _o !== void 0 ? _o : vars_1.digest.seleniumChromeDriver) !== null && _p !== void 0 ? _p : '100.0.4896.60',
37
- seleniumDriver: (_r = (_q = process.env.SELENIUM_DRIVER) !== null && _q !== void 0 ? _q : vars_1.digest.seleniumDriver) !== null && _r !== void 0 ? _r : '3.14.0',
38
- seleniumGeckoDriver: (_t = (_s = process.env.SELENIUM_GECKO_DRIVER) !== null && _s !== void 0 ? _s : vars_1.digest.seleniumGeckoDriver) !== null && _t !== void 0 ? _t : '0.31.0',
39
- seleniumHost: (_v = (_u = process.env.SELENIUM_HOST) !== null && _u !== void 0 ? _u : vars_1.digest.seleniumHost) !== null && _v !== void 0 ? _v : vars_1.host,
40
- seleniumPort: (_x = (_w = process.env.SELENIUM_PORT) !== null && _w !== void 0 ? _w : vars_1.digest.seleniumPort) !== null && _x !== void 0 ? _x : '4444',
41
- seleniumStart: !((_0 = (_z = (_y = process.env.SELENIUM_START === false) !== null && _y !== void 0 ? _y : process.env.SELENIUM_START === 'false') !== null && _z !== void 0 ? _z : vars_1.digest.seleniumStart === false) !== null && _0 !== void 0 ? _0 : false),
42
- shortName: (_3 = (_2 = (_1 = process.env.SHORT_NAME) !== null && _1 !== void 0 ? _1 : vars_1.digest.shortName) !== null && _2 !== void 0 ? _2 : vars_1.project.name.replace('@', '').replace('/', '-')) !== null && _3 !== void 0 ? _3 : 'wd'
43
- };
package/dist/vars.d.ts DELETED
@@ -1,8 +0,0 @@
1
- declare const digestPath: string | null;
2
- declare const digest: any;
3
- declare const host: any;
4
- declare const library: boolean;
5
- declare const project: any;
6
- declare const production: boolean;
7
- declare const sourcePath: any;
8
- export { digest, digestPath, host, library, project, production, sourcePath };
package/dist/vars.js DELETED
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- var _a, _b, _c, _d, _e;
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.sourcePath = exports.production = exports.project = exports.library = exports.host = exports.digestPath = exports.digest = void 0;
8
- const resolve_1 = __importDefault(require("./resolve"));
9
- const digestPath = (_a = (0, resolve_1.default)('digest.config.json', process.env.DIGEST, !!process.env.DIGEST)) !== null && _a !== void 0 ? _a : (0, resolve_1.default)('digest.config.js', process.env.DIGEST, !!process.env.DIGEST);
10
- exports.digestPath = digestPath;
11
- const digest = digestPath ? Object.assign({ platforms: {} }, require(digestPath)) :
12
- {
13
- platforms: {}
14
- };
15
- exports.digest = digest;
16
- const host = (_c = (_b = process.env.HOST) !== null && _b !== void 0 ? _b : digest.host) !== null && _c !== void 0 ? _c : '127.0.0.1';
17
- exports.host = host;
18
- const library = process.env.LIBRARY === true ||
19
- process.env.LIBRARY === 'true' ||
20
- digest.library === true;
21
- exports.library = library;
22
- const project = require((0, resolve_1.default)('package.json'));
23
- exports.project = project;
24
- const production = process.env.NODE_ENV !== 'development';
25
- exports.production = production;
26
- const sourcePath = (_e = (_d = process.env.SRC_PATH) !== null && _d !== void 0 ? _d : digest.srcPath) !== null && _e !== void 0 ? _e : 'src';
27
- exports.sourcePath = sourcePath;