Compare commits
3 Commits
1.0.0
...
33fb0456a1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33fb0456a1 | ||
|
|
79aa3c4a7b | ||
|
|
83a959fe65 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
vendor
|
||||
node_modules
|
||||
*.zip
|
||||
ogre-suspension
|
||||
|
||||
4
composer.lock
generated
4
composer.lock
generated
@@ -12,7 +12,7 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "git@git.cleverogre.com:cleverogre/plugin-framework.git",
|
||||
"reference": "92cc8ca502cf952e8ecf5657f99455e6e2eb52bc"
|
||||
"reference": "5e2937c2bbb7bf2ea51e575e5655f5056956edfe"
|
||||
},
|
||||
"require": {
|
||||
"froger-me/wp-package-updater": "^1.4.0",
|
||||
@@ -53,7 +53,7 @@
|
||||
"Plugin",
|
||||
"WordPress"
|
||||
],
|
||||
"time": "2025-10-29T17:25:50+00:00"
|
||||
"time": "2025-10-29T18:37:43+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
|
||||
34
gulpfile.js
34
gulpfile.js
@@ -16,7 +16,10 @@ const NAME = path.basename(__dirname);
|
||||
// Clean Tasks
|
||||
|
||||
gulp.task('clean-package', () => {
|
||||
return gulp.src(`${NAME}.zip`, {
|
||||
return gulp.src([
|
||||
`${NAME}.zip`,
|
||||
`${NAME}`
|
||||
], {
|
||||
read: false,
|
||||
allowEmpty: true,
|
||||
}).pipe(clean());
|
||||
@@ -31,7 +34,7 @@ gulp.task(
|
||||
|
||||
// Package Tasks
|
||||
|
||||
gulp.task('package', () => {
|
||||
gulp.task('package-copy', () => {
|
||||
return gulp.src([
|
||||
'assets/**/*',
|
||||
'inc/**/*',
|
||||
@@ -43,13 +46,38 @@ gulp.task('package', () => {
|
||||
'readme.txt'
|
||||
], {
|
||||
base: './',
|
||||
allowEmpty: true
|
||||
allowEmpty: true,
|
||||
encoding: false,
|
||||
})
|
||||
.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(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
|
||||
|
||||
gulp.task(
|
||||
|
||||
Reference in New Issue
Block a user