3 Commits

Author SHA1 Message Date
Cooper Dalrymple
33fb0456a1 Fix image encoding issue during packaging 2025-10-29 14:03:28 -05:00
Cooper Dalrymple
79aa3c4a7b Add files into subdirectory of package 2025-10-29 13:53:16 -05:00
Cooper Dalrymple
83a959fe65 Update plugin-framework to fix singleton namespace issue 2025-10-29 13:38:49 -05:00
3 changed files with 34 additions and 5 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
vendor
node_modules
*.zip
ogre-suspension

4
composer.lock generated
View File

@@ -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": [],

View File

@@ -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(