@procore/core-scripts 10.3.0-rc.26 → 11.0.0-rc.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/README.md +1 -2
- package/dist/BaseCommand.js +1 -1
- package/dist/BaseCommand.js.map +1 -1
- package/dist/Generator.js +4 -4
- package/dist/Generator.js.map +1 -1
- package/dist/Workspace.js +1 -1
- package/dist/Workspace.js.map +1 -1
- package/dist/babel/config.js +2 -2
- package/dist/babel/config.js.map +1 -1
- package/dist/commands/app/build.js +8 -8
- package/dist/commands/app/build.js.map +1 -1
- package/dist/commands/app/clean.js +1 -1
- package/dist/commands/app/clean.js.map +1 -1
- package/dist/commands/app/gen.js +5 -5
- package/dist/commands/app/gen.js.map +1 -1
- package/dist/commands/app/start.js +6 -6
- package/dist/commands/app/start.js.map +1 -1
- package/dist/commands/lib/build.js +2 -2
- package/dist/commands/lib/build.js.map +1 -1
- package/dist/commands/lib/clean.js +1 -1
- package/dist/commands/lib/clean.js.map +1 -1
- package/dist/commands/lib/start.js +2 -2
- package/dist/commands/lib/start.js.map +1 -1
- package/dist/commands/lint/eslint.js +1 -4
- package/dist/commands/lint/eslint.js.map +1 -1
- package/dist/commands/lint/stylelint.js +1 -1
- package/dist/commands/lint/stylelint.js.map +1 -1
- package/dist/commands/rm.js +2 -2
- package/dist/commands/rm.js.map +1 -1
- package/dist/commands/test.js +2 -2
- package/dist/commands/test.js.map +1 -1
- package/dist/jest/transforms/reactSvg.js +1 -1
- package/dist/jest/transforms/reactSvg.js.map +1 -1
- package/dist/paths.js +2 -2
- package/dist/paths.js.map +1 -1
- package/dist/webpack/app/devServerConfig.js +4 -4
- package/dist/webpack/app/devServerConfig.js.map +1 -1
- package/dist/webpack/app/index.js +2 -2
- package/dist/webpack/app/index.js.map +1 -1
- package/dist/webpack/app/pluginDecorators/moduleFederationDecorator.js +1 -6
- package/dist/webpack/app/pluginDecorators/moduleFederationDecorator.js.map +1 -1
- package/dist/webpack/app/setupWebpack.js +13 -27
- package/dist/webpack/app/setupWebpack.js.map +1 -1
- package/dist/webpack/library/index.js +1 -1
- package/dist/webpack/library/index.js.map +1 -1
- package/dist/webpack/library/index.test.js +11 -11
- package/dist/webpack/library/index.test.js.map +1 -1
- package/dist/webpack/library/setupWebpack.js +2 -2
- package/dist/webpack/library/setupWebpack.js.map +1 -1
- package/docs/commands/app.md +4 -4
- package/docs/commands/info.md +1 -1
- package/docs/commands/lib.md +3 -3
- package/docs/commands/lint.md +2 -2
- package/docs/commands/rm.md +1 -1
- package/docs/commands/test.md +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +42 -48
- package/templates/app/gen/README.md.ejs +0 -1
- package/types/app.d.ts +3 -3
- package/CHANGELOG.md +0 -843
- package/configs/tsconfig.e2e.json +0 -7
- package/dist/commands/e2e/gen.js +0 -105
- package/dist/commands/e2e/gen.js.map +0 -1
- package/dist/commands/e2e/start.js +0 -77
- package/dist/commands/e2e/start.js.map +0 -1
- package/dist/cypress/loggerSupport.js +0 -6
- package/dist/cypress/loggerSupport.js.map +0 -1
- package/dist/cypress/plugins.js +0 -20
- package/dist/cypress/plugins.js.map +0 -1
- package/dist/cypress/preprocessor.js +0 -32
- package/dist/cypress/preprocessor.js.map +0 -1
- package/docs/commands/e2e.md +0 -35
- package/templates/e2e/gen/create.e2e.ejs +0 -0
- package/templates/e2e/gen/gitignore.ejs +0 -4
- package/templates/e2e/gen/globals.d.ts.ejs +0 -10
- package/templates/e2e/gen/supportIndex.ejs +0 -0
- package/templates/e2e/gen/tsconfig.json.ejs +0 -4
- package/types/e2e.d.ts +0 -2
package/dist/commands/e2e/gen.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
5
|
-
const enquirer_1 = require("enquirer");
|
|
6
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
7
|
-
const BaseCommand_1 = require("../../BaseCommand");
|
|
8
|
-
const Generator_1 = require("../../Generator");
|
|
9
|
-
class End2EndGenCommand extends BaseCommand_1.BaseCommand {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.templatePath = path_1.default.resolve(__dirname, '..', '..', '..', 'templates', 'e2e', 'gen');
|
|
13
|
-
}
|
|
14
|
-
async run() {
|
|
15
|
-
const fileExt = await this.askForFileExt();
|
|
16
|
-
this.generator = new Generator_1.Generator({
|
|
17
|
-
env: this.env,
|
|
18
|
-
workspace: this.workspace,
|
|
19
|
-
templatePath: this.templatePath,
|
|
20
|
-
destPath: this.workspace.resolve('e2e'),
|
|
21
|
-
});
|
|
22
|
-
await this.generate(fileExt);
|
|
23
|
-
}
|
|
24
|
-
printFailedGeneration(error) {
|
|
25
|
-
this.newline();
|
|
26
|
-
this.log(chalk_1.default.red(error.message));
|
|
27
|
-
this.newline();
|
|
28
|
-
this.log(chalk_1.default.red([
|
|
29
|
-
'Project creation failed. Use the following command if you would ',
|
|
30
|
-
'like to remove failed generation:',
|
|
31
|
-
].join('')));
|
|
32
|
-
this.newline();
|
|
33
|
-
this.log(chalk_1.default.red(` $ cores-scripts rm ${this.generator.destPath}`));
|
|
34
|
-
this.newline();
|
|
35
|
-
this.exit(1);
|
|
36
|
-
}
|
|
37
|
-
async askForFileExt() {
|
|
38
|
-
const response = await enquirer_1.prompt({
|
|
39
|
-
type: 'select',
|
|
40
|
-
name: 'fileExt',
|
|
41
|
-
message: 'Which initial language would you like to use?',
|
|
42
|
-
choices: [
|
|
43
|
-
{ name: 'ts', message: 'TypeScript' },
|
|
44
|
-
{ name: 'js', message: 'JavaScript' },
|
|
45
|
-
],
|
|
46
|
-
});
|
|
47
|
-
return response.fileExt;
|
|
48
|
-
}
|
|
49
|
-
async generate(fileExt) {
|
|
50
|
-
try {
|
|
51
|
-
this.newline();
|
|
52
|
-
await this.createFolders();
|
|
53
|
-
await this.generateGlobalsTs();
|
|
54
|
-
await this.generateTsConfig();
|
|
55
|
-
await this.generateGitIgnore();
|
|
56
|
-
await this.generateSupportIndex(fileExt);
|
|
57
|
-
await this.generateCreateTestFile(fileExt);
|
|
58
|
-
await this.addScriptCommand();
|
|
59
|
-
this.printHelp();
|
|
60
|
-
}
|
|
61
|
-
catch (error) {
|
|
62
|
-
this.printFailedGeneration(error);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
addScriptCommand() {
|
|
66
|
-
var _a, _b;
|
|
67
|
-
const scripts = (_b = (_a = this.workspace.packageJson) === null || _a === void 0 ? void 0 : _a.scripts) !== null && _b !== void 0 ? _b : {};
|
|
68
|
-
this.workspace.packageJson.scripts = {
|
|
69
|
-
...scripts,
|
|
70
|
-
'e2e:start': 'core-scripts e2e:start',
|
|
71
|
-
};
|
|
72
|
-
this.workspace.savePackageJson();
|
|
73
|
-
}
|
|
74
|
-
generateCreateTestFile(fileExt) {
|
|
75
|
-
return this.generator.render('create.e2e.ejs', `src/create.e2e.${fileExt}`);
|
|
76
|
-
}
|
|
77
|
-
generateSupportIndex(fileExt) {
|
|
78
|
-
return this.generator.render('supportIndex.ejs', `src/support/index.${fileExt}`);
|
|
79
|
-
}
|
|
80
|
-
generateTsConfig() {
|
|
81
|
-
return this.generator.render('tsconfig.json.ejs', 'tsconfig.json');
|
|
82
|
-
}
|
|
83
|
-
generateGitIgnore() {
|
|
84
|
-
return this.generator.render('gitignore.ejs', '.gitignore');
|
|
85
|
-
}
|
|
86
|
-
generateGlobalsTs() {
|
|
87
|
-
return this.generator.render('globals.d.ts.ejs', 'src/@types/globals.d.ts');
|
|
88
|
-
}
|
|
89
|
-
printHelp() {
|
|
90
|
-
this.newline();
|
|
91
|
-
this.log(chalk_1.default.green(`End-to-End Scaffold Generated`));
|
|
92
|
-
this.newline();
|
|
93
|
-
this.log(chalk_1.default.gray(` $ yarn e2e:start`));
|
|
94
|
-
this.newline();
|
|
95
|
-
this.log(chalk_1.default.blue(`Happy testing!`));
|
|
96
|
-
this.newline();
|
|
97
|
-
}
|
|
98
|
-
async createFolders() {
|
|
99
|
-
await this.generator.makeDir('src', '@types');
|
|
100
|
-
await this.generator.makeDir('src', 'support');
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
exports.default = End2EndGenCommand;
|
|
104
|
-
End2EndGenCommand.description = 'Generates end-to-end scaffolding.';
|
|
105
|
-
//# sourceMappingURL=gen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gen.js","sourceRoot":"","sources":["../../../src/commands/e2e/gen.ts"],"names":[],"mappings":";;;AAAA,0DAAyB;AACzB,uCAAiC;AACjC,wDAAuB;AACvB,mDAA+C;AAC/C,+CAA2C;AAE3C,MAAqB,iBAAkB,SAAQ,yBAAW;IAA1D;;QAGU,iBAAY,GAAG,cAAI,CAAC,OAAO,CACjC,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,KAAK,EACL,KAAK,CACN,CAAA;IAiHH,CAAC;IA7GC,KAAK,CAAC,GAAG;QACP,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE,CAAA;QAE1C,IAAI,CAAC,SAAS,GAAG,IAAI,qBAAS,CAAC;YAC7B,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,SAAS,EAAE,IAAI,CAAC,SAAU;YAC1B,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,QAAQ,EAAE,IAAI,CAAC,SAAU,CAAC,OAAO,CAAC,KAAK,CAAC;SACzC,CAAC,CAAA;QAEF,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;IAC9B,CAAC;IAEO,qBAAqB,CAAC,KAAY;QACxC,IAAI,CAAC,OAAO,EAAE,CAAA;QACd,IAAI,CAAC,GAAG,CAAC,eAAK,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAA;QAClC,IAA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CAAA;QACd,IAAI,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAA;QACtC,IAAI,CAAC,OAAO,EAAE,CAAA;IAChB,CAAC;IAEO,KAAK,CAAC,aAAa;QACzB,MAAM,IAAI,CAAC,SAAU,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;QAC9C,MAAM,IAAI,CAAC,SAAU,CAAC,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,CAAA;IACjD,CAAC;;AA3HH,oCA4HC;AA3HQ,6BAAW,GAAG,mCAAmC,CAAA"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const command_1 = require("@oclif/command");
|
|
5
|
-
const cypress_1 = tslib_1.__importDefault(require("cypress"));
|
|
6
|
-
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
7
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
|
-
const BaseCommand_1 = require("../../BaseCommand");
|
|
9
|
-
class End2EndStartCommand extends BaseCommand_1.BaseCommand {
|
|
10
|
-
async run() {
|
|
11
|
-
// eslint-disable-next-line no-shadow
|
|
12
|
-
const { flags } = this.parse(End2EndStartCommand);
|
|
13
|
-
const config = {
|
|
14
|
-
fileServerFolder: this.workspace.resolve('e2e'),
|
|
15
|
-
integrationFolder: this.workspace.resolve('e2e', 'src'),
|
|
16
|
-
screenshotsFolder: this.workspace.resolve('e2e', 'screenshots'),
|
|
17
|
-
videosFolder: this.workspace.resolve('e2e', 'videos'),
|
|
18
|
-
fixturesFolder: this.workspace.resolve('e2e', 'src', 'fixtures'),
|
|
19
|
-
pluginsFile: path_1.default.resolve(__dirname, '..', '..', 'cypress', 'plugins.js'),
|
|
20
|
-
supportFile: this.getSupportFile(),
|
|
21
|
-
testFiles: '**/*.e2e.*',
|
|
22
|
-
};
|
|
23
|
-
// TODO: Use the following type spec when Cypress fixes their issues
|
|
24
|
-
// Partial<CypressOpenOptions | CypressRunOptions>
|
|
25
|
-
const cypressConfig = {
|
|
26
|
-
config,
|
|
27
|
-
project: this.workspace.resolve('e2e'),
|
|
28
|
-
spec: flags.spec,
|
|
29
|
-
env: flags.env,
|
|
30
|
-
reporter: this.isCI
|
|
31
|
-
? require.resolve('mocha-allure-reporter')
|
|
32
|
-
: flags.reporter,
|
|
33
|
-
};
|
|
34
|
-
return this.isCI || flags.headless
|
|
35
|
-
? await this.runHeadlessCypress(cypressConfig)
|
|
36
|
-
: await this.openCypressGui(cypressConfig);
|
|
37
|
-
}
|
|
38
|
-
// TODO: Use the following type spec when Cypress fixes their issues
|
|
39
|
-
// Partial<CypressRunOptions>
|
|
40
|
-
async runHeadlessCypress(cypressConfig) {
|
|
41
|
-
const results = await cypress_1.default.run(cypressConfig);
|
|
42
|
-
if ('failures' in results ||
|
|
43
|
-
('totalFailed' in results && results.totalFailed !== 0)) {
|
|
44
|
-
this.exit(1);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
// TODO: Use the following type spec when Cypress fixes their issues
|
|
48
|
-
// Partial<CypressOpenOptions>
|
|
49
|
-
async openCypressGui(cypressConfig) {
|
|
50
|
-
await cypress_1.default.open(cypressConfig);
|
|
51
|
-
}
|
|
52
|
-
getSupportFile() {
|
|
53
|
-
return ['js', 'jsx', 'ts', 'tsx']
|
|
54
|
-
.map((ext) => this.workspace.resolve('e2e', 'src', 'support', `index.${ext}`))
|
|
55
|
-
.find(fs_1.default.existsSync);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.default = End2EndStartCommand;
|
|
59
|
-
End2EndStartCommand.description = 'Runs Cypress end-to-end tests.';
|
|
60
|
-
End2EndStartCommand.flags = {
|
|
61
|
-
spec: command_1.flags.string({
|
|
62
|
-
description: 'Specify the tests to run.',
|
|
63
|
-
}),
|
|
64
|
-
headless: command_1.flags.boolean({
|
|
65
|
-
default: false,
|
|
66
|
-
description: 'Runs the tests in headless mode. Useful for CI/CD.',
|
|
67
|
-
}),
|
|
68
|
-
env: command_1.flags.string({
|
|
69
|
-
description: 'Pass in environment variables as options',
|
|
70
|
-
}),
|
|
71
|
-
reporter: command_1.flags.string({
|
|
72
|
-
default: 'mocha-allure-reporter',
|
|
73
|
-
description: 'Specify the reporter',
|
|
74
|
-
}),
|
|
75
|
-
};
|
|
76
|
-
End2EndStartCommand.strict = false;
|
|
77
|
-
//# sourceMappingURL=start.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"start.js","sourceRoot":"","sources":["../../../src/commands/e2e/start.ts"],"names":[],"mappings":";;;AAAA,4CAAsC;AACtC,8DAA6B;AAC7B,oDAAmB;AACnB,wDAAuB;AACvB,mDAA+C;AAE/C,MAAqB,mBAAoB,SAAQ,yBAAW;IAsB1D,KAAK,CAAC,GAAG;QACP,qCAAqC;QACrC,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAA;QAEjD,MAAM,MAAM,GAAG;YACb,gBAAgB,EAAE,IAAI,CAAC,SAAU,CAAC,OAAO,CAAC,KAAK,CAAC;YAChD,iBAAiB,EAAE,IAAI,CAAC,SAAU,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;YACxD,iBAAiB,EAAE,IAAI,CAAC,SAAU,CAAC,OAAO,CAAC,KAAK,EAAE,aAAa,CAAC;YAChE,YAAY,EAAE,IAAI,CAAC,SAAU,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC;YACtD,cAAc,EAAE,IAAI,CAAC,SAAU,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC;YACjE,WAAW,EAAE,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,CAAC;YACzE,WAAW,EAAE,IAAI,CAAC,cAAc,EA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S,GAAG,EAAE,CAAC,CACjE;aACA,IAAI,CAAC,YAAE,CAAC,UAAU,CAAC,CAAA;IACxB,CAAC;;AA/EH,sCAgFC;AA/EQ,+BAAW,GAAG,gCAAgC,CAAA;AAE9C,yBAAK,GAAG;IACb,IAAI,EAAE,eAAK,CAAC,MAAM,CAAC;QACjB,WAAW,EAAE,2BAA2B;KACzC,CAAC;IACF,QAAQ,EAAE,eAAK,CAAC,OAAO,CAAC;QACtB,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,oDAAoD;KAClE,CAAC;IACF,GAAG,EAAE,eAAK,CAAC,MAAM,CAAC;QAChB,WAAW,EAAE,0CAA0C;KACxD,CAAC;IACF,QAAQ,EAAE,eAAK,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,uBAAuB;QAChC,WAAW,EAAE,sBAAsB;KACpC,CAAC;CACH,CAAA;AAEM,0BAAM,GAAG,KAAK,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const installLogsCollector_1 = tslib_1.__importDefault(require("cypress-terminal-report/src/installLogsCollector"));
|
|
5
|
-
exports.default = installLogsCollector_1.default;
|
|
6
|
-
//# sourceMappingURL=loggerSupport.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loggerSupport.js","sourceRoot":"","sources":["../../src/cypress/loggerSupport.ts"],"names":[],"mappings":";;;AAAA,oHAAmF;AAEnF,kBAAe,8BAAoB,CAAA"}
|
package/dist/cypress/plugins.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const preprocessor_1 = require("./preprocessor");
|
|
3
|
-
const path = require('path');
|
|
4
|
-
module.exports = function cypressPlugins(on, config) {
|
|
5
|
-
on('file:preprocessor', preprocessor_1.preprocessWebpack());
|
|
6
|
-
const options = {
|
|
7
|
-
outputRoot: config.projectRoot,
|
|
8
|
-
// Used to trim the base path of specs and reduce nesting in the
|
|
9
|
-
// generated output directory.
|
|
10
|
-
specRoot: path.relative(config.fileServerFolder, config.integrationFolder),
|
|
11
|
-
outputTarget: {
|
|
12
|
-
'logs|txt': 'txt',
|
|
13
|
-
},
|
|
14
|
-
printLogsToFile: 'always',
|
|
15
|
-
};
|
|
16
|
-
require('cypress-terminal-report/src/installLogsPrinter')(on, options);
|
|
17
|
-
require('@cypress/code-coverage/task')(on, config);
|
|
18
|
-
return config;
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=plugins.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../src/cypress/plugins.ts"],"names":[],"mappings":";AAAA,iDAAkD;AAClD,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAE5B,iBAAS,SAAS,cAAc,CAAC,EAAO,EAAE,MAAW;IACnD,EAAE,CAAC,mBAAmB,EAAE,gCAAiB,EAAE,CAAC,CAAA;IAC5C,MAAM,OAAO,GAAG;QACd,UAAU,EAAE,MAAM,CAAC,WAAW;QAC9B,gEAAgE;QAChE,8BAA8B;QAC9B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC1E,YAAY,EAAE;YACZ,UAAU,EAAE,KAAK;SAClB;QACD,eAAe,EAAE,QAAQ;KAC1B,CAAA;IAED,OAAO,CAAC,gDAAgD,CAAC,CAAC,EAAE,EAAE,OAAO,CAAC,CAAA;IACtE,OAAO,CAAC,6BAA6B,CAAC,CAAC,EAAE,EAAE,MAAM,CAAC,CAAA;IAClD,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.preprocessWebpack = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const webpack_preprocessor_1 = tslib_1.__importDefault(require("@cypress/webpack-preprocessor"));
|
|
6
|
-
const config_1 = require("../babel/config");
|
|
7
|
-
function preprocessWebpack() {
|
|
8
|
-
return webpack_preprocessor_1.default({
|
|
9
|
-
webpackOptions: {
|
|
10
|
-
mode: 'development',
|
|
11
|
-
resolve: {
|
|
12
|
-
extensions: ['.mjs', '.ts', '.tsx', '.js', '.jsx', '.json'],
|
|
13
|
-
},
|
|
14
|
-
module: {
|
|
15
|
-
rules: [
|
|
16
|
-
{
|
|
17
|
-
exclude: [/node_modules\/*/],
|
|
18
|
-
test: /\.(js|mjs|jsx|ts|tsx|json)$/,
|
|
19
|
-
use: [
|
|
20
|
-
{
|
|
21
|
-
loader: require.resolve('babel-loader'),
|
|
22
|
-
options: config_1.createConfigForLib('development'),
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
exports.preprocessWebpack = preprocessWebpack;
|
|
32
|
-
//# sourceMappingURL=preprocessor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preprocessor.js","sourceRoot":"","sources":["../../src/cypress/preprocessor.ts"],"names":[],"mappings":";;;;AAAA,iGAA8C;AAC9C,4CAAoD;AAEpD,SAAgB,iBAAiB;IAC/B,OAAO,8BAAE,CAAC;QACR,cAAc,EAAE;YACd,IAAI,EAAE,aAAa;YACnB,OAAO,EAAE;gBACP,UAAU,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;aAC5D;YACD,MAAM,EAAE;gBACN,KAAK,EAAE;oBACL;wBACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;wBAC5B,IAAI,EAAE,6BAA6B;wBACnC,GAAG,EAAE;4BACH;gCACE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC;gCACvC,OAAO,EAAE,2BAAkB,CAAC,aAAa,CAAC;6BAC3C;yBACF;qBACF;iBACF;aACF;SACF;KACF,CAAC,CAAA;AACJ,CAAC;AAvBD,8CAuBC"}
|
package/docs/commands/e2e.md
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
`core-scripts e2e`
|
|
2
|
-
==================
|
|
3
|
-
|
|
4
|
-
end-to-end testing commands
|
|
5
|
-
|
|
6
|
-
* [`core-scripts e2e:gen`](#core-scripts-e2egen)
|
|
7
|
-
* [`core-scripts e2e:start`](#core-scripts-e2estart)
|
|
8
|
-
|
|
9
|
-
## `core-scripts e2e:gen`
|
|
10
|
-
|
|
11
|
-
Generates end-to-end scaffolding.
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
USAGE
|
|
15
|
-
$ core-scripts e2e:gen
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
_See code: [dist/commands/e2e/gen.js](https://github.com/procore/frontend-tooling/blob/v10.3.0-rc.26+f09cf19/dist/commands/e2e/gen.js)_
|
|
19
|
-
|
|
20
|
-
## `core-scripts e2e:start`
|
|
21
|
-
|
|
22
|
-
Runs Cypress end-to-end tests.
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
USAGE
|
|
26
|
-
$ core-scripts e2e:start
|
|
27
|
-
|
|
28
|
-
OPTIONS
|
|
29
|
-
--env=env Pass in environment variables as options
|
|
30
|
-
--headless Runs the tests in headless mode. Useful for CI/CD.
|
|
31
|
-
--reporter=reporter [default: mocha-allure-reporter] Specify the reporter
|
|
32
|
-
--spec=spec Specify the tests to run.
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
_See code: [dist/commands/e2e/start.js](https://github.com/procore/frontend-tooling/blob/v10.3.0-rc.26+f09cf19/dist/commands/e2e/start.js)_
|
|
File without changes
|
|
File without changes
|
package/types/e2e.d.ts
DELETED