generator-nitro 6.1.2 → 7.0.2

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.
@@ -312,7 +312,7 @@ module.exports = class extends Generator {
312
312
  'src/ui.ts',
313
313
  'src/proto.js',
314
314
  'src/proto.ts',
315
- 'tests/cypress/cypress/integration/examples/index.spec.js',
315
+ 'tests/cypress/cypress/e2e/examples/index.cy.js',
316
316
  '.eslintrc.js',
317
317
  'docker-compose.yml',
318
318
  'docker-compose-dev.yml',
@@ -402,7 +402,7 @@ module.exports = class extends Generator {
402
402
  'src/patterns/',
403
403
  'src/proto/utils/',
404
404
  'src/shared/',
405
- 'tests/cypress/cypress/integration/examples/',
405
+ 'tests/cypress/cypress/e2e/examples/',
406
406
  ];
407
407
  const exampleIncludeAnyway = [
408
408
  // example file "parts" included for this.options.exampleCode===false
@@ -1 +1 @@
1
- 16.15.0
1
+ 16.15.1
@@ -6,8 +6,8 @@
6
6
  "private": true,
7
7
  "author": "The Nitro Team",
8
8
  "engines": {
9
- "node": ">=12.13.0 <17",
10
- "npm": ">=6.12.0 <9"
9
+ "node": ">=14.15.0 <17",
10
+ "npm": ">=6.14.8 <9"
11
11
  },
12
12
  "scripts": {
13
13
  "\n# PROJECT ------- ": "",
@@ -24,7 +24,7 @@
24
24
  "\n# LINT/TEST ------- ": "",
25
25
  "check-node-version": "check-node-version --print --package",
26
26
  "cypress-test": "npm run build && cross-env PORT=8888 NITRO_MODE=test npm-run-all --parallel --race test:cypress:serve cypress-test:open",
27
- "cypress-test:open": "cypress open --project ./tests/cypress/",
27
+ "cypress-test:open": "cypress open --project ./tests/cypress/ --e2e --browser chrome",
28
28
  "lighthouse-test": "npm run build && cross-env PORT=8890 NITRO_MODE=test npm-run-all --parallel --race lighthouse-test:*",
29
29
  "lighthouse-test:serve": "npm run prod:serve",
30
30
  "lighthouse-test:run": "lighthouse http://localhost:8890/<% if (options.exampleCode) { %>example-patterns<% } else { %>index<% } %> --quiet --configPath=./tests/lighthouse/lighthouse.config.js --output-path=./public/reports/lighthouse/report.html --view",
@@ -84,7 +84,7 @@
84
84
  "@gondel/core": "1.2.7",
85
85
  "@gondel/plugin-hot": "1.2.7",
86
86
  "bootstrap": "5.1.3",<% } %>
87
- "core-js": "3.22.4"<% if (options.exampleCode) { %>,
87
+ "core-js": "3.22.8"<% if (options.exampleCode) { %>,
88
88
  "flatpickr": "4.6.13",
89
89
  "handlebars": "4.7.7",
90
90
  "jquery": "3.6.0",
@@ -95,7 +95,7 @@
95
95
  "svg4everybody": "2.1.9"<% } %>
96
96
  },
97
97
  "devDependencies": {<% if (options.jsCompiler === 'js') { %>
98
- "@babel/eslint-parser": "7.17.0",<% } %>
98
+ "@babel/eslint-parser": "7.18.2",<% } %>
99
99
  "@khanacademy/tota11y": "0.2.0",
100
100
  "@namics/eslint-config": "9.1.1",
101
101
  "@namics/prettier-config": "2.0.1",
@@ -108,31 +108,31 @@
108
108
  "@types/bootstrap": "5.1.11",<% if (options.exampleCode ) { %>
109
109
  "@types/jquery": "3.5.14",<% } %>
110
110
  "@types/svg4everybody": "2.1.2",
111
- "@types/webpack-env": "1.16.4",<% } %>
112
- "backstopjs": "6.0.4",
111
+ "@types/webpack-env": "1.17.0",<% } %>
112
+ "backstopjs": "6.1.0",
113
113
  "check-node-version": "4.2.1",
114
114
  "commitizen": "4.2.4",
115
115
  "config": "3.3.7",
116
116
  "cross-env": "7.0.3",
117
- "cypress": "9.6.1",
117
+ "cypress": "10.0.3",
118
118
  "cz-conventional-changelog": "3.3.0",
119
- "env-linter": "0.5.1",
119
+ "env-linter": "1.0.0",
120
120
  "eslint": "7.32.0",
121
121
  "eslint-plugin-import": "2.26.0",
122
122
  "extend": "3.0.2",
123
123
  "generator-nitro": "<%= version %>",
124
124
  "gulp": "4.0.2",
125
- "husky": "7.0.4",
125
+ "husky": "8.0.1",
126
126
  "license-checker": "25.0.1",
127
- "lighthouse": "9.6.1",
128
- "lint-staged": "12.4.1",<% if (options.themes) { %>
127
+ "lighthouse": "9.6.2",
128
+ "lint-staged": "13.0.1",<% if (options.themes) { %>
129
129
  "node-sass": "6.0.1",<% } %>
130
- "npm-check-updates": "12.5.11",
130
+ "npm-check-updates": "13.1.2",
131
131
  "npm-run-all": "4.1.5",
132
132
  "prettier": "2.6.2",
133
133
  "rimraf": "3.0.2",
134
134
  "stylelint": "13.13.1",<% if (options.jsCompiler === 'ts') { %>
135
- "typescript": "4.6.4",<% } %>
135
+ "typescript": "4.7.3",<% } %>
136
136
  "webpack-cli": "4.9.2",
137
137
  "yo": "4.3.0"
138
138
  },
@@ -10,16 +10,16 @@
10
10
  //
11
11
  //
12
12
  // -- This is a parent command --
13
- // Cypress.Commands.add("login", (email, password) => { ... })
13
+ // Cypress.Commands.add('login', (email, password) => { ... })
14
14
  //
15
15
  //
16
16
  // -- This is a child command --
17
- // Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
17
+ // Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
18
18
  //
19
19
  //
20
20
  // -- This is a dual command --
21
- // Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
21
+ // Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
22
22
  //
23
23
  //
24
24
  // -- This will overwrite an existing command --
25
- // Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
25
+ // Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
@@ -1,5 +1,5 @@
1
1
  // ***********************************************************
2
- // This example support/index.js is processed and
2
+ // This example support/e2e.js is processed and
3
3
  // loaded automatically before your test files.
4
4
  //
5
5
  // This is a great place to put global configuration and
@@ -17,4 +17,4 @@
17
17
  import './commands';
18
18
 
19
19
  // Alternatively you can use CommonJS syntax:
20
- // require('./commands')
20
+ // require('./commands');
@@ -0,0 +1,16 @@
1
+ const { defineConfig } = require('cypress');
2
+
3
+ module.exports = defineConfig({
4
+ e2e: {
5
+ // specPattern: 'cypress/e2e/**/*.cy.{js,jsx,ts,tsx}', // default specPattern
6
+ video: false,
7
+ setupNodeEvents(on, config) {
8
+ // modify config values
9
+ const port = process.env.PORT || 8888;
10
+ config.baseUrl = `http://localhost:${port}`;
11
+
12
+ // IMPORTANT return the updated config object
13
+ return config;
14
+ },
15
+ },
16
+ });
@@ -6,9 +6,9 @@ End to end testing with cypress.
6
6
 
7
7
  ## Directories
8
8
 
9
- We use the [default configuration](https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests.html#Folder-Structure)
9
+ We use the [default configuration](https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests)
10
10
 
11
- - `./cypress/integration` ist the place for your tests
11
+ - `./cypress/e2e` ist the place for your tests
12
12
  - `./cypress/screenshots` and `./cypress/videos` directories are excluded from git
13
13
 
14
14
  ## Scripts
@@ -22,4 +22,4 @@ Use following npm scripts for your test workflow:
22
22
 
23
23
  Add `CI=true` as environment variable to avoid tons of log lines by installing cypress.
24
24
 
25
- More on [configuation for continous integration](https://docs.cypress.io/guides/guides/continuous-integration.html)
25
+ More on [configuation for continous integration](https://docs.cypress.io/guides/continuous-integration/introduction)
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "generator-nitro",
3
- "version": "6.1.2",
3
+ "version": "7.0.2",
4
4
  "description": "Yeoman generator for the nitro frontend framework",
5
5
  "license": "MIT",
6
6
  "repository": "merkle-open/generator-nitro",
7
7
  "author": "The Nitro Team",
8
8
  "engines": {
9
- "node": ">=12.13.0 <17",
10
- "npm": ">=6.12.0 <9"
9
+ "node": ">=14.15.0 <17",
10
+ "npm": ">=6.14.8 <9"
11
11
  },
12
12
  "main": "generators/app/index.js",
13
13
  "scripts": {
@@ -1,28 +0,0 @@
1
- /// <reference types="cypress" />
2
- // ***********************************************************
3
- // This example plugins/index.js can be used to load plugins
4
- //
5
- // You can change the location of this file or turn off loading
6
- // the plugins file with the 'pluginsFile' configuration option.
7
- //
8
- // You can read more here:
9
- // https://on.cypress.io/plugins-guide
10
- // ***********************************************************
11
-
12
- // This function is called when a project is opened or re-opened (e.g. due to
13
- // the project's config changing)
14
-
15
- /**
16
- * @type {Cypress.PluginConfig}
17
- */
18
- module.exports = (on, config) => {
19
- // `on` is used to hook into various events Cypress emits
20
- // `config` is the resolved Cypress config
21
-
22
- const port = process.env.PORT || 8888;
23
-
24
- // modify config values
25
- config.baseUrl = `http://localhost:${port}`;
26
-
27
- return config;
28
- };
@@ -1,5 +0,0 @@
1
- {
2
- "integrationFolder": "cypress/integration",
3
- "reporter": "dot",
4
- "video": false
5
- }