@procore/core-scripts 10.3.0-rc.31 → 11.0.0-rc.32
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/commands/lint/eslint.js +0 -3
- package/dist/commands/lint/eslint.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 +3 -11
- package/templates/app/gen/README.md.ejs +0 -1
- 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/README.md
CHANGED
|
@@ -17,7 +17,7 @@ $ npm install -g @procore/core-scripts
|
|
|
17
17
|
$ core-scripts COMMAND
|
|
18
18
|
running command...
|
|
19
19
|
$ core-scripts (-v|--version|version)
|
|
20
|
-
@procore/core-scripts/
|
|
20
|
+
@procore/core-scripts/11.0.0-rc.32+fca498a linux-x64 node-v14.19.1
|
|
21
21
|
$ core-scripts --help [COMMAND]
|
|
22
22
|
USAGE
|
|
23
23
|
$ core-scripts COMMAND
|
|
@@ -32,7 +32,6 @@ USAGE
|
|
|
32
32
|
|
|
33
33
|
* [`core-scripts app`](docs/commands/app.md) - application commands
|
|
34
34
|
* [`core-scripts autocomplete`](docs/commands/autocomplete.md) - display autocomplete installation instructions
|
|
35
|
-
* [`core-scripts e2e`](docs/commands/e2e.md) - end-to-end testing commands
|
|
36
35
|
* [`core-scripts help`](docs/commands/help.md) - display help for core-scripts
|
|
37
36
|
* [`core-scripts info`](docs/commands/info.md) - Gathers relevant information about the CLI.
|
|
38
37
|
* [`core-scripts lib`](docs/commands/lib.md) - library commands
|
|
@@ -20,9 +20,6 @@ class LintEslintCommand extends BaseCommand_1.BaseCommand {
|
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
22
|
inputs = ['src'];
|
|
23
|
-
if (this.workspace.existsSync('e2e')) {
|
|
24
|
-
inputs.push('e2e');
|
|
25
|
-
}
|
|
26
23
|
}
|
|
27
24
|
this.workspace.writeFileSync('.eslintrc.json', JSON.stringify(eslintConfig, null, 2));
|
|
28
25
|
this.workspace.writeFileSync('prettier.config.js', "module.exports = require('@procore/core-scripts/configs/prettier.config');\n");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint.js","sourceRoot":"","sources":["../../../src/commands/lint/eslint.ts"],"names":[],"mappings":";;;AAAA,4CAAsC;AACtC,4DAA0B;AAC1B,mCAAkC;AAClC,mDAA+C;AAC/C,gDAAwD;AAExD,MAAqB,iBAAkB,SAAQ,yBAAW;IAyBxD,KAAK,CAAC,GAAG;QACP,qCAAqC;QACrC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAA;QACrD,MAAM,gBAAgB,GAAG,2BAAkB,EAAE,CAAA;QAE7C,MAAM,YAAY,GAAG,IAAI,CAAC,SAAU,CAAC,aAAa,CAAC,cAAc;YAC/D,CAAC,CAAC,IAAI,CAAC,SAAU,CAAC,aAAa,CAAC,cAAc,CAAC,gBAAgB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d,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,YAAY,CAAC;KAC7C,CAAC;CACH,CAAA"}
|
package/docs/commands/app.md
CHANGED
|
@@ -28,7 +28,7 @@ OPTIONS
|
|
|
28
28
|
--sourceMapPublicPath=sourceMapPublicPath Base path for all the sourcemap.
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
_See code: [dist/commands/app/build.js](https://github.com/procore/frontend-tooling/blob/
|
|
31
|
+
_See code: [dist/commands/app/build.js](https://github.com/procore/frontend-tooling/blob/v11.0.0-rc.32+fca498a/dist/commands/app/build.js)_
|
|
32
32
|
|
|
33
33
|
## `core-scripts app:clean`
|
|
34
34
|
|
|
@@ -39,7 +39,7 @@ USAGE
|
|
|
39
39
|
$ core-scripts app:clean
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
_See code: [dist/commands/app/clean.js](https://github.com/procore/frontend-tooling/blob/
|
|
42
|
+
_See code: [dist/commands/app/clean.js](https://github.com/procore/frontend-tooling/blob/v11.0.0-rc.32+fca498a/dist/commands/app/clean.js)_
|
|
43
43
|
|
|
44
44
|
## `core-scripts app:gen`
|
|
45
45
|
|
|
@@ -50,7 +50,7 @@ USAGE
|
|
|
50
50
|
$ core-scripts app:gen
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
_See code: [dist/commands/app/gen.js](https://github.com/procore/frontend-tooling/blob/
|
|
53
|
+
_See code: [dist/commands/app/gen.js](https://github.com/procore/frontend-tooling/blob/v11.0.0-rc.32+fca498a/dist/commands/app/gen.js)_
|
|
54
54
|
|
|
55
55
|
## `core-scripts app:start`
|
|
56
56
|
|
|
@@ -72,4 +72,4 @@ OPTIONS
|
|
|
72
72
|
--socketHost=socketHost [default: 0.0.0.0] HMR websocket host
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
_See code: [dist/commands/app/start.js](https://github.com/procore/frontend-tooling/blob/
|
|
75
|
+
_See code: [dist/commands/app/start.js](https://github.com/procore/frontend-tooling/blob/v11.0.0-rc.32+fca498a/dist/commands/app/start.js)_
|
package/docs/commands/info.md
CHANGED
|
@@ -14,4 +14,4 @@ USAGE
|
|
|
14
14
|
$ core-scripts info
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
_See code: [dist/commands/info.js](https://github.com/procore/frontend-tooling/blob/
|
|
17
|
+
_See code: [dist/commands/info.js](https://github.com/procore/frontend-tooling/blob/v11.0.0-rc.32+fca498a/dist/commands/info.js)_
|
package/docs/commands/lib.md
CHANGED
|
@@ -19,7 +19,7 @@ OPTIONS
|
|
|
19
19
|
--analyze Run webpack bundle analyzer.
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
_See code: [dist/commands/lib/build.js](https://github.com/procore/frontend-tooling/blob/
|
|
22
|
+
_See code: [dist/commands/lib/build.js](https://github.com/procore/frontend-tooling/blob/v11.0.0-rc.32+fca498a/dist/commands/lib/build.js)_
|
|
23
23
|
|
|
24
24
|
## `core-scripts lib:clean`
|
|
25
25
|
|
|
@@ -30,7 +30,7 @@ USAGE
|
|
|
30
30
|
$ core-scripts lib:clean
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
_See code: [dist/commands/lib/clean.js](https://github.com/procore/frontend-tooling/blob/
|
|
33
|
+
_See code: [dist/commands/lib/clean.js](https://github.com/procore/frontend-tooling/blob/v11.0.0-rc.32+fca498a/dist/commands/lib/clean.js)_
|
|
34
34
|
|
|
35
35
|
## `core-scripts lib:start`
|
|
36
36
|
|
|
@@ -41,4 +41,4 @@ USAGE
|
|
|
41
41
|
$ core-scripts lib:start
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
_See code: [dist/commands/lib/start.js](https://github.com/procore/frontend-tooling/blob/
|
|
44
|
+
_See code: [dist/commands/lib/start.js](https://github.com/procore/frontend-tooling/blob/v11.0.0-rc.32+fca498a/dist/commands/lib/start.js)_
|
package/docs/commands/lint.md
CHANGED
|
@@ -22,7 +22,7 @@ OPTIONS
|
|
|
22
22
|
--fixTypes=layout|problem|suggestion The types of lint errors/warnings to fix.
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
_See code: [dist/commands/lint/eslint.js](https://github.com/procore/frontend-tooling/blob/
|
|
25
|
+
_See code: [dist/commands/lint/eslint.js](https://github.com/procore/frontend-tooling/blob/v11.0.0-rc.32+fca498a/dist/commands/lint/eslint.js)_
|
|
26
26
|
|
|
27
27
|
## `core-scripts lint:stylelint [FILES]`
|
|
28
28
|
|
|
@@ -39,4 +39,4 @@ OPTIONS
|
|
|
39
39
|
--fix Automatically fix problems.
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
_See code: [dist/commands/lint/stylelint.js](https://github.com/procore/frontend-tooling/blob/
|
|
42
|
+
_See code: [dist/commands/lint/stylelint.js](https://github.com/procore/frontend-tooling/blob/v11.0.0-rc.32+fca498a/dist/commands/lint/stylelint.js)_
|
package/docs/commands/rm.md
CHANGED
|
@@ -22,4 +22,4 @@ OPTIONS
|
|
|
22
22
|
-y, --yes Automatically answer 'Yes' to the question.
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
_See code: [dist/commands/rm.js](https://github.com/procore/frontend-tooling/blob/
|
|
25
|
+
_See code: [dist/commands/rm.js](https://github.com/procore/frontend-tooling/blob/v11.0.0-rc.32+fca498a/dist/commands/rm.js)_
|
package/docs/commands/test.md
CHANGED
|
@@ -17,4 +17,4 @@ OPTIONS
|
|
|
17
17
|
--config=config The path to a Jest config file specifying how to find and execute tests.
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
_See code: [dist/commands/test.js](https://github.com/procore/frontend-tooling/blob/
|
|
20
|
+
_See code: [dist/commands/test.js](https://github.com/procore/frontend-tooling/blob/v11.0.0-rc.32+fca498a/dist/commands/test.js)_
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"11.0.0-rc.32+fca498a","commands":{"info":{"id":"info","description":"Gathers relevant information about the CLI.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{},"args":[]},"rm":{"id":"rm","description":"Removes things.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Automatically answer 'Yes' to the question.","allowNo":false},"dryRun":{"name":"dryRun","type":"boolean","char":"d","description":"List what would be deleted instead of deleting.","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Allow deleting the current working directory and outside.","allowNo":false}},"args":[{"name":"path","description":"Path that will be remove.","required":true}]},"test":{"id":"test","description":"Runs Jest. Visit https://jestjs.io/docs/en/cli for more information about available options, only --config is documented.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{"config":{"name":"config","type":"option","description":"The path to a Jest config file specifying how to find and execute tests."}},"args":[]},"app:build":{"id":"app:build","description":"Compiles the application.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{"analyze":{"name":"analyze","type":"boolean","description":"Run webpack bundle analyzer.","allowNo":false},"railsMode":{"name":"railsMode","type":"boolean","description":"Enables Procore Rails integration.","allowNo":false},"inspect":{"name":"inspect","type":"boolean","description":"Prints the Webpack configuration.","allowNo":false},"sourceMapPublicPath":{"name":"sourceMapPublicPath","type":"option","description":"Base path for all the sourcemap."},"publicPath":{"name":"publicPath","type":"option","description":"Allows you to specify the base path for all the assets within your application."}},"args":[]},"app:clean":{"id":"app:clean","description":"Cleans the distribution folder (/build).","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{},"args":[]},"app:gen":{"id":"app:gen","description":"Generates application scaffolding.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{},"args":[]},"app:start":{"id":"app:start","description":"Starts the development server.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{"railsMode":{"name":"railsMode","type":"boolean","description":"Enables Procore Rails integration.","allowNo":false},"inspect":{"name":"inspect","type":"boolean","description":"Prints the Webpack configuration.","allowNo":false},"openBrowser":{"name":"openBrowser","type":"boolean","description":"Open browser after initializing the server.","allowNo":false},"https":{"name":"https","type":"boolean","description":"Use HTTPS.","allowNo":false},"dangerouslyDisableHostCheck":{"name":"dangerouslyDisableHostCheck","type":"boolean","description":"Disable host checking.","allowNo":false},"port":{"name":"port","type":"option","description":"Server port.","default":"5000"},"host":{"name":"host","type":"option","description":"Server host.","default":"0.0.0.0"},"socketHost":{"name":"socketHost","type":"option","description":"HMR websocket host","default":"0.0.0.0"},"publicPath":{"name":"publicPath","type":"option","description":"Public asset path."}},"args":[]},"lib:build":{"id":"lib:build","description":"Compiles the library in production mode.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{"analyze":{"name":"analyze","type":"boolean","description":"Run webpack bundle analyzer.","allowNo":false}},"args":[]},"lib:clean":{"id":"lib:clean","description":"Cleans the distribution folder (/dist).","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{},"args":[]},"lib:start":{"id":"lib:start","description":"Compiles the library in development mode.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{},"args":[]},"lint:eslint":{"id":"lint:eslint","description":"Runs the ESLint linter.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{"fix":{"name":"fix","type":"boolean","description":"Automatically fix problems.","allowNo":false},"fixTypes":{"name":"fixTypes","type":"option","description":"The types of lint errors/warnings to fix.","options":["layout","problem","suggestion"]}},"args":[{"name":"input","description":"Comma-delimited list of file and/or folder paths that the linter will run against.","required":false}]},"lint:stylelint":{"id":"lint:stylelint","description":"Runs the stylelint linter.","pluginName":"@procore/core-scripts","pluginType":"core","aliases":[],"flags":{"fix":{"name":"fix","type":"boolean","description":"Automatically fix problems.","allowNo":false}},"args":[{"name":"files","description":"Path to the file or folder that the linter will run against.","required":false}]}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/core-scripts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-rc.32+fca498a",
|
|
4
4
|
"description": "A CLI to enhance your development experience",
|
|
5
5
|
"author": "Procore Technologies",
|
|
6
6
|
"homepage": "https://github.com/procore/frontend-tooling#readme",
|
|
@@ -75,9 +75,6 @@
|
|
|
75
75
|
},
|
|
76
76
|
"lint": {
|
|
77
77
|
"description": "linting commands"
|
|
78
|
-
},
|
|
79
|
-
"e2e": {
|
|
80
|
-
"description": "end-to-end testing commands"
|
|
81
78
|
}
|
|
82
79
|
}
|
|
83
80
|
},
|
|
@@ -91,15 +88,13 @@
|
|
|
91
88
|
"@babel/preset-env": "7.15.4",
|
|
92
89
|
"@babel/preset-react": "7.14.5",
|
|
93
90
|
"@babel/preset-typescript": "7.15.0",
|
|
94
|
-
"@cypress/code-coverage": "3.9.11",
|
|
95
|
-
"@cypress/webpack-preprocessor": "5.9.1",
|
|
96
91
|
"@module-federation/dashboard-plugin": "2.3.0",
|
|
97
92
|
"@oclif/command": "1.8.0",
|
|
98
93
|
"@oclif/config": "1.17.0",
|
|
99
94
|
"@oclif/plugin-autocomplete": "0.3.0",
|
|
100
95
|
"@oclif/plugin-plugins": "1.10.1",
|
|
101
96
|
"@procore/cdn": "2.0.0",
|
|
102
|
-
"@procore/eslint-config": "
|
|
97
|
+
"@procore/eslint-config": "11.0.0-rc.32+fca498a",
|
|
103
98
|
"@svgr/webpack": "5.5.0",
|
|
104
99
|
"@types/css-minimizer-webpack-plugin": "3.0.2",
|
|
105
100
|
"@typescript-eslint/eslint-plugin": "3.6.0",
|
|
@@ -127,8 +122,6 @@
|
|
|
127
122
|
"crypto-browserify": "3.12.0",
|
|
128
123
|
"css-loader": "5.2.4",
|
|
129
124
|
"css-minimizer-webpack-plugin": "3.1.1",
|
|
130
|
-
"cypress": "4.12.0",
|
|
131
|
-
"cypress-terminal-report": "3.4.1",
|
|
132
125
|
"debug": "4.3.2",
|
|
133
126
|
"deepmerge": "4.2.2",
|
|
134
127
|
"del": "6.0.0",
|
|
@@ -141,7 +134,6 @@
|
|
|
141
134
|
"eslint": "7.32.0",
|
|
142
135
|
"eslint-config-airbnb": "18.2.1",
|
|
143
136
|
"eslint-config-prettier": "6.11.0",
|
|
144
|
-
"eslint-plugin-cypress": "2.12.1",
|
|
145
137
|
"eslint-plugin-import": "2.25.2",
|
|
146
138
|
"eslint-plugin-jsx-a11y": "6.4.1",
|
|
147
139
|
"eslint-plugin-prettier": "3.4.1",
|
|
@@ -246,5 +238,5 @@
|
|
|
246
238
|
"@types/webpack-dev-server": "3.11.5",
|
|
247
239
|
"@types/webpack-manifest-plugin": "3.0.5"
|
|
248
240
|
},
|
|
249
|
-
"gitHead": "
|
|
241
|
+
"gitHead": "fca498a777dcc74d69a97034067201cf2e9e424e"
|
|
250
242
|
}
|
|
@@ -26,4 +26,3 @@ You should also consider using the VSCode [ESLint extension](https://marketplace
|
|
|
26
26
|
## Testing
|
|
27
27
|
|
|
28
28
|
Run unit/integration tests with `yarn test`. The optional `--watch` flag will re-run your tests as files change, for continuous feedback
|
|
29
|
-
Place any relevant unit/integration/e2e testing information here for this specific hydra client
|
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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AAmC,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
|
-
{"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,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.31+6e61674/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.31+6e61674/dist/commands/e2e/start.js)_
|
|
File without changes
|
|
File without changes
|
package/types/e2e.d.ts
DELETED