Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 551ee45db1 | |||
|
|
c48fdd86ed | ||
|
|
33fb0456a1 | ||
|
|
79aa3c4a7b | ||
|
|
83a959fe65 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
vendor
|
vendor
|
||||||
node_modules
|
node_modules
|
||||||
*.zip
|
*.zip
|
||||||
|
ogre-suspension
|
||||||
|
|||||||
6
composer.lock
generated
6
composer.lock
generated
@@ -12,7 +12,7 @@
|
|||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git@git.cleverogre.com:cleverogre/plugin-framework.git",
|
"url": "git@git.cleverogre.com:cleverogre/plugin-framework.git",
|
||||||
"reference": "92cc8ca502cf952e8ecf5657f99455e6e2eb52bc"
|
"reference": "a9881915ebec7c4d532b3418603fa4a8a9667c5f"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"froger-me/wp-package-updater": "^1.4.0",
|
"froger-me/wp-package-updater": "^1.4.0",
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
"Plugin",
|
"Plugin",
|
||||||
"WordPress"
|
"WordPress"
|
||||||
],
|
],
|
||||||
"time": "2025-10-29T17:25:50+00:00"
|
"time": "2025-11-18T23:12:55+00:00"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"packages-dev": [],
|
"packages-dev": [],
|
||||||
@@ -66,5 +66,5 @@
|
|||||||
"prefer-lowest": false,
|
"prefer-lowest": false,
|
||||||
"platform": {},
|
"platform": {},
|
||||||
"platform-dev": {},
|
"platform-dev": {},
|
||||||
"plugin-api-version": "2.6.0"
|
"plugin-api-version": "2.9.0"
|
||||||
}
|
}
|
||||||
|
|||||||
34
gulpfile.js
34
gulpfile.js
@@ -16,7 +16,10 @@ const NAME = path.basename(__dirname);
|
|||||||
// Clean Tasks
|
// Clean Tasks
|
||||||
|
|
||||||
gulp.task('clean-package', () => {
|
gulp.task('clean-package', () => {
|
||||||
return gulp.src(`${NAME}.zip`, {
|
return gulp.src([
|
||||||
|
`${NAME}.zip`,
|
||||||
|
`${NAME}`
|
||||||
|
], {
|
||||||
read: false,
|
read: false,
|
||||||
allowEmpty: true,
|
allowEmpty: true,
|
||||||
}).pipe(clean());
|
}).pipe(clean());
|
||||||
@@ -31,7 +34,7 @@ gulp.task(
|
|||||||
|
|
||||||
// Package Tasks
|
// Package Tasks
|
||||||
|
|
||||||
gulp.task('package', () => {
|
gulp.task('package-copy', () => {
|
||||||
return gulp.src([
|
return gulp.src([
|
||||||
'assets/**/*',
|
'assets/**/*',
|
||||||
'inc/**/*',
|
'inc/**/*',
|
||||||
@@ -43,13 +46,38 @@ gulp.task('package', () => {
|
|||||||
'readme.txt'
|
'readme.txt'
|
||||||
], {
|
], {
|
||||||
base: './',
|
base: './',
|
||||||
allowEmpty: true
|
allowEmpty: true,
|
||||||
|
encoding: false,
|
||||||
})
|
})
|
||||||
.pipe(filter((file) => !file.path.includes('/node_modules')))
|
.pipe(filter((file) => !file.path.includes('/node_modules')))
|
||||||
|
.pipe(gulp.dest(`./${NAME}/`));
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('package-zip', () => {
|
||||||
|
return gulp.src(`${NAME}/**/*`, {
|
||||||
|
base: './',
|
||||||
|
encoding: false,
|
||||||
|
})
|
||||||
.pipe(zip(`${NAME}.zip`))
|
.pipe(zip(`${NAME}.zip`))
|
||||||
.pipe(gulp.dest('./'));
|
.pipe(gulp.dest('./'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gulp.task('package-clean', () => {
|
||||||
|
return gulp.src(`${NAME}`, {
|
||||||
|
read: false,
|
||||||
|
allowEmpty: true,
|
||||||
|
}).pipe(clean());
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task(
|
||||||
|
'package',
|
||||||
|
gulp.series(
|
||||||
|
'package-copy',
|
||||||
|
'package-zip',
|
||||||
|
'package-clean'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
// Default Tasks
|
// Default Tasks
|
||||||
|
|
||||||
gulp.task(
|
gulp.task(
|
||||||
|
|||||||
Reference in New Issue
Block a user