@airfleet/generator-init 0.13.1 → 0.13.4
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/generators/plugin/index.js +5 -4
- package/generators/plugin/templates/assets/admin/scripts/admin.entry.js +0 -1
- package/generators/plugin/templates/assets/admin/styles/{admin.scss → admin.entry.scss} +0 -0
- package/generators/plugin/templates/assets/frontend/scripts/critical.entry.js +0 -1
- package/generators/plugin/templates/assets/frontend/scripts/index.entry.js +0 -2
- package/generators/plugin/templates/assets/frontend/styles/{critical.scss → critical.entry.scss} +0 -0
- package/generators/plugin/templates/assets/frontend/styles/{index.scss → index.entry.scss} +0 -0
- package/generators/plugin/templates/composer.json.ejs +1 -1
- package/generators/plugin/templates/package.json.ejs +4 -4
- package/package.json +1 -1
|
@@ -85,7 +85,7 @@ export default class extends Generator {
|
|
|
85
85
|
name: "pluginNodeVersion",
|
|
86
86
|
message: "What's the required Node version?",
|
|
87
87
|
validate: requiredText("Please enter the Node version"),
|
|
88
|
-
default: ">=
|
|
88
|
+
default: ">=16",
|
|
89
89
|
},
|
|
90
90
|
];
|
|
91
91
|
|
|
@@ -113,14 +113,15 @@ export default class extends Generator {
|
|
|
113
113
|
".vscode/settings.json",
|
|
114
114
|
"acf-json/.gitkeep",
|
|
115
115
|
"assets/admin/scripts/admin.entry.js",
|
|
116
|
-
"assets/admin/styles/admin.scss",
|
|
116
|
+
"assets/admin/styles/admin.entry.scss",
|
|
117
117
|
"assets/frontend/fonts/.gitkeep",
|
|
118
118
|
"assets/frontend/images/.gitkeep",
|
|
119
119
|
"assets/frontend/scripts/critical.entry.js",
|
|
120
120
|
"assets/frontend/scripts/index.entry.js",
|
|
121
|
-
"assets/frontend/styles/critical.scss",
|
|
122
|
-
"assets/frontend/styles/index.scss",
|
|
121
|
+
"assets/frontend/styles/critical.entry.scss",
|
|
122
|
+
"assets/frontend/styles/index.entry.scss",
|
|
123
123
|
"inc/Setup.php.ejs",
|
|
124
|
+
"partials/parcelkeep.entry.js",
|
|
124
125
|
".airfleet-release",
|
|
125
126
|
".editorconfig",
|
|
126
127
|
".env",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../styles/admin.scss";
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../styles/critical.scss";
|
package/generators/plugin/templates/assets/frontend/styles/{critical.scss → critical.entry.scss}
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"description": "<%= answers.pluginDescription %>",
|
|
4
4
|
"version": "<%= answers.pluginVersion %>",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"build": "dotenv -- parcel build --log-level verbose \"./!(dist)/**/*.entry.js\"",
|
|
7
|
-
"start": "dotenv -- parcel serve --hmr-port 1236 --port 1234 --log-level verbose \"./!(dist)/**/*.entry.js\"",
|
|
6
|
+
"build": "dotenv -- parcel build --log-level verbose \"./!(dist)/**/*.entry.{js,scss}\"",
|
|
7
|
+
"start": "dotenv -- parcel serve --hmr-port 1236 --port 1234 --log-level verbose \"./!(dist)/**/*.entry.{js,scss}\"",
|
|
8
8
|
"base:eslint": "eslint assets --ext .js,.jsx --cache --ignore-path .gitignore",
|
|
9
9
|
"base:prettier": "prettier \"**/*.{js,jsx,ts,tsx,json,css,scss,xml,yaml,yml,md}\"",
|
|
10
|
-
"base:stylelint": "stylelint \"**/*.{css,scss}\" --cache --ignore-path .gitignore",
|
|
10
|
+
"base:stylelint": "stylelint \"**/*.{css,scss}\" --cache --ignore-path .gitignore --allow-empty-input",
|
|
11
11
|
"lint": "run-s --continue-on-error lint:*",
|
|
12
12
|
"lint:prettier": "npm run base:prettier -- --check",
|
|
13
13
|
"lint:eslint": "npm run base:eslint",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@airfleet/wordpress-dev": "^0.
|
|
45
|
+
"@airfleet/wordpress-dev": "^1.0.0"
|
|
46
46
|
},
|
|
47
47
|
"browserslist": [
|
|
48
48
|
"defaults",
|