@airfleet/generator-init 0.31.0 → 0.33.0
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 +23 -0
- package/generators/plugin/templates/.airfleet-license.ejs +1 -0
- package/generators/plugin/templates/.airfleet-visible.ejs +1 -0
- package/generators/plugin/templates/.github/workflows/release-plugin.yml +6 -3
- package/generators/plugin/templates/.github/workflows/test-wordpress.yml +0 -2
- package/generators/project/templates/.deployignore +4 -0
- package/generators/project/templates/.github/workflows/test-wordpress-root-lightyear.yml +0 -2
- package/generators/project-plugin/index.js +2 -1
- package/generators/project-plugin/templates/.deployignore +54 -0
- package/package.json +1 -1
|
@@ -114,6 +114,19 @@ export default class extends Generator {
|
|
|
114
114
|
choices: ["No", "Frontend", "Admin", "Both"],
|
|
115
115
|
default: "No",
|
|
116
116
|
},
|
|
117
|
+
{
|
|
118
|
+
type: "list",
|
|
119
|
+
name: "license",
|
|
120
|
+
message: "License",
|
|
121
|
+
choices: ["essential", "premium", "support"],
|
|
122
|
+
default: "essential",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
type: "confirm",
|
|
126
|
+
name: "visible",
|
|
127
|
+
message: "Make the plugin visible in Plugin Manager?",
|
|
128
|
+
default: true,
|
|
129
|
+
},
|
|
117
130
|
];
|
|
118
131
|
|
|
119
132
|
this.answers = await this.prompt(prompts);
|
|
@@ -233,6 +246,16 @@ export default class extends Generator {
|
|
|
233
246
|
destination: ".vscode/airfleet.code-snippets",
|
|
234
247
|
isEnabled: true,
|
|
235
248
|
},
|
|
249
|
+
{
|
|
250
|
+
template: ".airfleet-license.ejs",
|
|
251
|
+
destination: ".airfleet-license",
|
|
252
|
+
isEnabled: true,
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
template: ".airfleet-visible.ejs",
|
|
256
|
+
destination: ".airfleet-visible",
|
|
257
|
+
isEnabled: true,
|
|
258
|
+
},
|
|
236
259
|
];
|
|
237
260
|
|
|
238
261
|
copyTemplates(this, templates, this.data);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<%= answers.license %>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<%= answers.visible %>
|
|
@@ -12,6 +12,8 @@ jobs:
|
|
|
12
12
|
steps:
|
|
13
13
|
- name: 🚚 Get latest code
|
|
14
14
|
uses: actions/checkout@v3
|
|
15
|
+
with:
|
|
16
|
+
token: ${{ secrets.CI_WRITE_TOKEN }}
|
|
15
17
|
|
|
16
18
|
- name: ⚙️ Setup PHP
|
|
17
19
|
uses: shivammathur/setup-php@v2
|
|
@@ -19,7 +21,7 @@ jobs:
|
|
|
19
21
|
php-version: "8.2"
|
|
20
22
|
ini-values: short_open_tag=1
|
|
21
23
|
env:
|
|
22
|
-
GITHUB_TOKEN: ${{ secrets.
|
|
24
|
+
GITHUB_TOKEN: ${{ secrets.CI_WRITE_TOKEN }}
|
|
23
25
|
|
|
24
26
|
- name: ⚙️ Setup Node
|
|
25
27
|
uses: actions/setup-node@v3
|
|
@@ -95,6 +97,7 @@ jobs:
|
|
|
95
97
|
--hooks.before:release='cp -R $RUNNER_TEMP/.release-dist dist/.release-dist'
|
|
96
98
|
--git.pushArgs='--follow-tags'
|
|
97
99
|
--git.pushArgs='-o ci.skip'
|
|
100
|
+
--git.commitMessage='Release ${version} [skip ci]'
|
|
98
101
|
--no-npm.publish
|
|
99
102
|
--github.release
|
|
100
103
|
--github.assets='dist/.release-dist/**/*'
|
|
@@ -106,7 +109,7 @@ jobs:
|
|
|
106
109
|
--plugins.@release-it/bumper.out.file=*.php
|
|
107
110
|
--plugins.@release-it/bumper.out.type=text/php
|
|
108
111
|
env:
|
|
109
|
-
GITHUB_TOKEN: ${{ secrets.
|
|
112
|
+
GITHUB_TOKEN: ${{ secrets.CI_WRITE_TOKEN }}
|
|
110
113
|
|
|
111
114
|
- name: ⚒️ Build plugin.json
|
|
112
115
|
run: |
|
|
@@ -190,4 +193,4 @@ jobs:
|
|
|
190
193
|
- name: 🚀 Upload updated plugins list to AWS
|
|
191
194
|
run: |
|
|
192
195
|
BUCKET="${{ secrets.AWS_S3_BUCKET }}"
|
|
193
|
-
aws s3 cp $RUNNER_TEMP/plugins_updated.json s3://$BUCKET/plugins.json
|
|
196
|
+
aws s3 cp $RUNNER_TEMP/plugins_updated.json s3://$BUCKET/plugins.json
|
|
@@ -12,11 +12,14 @@
|
|
|
12
12
|
**/.airfleet-release
|
|
13
13
|
**/.deployignore
|
|
14
14
|
**/.editorconfig
|
|
15
|
+
.editorconfig
|
|
15
16
|
**/.env
|
|
16
17
|
**/.eslintcache
|
|
17
18
|
**/.eslintrc.js
|
|
18
19
|
**/.gitattributes
|
|
20
|
+
.gitattributes
|
|
19
21
|
**/.gitignore
|
|
22
|
+
.gitignore
|
|
20
23
|
**/.gitkeep
|
|
21
24
|
**/.gitlab-ci.yml
|
|
22
25
|
**/.parcelrc
|
|
@@ -39,4 +42,5 @@
|
|
|
39
42
|
**/phpcs.xml
|
|
40
43
|
**/README
|
|
41
44
|
**/README.md
|
|
45
|
+
README.md
|
|
42
46
|
**/yarn.lock
|
|
@@ -174,7 +174,8 @@ export default class extends Generator {
|
|
|
174
174
|
"package.json.ejs",
|
|
175
175
|
"phpcs.xml.ejs",
|
|
176
176
|
"README.md.ejs",
|
|
177
|
-
"scoper.custom.php.ejs",
|
|
177
|
+
"scoper.custom.php.ejs",
|
|
178
|
+
".deployignore",
|
|
178
179
|
];
|
|
179
180
|
const templates = [
|
|
180
181
|
...mapFilesToTemplates(files),
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
**/.cache-loader/**
|
|
2
|
+
**/.composer-cache/**
|
|
3
|
+
**/.husky/**
|
|
4
|
+
**/.imagemin-cache/**
|
|
5
|
+
**/.gitlab/**
|
|
6
|
+
**/.github/**
|
|
7
|
+
**/.parcel-cache/**
|
|
8
|
+
**/.vscode/**
|
|
9
|
+
**/.yarn/**
|
|
10
|
+
**/node_modules/**
|
|
11
|
+
**/*.scss
|
|
12
|
+
**/.airfleet-release
|
|
13
|
+
.airfleet-release
|
|
14
|
+
**/.deployignore
|
|
15
|
+
**/.editorconfig
|
|
16
|
+
.editorconfig
|
|
17
|
+
**/.env
|
|
18
|
+
.env
|
|
19
|
+
**/.eslintcache
|
|
20
|
+
**/.eslintrc.js
|
|
21
|
+
**/.gitattributes
|
|
22
|
+
.gitattributes
|
|
23
|
+
**/.parcelrc
|
|
24
|
+
.parcelrc
|
|
25
|
+
**/.prettierignore
|
|
26
|
+
.prettierignore
|
|
27
|
+
**/CHANGELOG.md
|
|
28
|
+
CHANGELOG.md
|
|
29
|
+
**/LICENSE
|
|
30
|
+
LICENSE
|
|
31
|
+
**/README.md
|
|
32
|
+
README.md
|
|
33
|
+
**/.gitignore
|
|
34
|
+
.gitignore
|
|
35
|
+
**/package.json
|
|
36
|
+
package.json
|
|
37
|
+
**/composer-scoped.json
|
|
38
|
+
composer-scoped.json
|
|
39
|
+
**/composer-scoped.lock
|
|
40
|
+
composer-scoped.lock
|
|
41
|
+
**/composer.json
|
|
42
|
+
composer.json
|
|
43
|
+
**/composer.lock
|
|
44
|
+
composer.lock
|
|
45
|
+
**/package-lock.json
|
|
46
|
+
package-lock.json
|
|
47
|
+
**/phpcs.xml
|
|
48
|
+
phpcs.xml
|
|
49
|
+
**/scoper.custom.php
|
|
50
|
+
scoper.custom.php
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|