Skip to content

Commit

Permalink
v1794: v0.6.15
Browse files Browse the repository at this point in the history
  • Loading branch information
MuTsunTsai committed May 21, 2024
2 parents f46dc00 + 2b8eac9 commit cdc2a36
Show file tree
Hide file tree
Showing 9 changed files with 407 additions and 397 deletions.
11 changes: 7 additions & 4 deletions gulp/tasks/ftp.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async function ftpFactory(folder, additionalGlobs, pipeFactory) {
const pipe = gulp.src(globs, {
base: config.dest.dist,
buffer: false,
dot: true, // Gulp v5, for .htaccess
dot: true, // for .htaccess
encoding: false, // Gulp v5
});
await streamToPromise(
Expand Down Expand Up @@ -90,8 +90,7 @@ gulp.task("cleanPub", () => configGuard() && seriesIf(
() => cleanFactory("bp")
));
gulp.task("uploadPub", () => configGuard() && ftpFactory("bp", [
config.dest.dist + "/.htaccess",
"!**/vue.runtime.global.js", // debug-only
"!**/vue.runtime.global.js", // exclude for production
]));

/**
Expand All @@ -112,12 +111,16 @@ function taskFactory(id) {
.pipe(() => $.replace(/\/\/bpstudio\./g, `//${ftpConfig[id].subdomain}.`))
.pipe(() => $.replace(/Box Pleating Studio/g, ftpConfig[id].title));

const htaccessPipe = lazypipe()
.pipe(() => $.replace(/!bpstudio\./g, `!${ftpConfig[id].subdomain}.`));

return ftpFactory(
ftpConfig[id].folder,
["!**/vue.runtime.global.prod.js"], // production-only
["!**/vue.runtime.global.prod.js"], // exclude for debug
pipe => pipe
.pipe($.if(file => file.basename == "index.htm", htmlPipe()))
.pipe($.if(file => file.basename == "manifest.json", manifestPipe()))
.pipe($.if(file => file.basename == ".htaccess", htaccessPipe()))
);
});
}
Expand Down
23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "box-pleating-studio",
"version": "0.6.14",
"app_version": "1792",
"app_version": "1793",
"description": "Super-complex origami design made easy!",
"keywords": [
"origami",
Expand Down Expand Up @@ -41,30 +41,30 @@
"@mutsuntsai/esbuild-plugin-vue": "^0.1.6",
"@playwright/test": "^1.44.0",
"@stylistic/eslint-plugin": "^1.8.1",
"@swc/core": "^1.5.5",
"@swc/core": "^1.5.7",
"@types/bootstrap": "^5.2.10",
"@types/chai": "^4.3.16",
"@types/gtag.js": "^0.0.19",
"@types/gulp": "^4.0.17",
"@types/gulp-load-plugins": "^0.0.37",
"@types/mocha": "^10.0.6",
"@types/node": "^20.12.11",
"@types/node": "^20.12.12",
"@types/wicg-file-system-access": "^2023.10.5",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"@vue/compiler-sfc": "^3.4.27",
"@vue/eslint-config-typescript": "13.0.0",
"chai": "^5.1.1",
"del": "7.1.0",
"esbuild": "^0.21.2",
"esbuild": "^0.21.3",
"esbuild-ifdef": "^0.2.0",
"esbuild-sass-plugin": "^3.2.0",
"esbuild-sass-plugin": "^3.3.0",
"eslint": "^8.57.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-compat": "^4.2.0",
"eslint-plugin-html": "^8.1.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsdoc": "^48.2.4",
"eslint-plugin-jsdoc": "^48.2.5",
"eslint-plugin-local-rules": "^2.0.1",
"eslint-plugin-mocha": "^10.4.3",
"eslint-plugin-typescript-compat": "^1.0.2",
Expand All @@ -91,7 +91,7 @@
"gulp-vue-ssg": "^1.2.4",
"gulp-workbox": "^1.0.6",
"http-server": "^14.1.1",
"inquirer": "^9.2.20",
"inquirer": "^9.2.22",
"jsdom": "^24.0.0",
"lazypipe": "^1.0.2",
"marked": "^12.0.2",
Expand All @@ -100,10 +100,10 @@
"nyc": "^15.1.0",
"postcss": "^8.4.38",
"postcss-html": "^1.7.0",
"postcss-preset-env": "^9.5.12",
"postcss-preset-env": "^9.5.13",
"require-dir": "^1.2.0",
"resolve": "^1.22.8",
"sass": "^1.77.1",
"sass": "^1.77.2",
"stylelint": "^16.5.0",
"stylelint-config-clean-order": "^5.4.2",
"stylelint-config-recommended-vue": "^1.5.0",
Expand Down Expand Up @@ -138,6 +138,7 @@
"idb-keyval": "^6.2.1",
"jszip": "^3.10.1",
"lzma": "^2.3.2",
"probably-china": "^1.0.0",
"vue": "^3.4.27",
"vue-i18n": "^9.13.1",
"vue-slicksort": "^2.0.5",
Expand Down
Loading

0 comments on commit cdc2a36

Please sign in to comment.