generator-nitro 8.0.0 → 8.1.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.
@@ -10,7 +10,7 @@ const path = require('path');
10
10
  const fs = require('fs');
11
11
  const childProcess = require('child_process');
12
12
  const findGitRoot = require('find-git-root')
13
- const glob = require('glob');
13
+ const { globSync } = require('glob');
14
14
  const _ = require('lodash');
15
15
 
16
16
  module.exports = class extends Generator {
@@ -282,7 +282,7 @@ module.exports = class extends Generator {
282
282
  writing() {
283
283
  this.log('Scaffolding your app');
284
284
 
285
- const files = glob.sync('**/*', { cwd: this.sourceRoot(), nodir: true, dot: true });
285
+ const files = globSync('**/*', { cwd: this.sourceRoot(), nodir: true, dot: true, posix: true});
286
286
 
287
287
  const tplFiles = [
288
288
  // files to process with copyTpl
@@ -1 +1 @@
1
- 18.17.1
1
+ 18.18.2
@@ -6,8 +6,8 @@
6
6
  "private": true,
7
7
  "author": "The Nitro Team",
8
8
  "engines": {
9
- "node": ">=16.13.0 <19",
10
- "npm": ">=8.1.0 <10"
9
+ "node": ">=16.13.0 <21",
10
+ "npm": ">=8.1.0 <11"
11
11
  },
12
12
  "scripts": {
13
13
  "\n# PROJECT ------- ": "",
@@ -20,7 +20,7 @@
20
20
  "nitro:update": "npm uninstall generator-nitro && npm install generator-nitro@latest --save-dev --save-exact && yo nitro",
21
21
  "update-dependencies": "npm-check-updates -u --deprecated",
22
22
  "\n# MISC ------- ": "",
23
- "postinstall": "<% if (git.root) { %>cd <%= git.root %> && husky install <% if (git.project) { %><%= git.project %>/.husky && cd <%= git.project %> <% } %>&& <% } %><% if (options.themes) { %>npm rebuild node-sass && <% } %>env-linter<% if (git.root) { %> --hooksInstalled<% } %> --saveExact --dependenciesExactVersion --lts",
23
+ "postinstall": "<% if (git.root) { %>cd <%= git.root %> && husky install <% if (git.project) { %><%= git.project %>/.husky && cd <%= git.project %> <% } %>&& <% } %>npx playwright install && <% if (options.themes) { %>npm rebuild node-sass && <% } %>env-linter<% if (git.root) { %> --hooksInstalled<% } %> --saveExact --dependenciesExactVersion --lts",
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 prod:serve cypress-test:open",
@@ -80,11 +80,11 @@
80
80
  "dependencies": {<% if (options.exampleCode) { %>
81
81
  "@gondel/core": "1.2.8",
82
82
  "@gondel/plugin-hot": "1.2.8",
83
- "bootstrap": "5.3.1",<% } %>
84
- "core-js": "3.32.1"<% if (options.exampleCode) { %>,
83
+ "bootstrap": "5.3.2",<% } %>
84
+ "core-js": "3.33.1"<% if (options.exampleCode) { %>,
85
85
  "flatpickr": "4.6.13",
86
86
  "handlebars": "4.7.8",
87
- "jquery": "3.7.0",
87
+ "jquery": "3.7.1",
88
88
  "lazysizes": "5.3.2",
89
89
  "lottie-web": "5.12.2",
90
90
  "prevent-window-opener-attacks": "0.3.1"<% } %><% if (options.jsCompiler === 'js') { %>,
@@ -92,46 +92,46 @@
92
92
  "svg4everybody": "2.1.9"<% } %>
93
93
  },
94
94
  "devDependencies": {<% if (options.jsCompiler === 'js') { %>
95
- "@babel/eslint-parser": "7.22.10",<% } %>
95
+ "@babel/eslint-parser": "7.22.15",<% } %>
96
96
  "@merkle-open/eslint-config": "3.0.0",
97
97
  "@merkle-open/html-validate-config": "1.0.1",
98
98
  "@merkle-open/prettier-config": "1.2.0",
99
- "@merkle-open/stylelint-config": "3.1.0",
99
+ "@merkle-open/stylelint-config": "3.2.0",
100
100
  "@merkle-open/ts-config": "1.1.0",
101
101
  "@nitro/app": "<%= version %>",
102
102
  "@nitro/exporter": "<%= version %>",
103
103
  "@nitro/gulp": "<%= version %>",
104
104
  "@nitro/webpack": "<%= version %>",
105
- "@playwright/test": "1.37.1",<% if (options.jsCompiler === 'ts') { %>
106
- "@types/bootstrap": "5.2.6",<% if (options.exampleCode ) { %>
107
- "@types/jquery": "3.5.17",<% } %>
108
- "@types/svg4everybody": "2.1.2",
109
- "@types/webpack-env": "1.18.1",<% } %>
105
+ "@playwright/test": "1.39.0",<% if (options.jsCompiler === 'ts') { %>
106
+ "@types/bootstrap": "5.2.8",<% if (options.exampleCode ) { %>
107
+ "@types/jquery": "3.5.24",<% } %>
108
+ "@types/svg4everybody": "2.1.4",
109
+ "@types/webpack-env": "1.18.3",<% } %>
110
110
  "backstopjs": "6.2.2",
111
111
  "check-node-version": "4.2.1",
112
112
  "commitizen": "4.3.0",
113
113
  "config": "3.3.9",
114
114
  "cross-env": "7.0.3",
115
- "cypress": "12.17.4",
115
+ "cypress": "13.3.2",
116
116
  "cz-conventional-changelog": "3.3.0",
117
117
  "env-linter": "1.0.0",
118
118
  "eslint": "8.46.0",
119
- "eslint-plugin-import": "2.28.1",
119
+ "eslint-plugin-import": "2.29.0",
120
120
  "extend": "3.0.2",
121
121
  "generator-nitro": "<%= version %>",
122
122
  "gulp": "4.0.2",
123
123
  "html-validate": "7.18.1",
124
124
  "husky": "8.0.3",
125
125
  "license-checker": "25.0.1",
126
- "lighthouse": "11.0.0",
126
+ "lighthouse": "11.2.0",
127
127
  "lint-staged": "14.0.1",<% if (options.themes) { %>
128
128
  "node-sass": "8.0.0",<% } %>
129
- "npm-check-updates": "16.13.0",
129
+ "npm-check-updates": "16.14.6",
130
130
  "npm-run-all": "4.1.5",
131
- "prettier": "3.0.2",
132
- "rimraf": "5.0.1",
133
- "stylelint": "15.10.3",<% if (options.jsCompiler === 'ts') { %>
134
- "typescript": "5.1.6",<% } %>
131
+ "prettier": "3.0.3",
132
+ "rimraf": "5.0.5",
133
+ "stylelint": "15.11.0",<% if (options.jsCompiler === 'ts') { %>
134
+ "typescript": "5.2.2",<% } %>
135
135
  "webpack-cli": "4.10.0",
136
136
  "yo": "4.3.1"
137
137
  },
@@ -12,7 +12,7 @@ const yosay = require('yosay');
12
12
  const path = require('path');
13
13
  const fs = require('fs');
14
14
  const gitconfig = require('git-config');
15
- const glob = require('glob');
15
+ const { globSync } = require('glob');
16
16
  const _ = require('lodash');
17
17
 
18
18
  module.exports = class extends Generator {
@@ -171,7 +171,7 @@ module.exports = class extends Generator {
171
171
 
172
172
  const pattern = this._pattern.node[this.options.type];
173
173
  const folder = this.name.replace(/[^A-Za-z0-9-]/g, '');
174
- const files = glob.sync('**/*', { cwd: this.destinationPath(pattern.template), nodir: true, dot: true });
174
+ const files = globSync('**/*', { cwd: this.destinationPath(pattern.template), nodir: true, dot: true, posix: true });
175
175
  const ignores = [
176
176
  // files to ignore
177
177
  '.DS_Store',
@@ -6,7 +6,7 @@ const Generator = require('yeoman-generator');
6
6
  const yosay = require('yosay');
7
7
  const path = require('path');
8
8
  const fs = require('fs');
9
- const glob = require('glob');
9
+ const { globSync } = require('glob');
10
10
  const _ = require('lodash');
11
11
 
12
12
  module.exports = class extends Generator {
@@ -43,7 +43,7 @@ module.exports = class extends Generator {
43
43
 
44
44
  // eslint-disable-next-line global-require
45
45
  const config = require('config');
46
- const files = glob.sync('**/*', { cwd: this._tplRoot, nodir: true, dot: true });
46
+ const files = globSync('**/*', { cwd: this._tplRoot, nodir: true, dot: true, posix: true });
47
47
 
48
48
  const tplFiles = [
49
49
  // files to process with copyTpl
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "generator-nitro",
3
- "version": "8.0.0",
3
+ "version": "8.1.1",
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": ">=16.13.0 <19",
10
- "npm": ">=8.1.0 <10"
9
+ "node": ">=16.13.0 <21",
10
+ "npm": ">=8.1.0 <11"
11
11
  },
12
12
  "main": "generators/app/index.js",
13
13
  "scripts": {
@@ -37,7 +37,7 @@
37
37
  "config": "3.3.9",
38
38
  "find-git-root": "1.0.4",
39
39
  "git-config": "0.0.7",
40
- "glob": "8.1.0",
40
+ "glob": "10.3.10",
41
41
  "got": "11.8.5",
42
42
  "lodash": "4.17.21",
43
43
  "yeoman-generator": "5.9.0",
@@ -47,9 +47,9 @@
47
47
  "@merkle-open/eslint-config": "3.0.0",
48
48
  "ejs": "3.1.9",
49
49
  "eslint": "8.46.0",
50
- "eslint-plugin-import": "2.28.1",
50
+ "eslint-plugin-import": "2.29.0",
51
51
  "fs-extra": "11.1.1",
52
- "jasmine": "4.6.0",
52
+ "jasmine": "5.1.0",
53
53
  "yeoman-assert": "3.1.1",
54
54
  "yeoman-test": "6.3.0"
55
55
  }
@@ -1,44 +0,0 @@
1
- FROM node:10
2
-
3
- # Backstopjs - https://hub.docker.com/r/backstopjs/backstopjs/dockerfile
4
- ENV \
5
- PHANTOMJS_VERSION=2.1.16 \
6
- CASPERJS_VERSION=1.1.4 \
7
- SLIMERJS_VERSION=1.0.0 \
8
- BACKSTOPJS_VERSION=3.8.5 \
9
- # Workaround to fix phantomjs-prebuilt installation errors
10
- # See https://github.com/Medium/phantomjs/issues/707
11
- NPM_CONFIG_UNSAFE_PERM=true
12
-
13
- # Base packages
14
- RUN apt-get update && \
15
- apt-get install -y git sudo software-properties-common
16
-
17
- RUN sudo npm install -g --unsafe-perm=true --allow-root phantomjs-prebuilt@${PHANTOMJS_VERSION}
18
- RUN sudo npm install -g --unsafe-perm=true --allow-root casperjs@${CASPERJS_VERSION}
19
- RUN sudo npm install -g --unsafe-perm=true --allow-root slimerjs@${SLIMERJS_VERSION}
20
- RUN sudo npm install -g --unsafe-perm=true --allow-root backstopjs@${BACKSTOPJS_VERSION}
21
-
22
- RUN wget https://dl-ssl.google.com/linux/linux_signing_key.pub && sudo apt-key add linux_signing_key.pub
23
- RUN sudo add-apt-repository "deb http://dl.google.com/linux/chrome/deb/ stable main"
24
-
25
- RUN apt-get -y update && \
26
- apt-get -y install google-chrome-stable
27
-
28
- RUN apt-get install -y firefox-esr
29
-
30
- # Create app directory
31
- WORKDIR /app
32
-
33
- # Install app dependencies
34
- # A wildcard is used to ensure both package.json AND package-lock.json are copied
35
- COPY package*.json ./
36
- COPY .npmrc ./
37
- RUN npm install --ignore-optional
38
-
39
- # Bundle app source
40
- COPY . .
41
-
42
- # Expose and start server
43
- EXPOSE 8080 8081 3001
44
- CMD [ "npm", "start" ]