@vuepress/plugin-redirect 2.0.0-rc.63 → 2.0.0-rc.65

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/lib/cli/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{removeEndingSlash as f,removeLeadingSlash as m}from"@vuepress/helper";import{cac as b}from"cac";import{resolveCliAppConfig as v,resolveUserConfigPath as y,resolveUserConfigConventionalPath as C,loadUserConfig as j,resolveAppConfig as w,transformUserConfigToPlugin as x}from"vuepress/cli";import{createBuildApp as $}from"vuepress/core";import{logger as n,fs as r,path as s}from"vuepress/utils";var P="@vuepress/plugin-redirect",k="2.0.0-rc.63",S="VuePress plugin - redirect",A=["vuepress-plugin","vuepress","plugin","redirect"],H="https://ecosystem.vuejs.press/plugins/tools/redirect.html",T={url:"https://github.com/vuepress/ecosystem/issues"},U={type:"git",url:"git+https://github.com/vuepress/ecosystem.git",directory:"plugins/tools/plugin-redirect"},D="MIT",E={name:"Mr.Hope",email:"mister-hope@outlook.com",url:"https://mister-hope.com"},V="module",M={".":"./lib/node/index.js","./client":"./lib/client/index.js","./package.json":"./package.json"},R="./lib/node/index.js",F="./lib/node/index.d.ts",G={"vp-redirect":"./lib/cli/index.js"},I=["lib"],L={build:"tsc -b tsconfig.build.json",bundle:"rollup -c rollup.config.ts --configPlugin esbuild",clean:"rimraf --glob ./lib ./*.tsbuildinfo",style:"sass src:lib --embed-sources --style=compressed"},N={"@vuepress/helper":"workspace:*","@vueuse/core":"^12.0.0",cac:"^6.7.14",vue:"^3.5.13"},q={vuepress:"2.0.0-rc.18"},z={access:"public"},B={name:P,version:k,description:S,keywords:A,homepage:H,bugs:T,repository:U,license:D,author:E,type:V,exports:M,main:R,types:F,bin:G,files:I,scripts:L,dependencies:N,peerDependencies:q,publishConfig:z};const O=i=>`<!doctype html>
2
+ import{removeEndingSlash as f,removeLeadingSlash as m}from"@vuepress/helper";import{cac as b}from"cac";import{resolveCliAppConfig as v,resolveUserConfigPath as y,resolveUserConfigConventionalPath as C,loadUserConfig as j,resolveAppConfig as w,transformUserConfigToPlugin as x}from"vuepress/cli";import{createBuildApp as $}from"vuepress/core";import{logger as n,fs as r,path as s}from"vuepress/utils";var P="@vuepress/plugin-redirect",k="2.0.0-rc.65",S="VuePress plugin - redirect",A=["vuepress-plugin","vuepress","plugin","redirect"],H="https://ecosystem.vuejs.press/plugins/tools/redirect.html",T={url:"https://github.com/vuepress/ecosystem/issues"},U={type:"git",url:"git+https://github.com/vuepress/ecosystem.git",directory:"plugins/tools/plugin-redirect"},D="MIT",E={name:"Mr.Hope",email:"mister-hope@outlook.com",url:"https://mister-hope.com"},V="module",M={".":"./lib/node/index.js","./client":"./lib/client/index.js","./package.json":"./package.json"},R="./lib/node/index.js",F="./lib/node/index.d.ts",G={"vp-redirect":"./lib/cli/index.js"},I=["lib"],L={build:"tsc -b tsconfig.build.json",bundle:"rollup -c rollup.config.ts --configPlugin esbuild",clean:"rimraf --glob ./lib ./*.tsbuildinfo",style:"sass src:lib --embed-sources --style=compressed"},N={"@vuepress/helper":"workspace:*","@vueuse/core":"^12.0.0",cac:"^6.7.14",vue:"^3.5.13"},q={vuepress:"2.0.0-rc.18"},z={access:"public"},B={name:P,version:k,description:S,keywords:A,homepage:H,bugs:T,repository:U,license:D,author:E,type:V,exports:M,main:R,types:F,bin:G,files:I,scripts:L,dependencies:N,peerDependencies:q,publishConfig:z};const O=i=>`<!doctype html>
3
3
  <html lang="en">
4
4
  <head>
5
5
  <meta charset="UTF-8">
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../package.json","../../src/node/generate/getRedirectHTML.ts","../../src/cli/index.ts"],"sourcesContent":["{\n \"name\": \"@vuepress/plugin-redirect\",\n \"version\": \"2.0.0-rc.63\",\n \"description\": \"VuePress plugin - redirect\",\n \"keywords\": [\n \"vuepress-plugin\",\n \"vuepress\",\n \"plugin\",\n \"redirect\"\n ],\n \"homepage\": \"https://ecosystem.vuejs.press/plugins/tools/redirect.html\",\n \"bugs\": {\n \"url\": \"https://github.com/vuepress/ecosystem/issues\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/vuepress/ecosystem.git\",\n \"directory\": \"plugins/tools/plugin-redirect\"\n },\n \"license\": \"MIT\",\n \"author\": {\n \"name\": \"Mr.Hope\",\n \"email\": \"mister-hope@outlook.com\",\n \"url\": \"https://mister-hope.com\"\n },\n \"type\": \"module\",\n \"exports\": {\n \".\": \"./lib/node/index.js\",\n \"./client\": \"./lib/client/index.js\",\n \"./package.json\": \"./package.json\"\n },\n \"main\": \"./lib/node/index.js\",\n \"types\": \"./lib/node/index.d.ts\",\n \"bin\": {\n \"vp-redirect\": \"./lib/cli/index.js\"\n },\n \"files\": [\n \"lib\"\n ],\n \"scripts\": {\n \"build\": \"tsc -b tsconfig.build.json\",\n \"bundle\": \"rollup -c rollup.config.ts --configPlugin esbuild\",\n \"clean\": \"rimraf --glob ./lib ./*.tsbuildinfo\",\n \"style\": \"sass src:lib --embed-sources --style=compressed\"\n },\n \"dependencies\": {\n \"@vuepress/helper\": \"workspace:*\",\n \"@vueuse/core\": \"^12.0.0\",\n \"cac\": \"^6.7.14\",\n \"vue\": \"^3.5.13\"\n },\n \"peerDependencies\": {\n \"vuepress\": \"2.0.0-rc.18\"\n },\n \"publishConfig\": {\n \"access\": \"public\"\n }\n}\n","export const getRedirectHTML = (redirectUrl: string): string => `<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"robots\" content=\"noindex\">\n <meta http-equiv=\"refresh\" content=\"0; url=${redirectUrl}\">\n <link rel=\"canonical\" href=\"${redirectUrl}\">\n <title>Redirecting...</title>\n <script>\n const anchor = window.location.hash.substring(1);\n location.href = \\`${redirectUrl}\\${anchor? \\`#\\${anchor}\\`: \"\"}\\`;\n </script>\n</head>\n<body>\n <p>Redirecting...</p>\n</body>\n</html>\n`\n","#!/usr/bin/env node\nimport { removeEndingSlash, removeLeadingSlash } from '@vuepress/helper'\nimport { cac } from 'cac'\nimport {\n loadUserConfig,\n resolveAppConfig,\n resolveCliAppConfig,\n resolveUserConfigConventionalPath,\n resolveUserConfigPath,\n transformUserConfigToPlugin,\n} from 'vuepress/cli'\nimport { createBuildApp } from 'vuepress/core'\nimport { fs, logger, path } from 'vuepress/utils'\nimport pkg from '../../package.json' with { type: 'json' }\nimport { getRedirectHTML } from '../node/generate/getRedirectHTML.js'\n\ninterface RedirectCommandOptions {\n hostname: string\n output?: string\n config?: string\n cache: string\n temp?: string\n cleanCache?: boolean\n cleanTemp?: boolean\n}\n\nconst cli = cac('vp-redirect')\n\ncli\n .command(\n 'generate [source-dir]',\n 'Generate redirect site using VuePress project under source folder',\n )\n .option(\n '--hostname <hostname>',\n 'Hostname to redirect to (E.g.: https://new.example.com/)',\n { default: '/' },\n )\n .option('-c, --config <config>', 'Set path to config file')\n .option(\n '-o, --output <output>',\n 'Set the output directory (default: .vuepress/redirect)',\n )\n .option('--cache <cache>', 'Set the directory of the cache files')\n .option('-t, --temp <temp>', 'Set the directory of the temporary files')\n .option('--clean-cache', 'Clean the cache files before generation')\n .option('--clean-temp', 'Clean the temporary files before generation')\n .action(async (sourceDir: string, commandOptions: RedirectCommandOptions) => {\n if (!sourceDir) {\n cli.outputHelp()\n return\n }\n\n // ensure NODE_ENV is set\n process.env.NODE_ENV ??= 'production'\n\n // resolve app config from cli options\n const cliAppConfig = resolveCliAppConfig(sourceDir, {})\n\n // resolve user config file\n const userConfigPath = commandOptions.config\n ? resolveUserConfigPath(commandOptions.config)\n : resolveUserConfigConventionalPath(cliAppConfig.source)\n\n const { userConfig } = await loadUserConfig(userConfigPath)\n\n // resolve the final app config to use\n const appConfig = resolveAppConfig({\n defaultAppConfig: {},\n cliAppConfig,\n userConfig,\n })\n\n if (appConfig === null) return\n\n // create vuepress app\n const app = createBuildApp(appConfig)\n\n // use user-config plugin\n app.use(transformUserConfigToPlugin(userConfig, cliAppConfig.source))\n\n // clean temp and cache\n if (commandOptions.cleanTemp === true) {\n logger.info('Cleaning temp...')\n await fs.remove(app.dir.temp())\n }\n if (commandOptions.cleanCache === true) {\n logger.info('Cleaning cache...')\n await fs.remove(app.dir.cache())\n }\n\n const outputFolder = commandOptions.output\n ? path.join(process.cwd(), commandOptions.output)\n : path.join(app.dir.source(), '.vuepress', 'redirect')\n\n // empty output directory\n await fs.emptyDir(outputFolder)\n\n // initialize vuepress app to get pages\n logger.info('Initializing VuePress and preparing data...')\n\n // initialize vuepress app to get pages\n await app.init()\n\n logger.info('Generating redirect pages...')\n\n // redirect all pages\n await Promise.all(\n app.pages.map((page) => {\n const redirectUrl = `${removeEndingSlash(commandOptions.hostname)}${\n app.options.base\n }${removeLeadingSlash(page.path)}`\n const destLocation = path.join(\n outputFolder,\n removeLeadingSlash(page.path.replace(/\\/$/, '/index.html')),\n )\n\n return fs\n .ensureDir(path.dirname(destLocation))\n .then(() => fs.writeFile(destLocation, getRedirectHTML(redirectUrl)))\n }),\n )\n })\n\ncli.command('').action(() => {\n cli.outputHelp()\n})\n\ncli.help()\ncli.version(pkg.version)\n\ncli.parse()\n"],"names":["name","version","description","keywords","homepage","bugs","repository","license","author","type","exports","main","types","bin","files","scripts","dependencies","peerDependencies","publishConfig","package_default","getRedirectHTML","redirectUrl","cli","cac","sourceDir","commandOptions","cliAppConfig","resolveCliAppConfig","userConfigPath","resolveUserConfigPath","resolveUserConfigConventionalPath","userConfig","loadUserConfig","appConfig","resolveAppConfig","app","createBuildApp","transformUserConfigToPlugin","logger","fs","outputFolder","path","page","removeEndingSlash","removeLeadingSlash","destLocation","pkg"],"mappings":";gZACE,IAAAA,EAAQ,4BACRC,EAAW,cACXC,EAAe,6BACfC,EAAY,CACV,kBACA,WACA,SACA,UACF,EACAC,EAAY,4DACZC,EAAQ,CACN,IAAO,8CACT,EACAC,EAAc,CACZ,KAAQ,MACR,IAAO,gDACP,UAAa,+BACf,EACAC,EAAW,MACXC,EAAU,CAC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AAO,IAAM,CAC3BA,EAAI,WACN,CAAA,CAAC,EAEDA,EAAI,KAAK,EACTA,EAAI,QAAQwB,EAAI,OAAO,EAEvBxB,EAAI,MAAM"}
1
+ {"version":3,"file":"index.js","sources":["../../package.json","../../src/node/generate/getRedirectHTML.ts","../../src/cli/index.ts"],"sourcesContent":["{\n \"name\": \"@vuepress/plugin-redirect\",\n \"version\": \"2.0.0-rc.65\",\n \"description\": \"VuePress plugin - redirect\",\n \"keywords\": [\n \"vuepress-plugin\",\n \"vuepress\",\n \"plugin\",\n \"redirect\"\n ],\n \"homepage\": \"https://ecosystem.vuejs.press/plugins/tools/redirect.html\",\n \"bugs\": {\n \"url\": \"https://github.com/vuepress/ecosystem/issues\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/vuepress/ecosystem.git\",\n \"directory\": \"plugins/tools/plugin-redirect\"\n },\n \"license\": \"MIT\",\n \"author\": {\n \"name\": \"Mr.Hope\",\n \"email\": \"mister-hope@outlook.com\",\n \"url\": \"https://mister-hope.com\"\n },\n \"type\": \"module\",\n \"exports\": {\n \".\": \"./lib/node/index.js\",\n \"./client\": \"./lib/client/index.js\",\n \"./package.json\": \"./package.json\"\n },\n \"main\": \"./lib/node/index.js\",\n \"types\": \"./lib/node/index.d.ts\",\n \"bin\": {\n \"vp-redirect\": \"./lib/cli/index.js\"\n },\n \"files\": [\n \"lib\"\n ],\n \"scripts\": {\n \"build\": \"tsc -b tsconfig.build.json\",\n \"bundle\": \"rollup -c rollup.config.ts --configPlugin esbuild\",\n \"clean\": \"rimraf --glob ./lib ./*.tsbuildinfo\",\n \"style\": \"sass src:lib --embed-sources --style=compressed\"\n },\n \"dependencies\": {\n \"@vuepress/helper\": \"workspace:*\",\n \"@vueuse/core\": \"^12.0.0\",\n \"cac\": \"^6.7.14\",\n \"vue\": \"^3.5.13\"\n },\n \"peerDependencies\": {\n \"vuepress\": \"2.0.0-rc.18\"\n },\n \"publishConfig\": {\n \"access\": \"public\"\n }\n}\n","export const getRedirectHTML = (redirectUrl: string): string => `<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"robots\" content=\"noindex\">\n <meta http-equiv=\"refresh\" content=\"0; url=${redirectUrl}\">\n <link rel=\"canonical\" href=\"${redirectUrl}\">\n <title>Redirecting...</title>\n <script>\n const anchor = window.location.hash.substring(1);\n location.href = \\`${redirectUrl}\\${anchor? \\`#\\${anchor}\\`: \"\"}\\`;\n </script>\n</head>\n<body>\n <p>Redirecting...</p>\n</body>\n</html>\n`\n","#!/usr/bin/env node\nimport { removeEndingSlash, removeLeadingSlash } from '@vuepress/helper'\nimport { cac } from 'cac'\nimport {\n loadUserConfig,\n resolveAppConfig,\n resolveCliAppConfig,\n resolveUserConfigConventionalPath,\n resolveUserConfigPath,\n transformUserConfigToPlugin,\n} from 'vuepress/cli'\nimport { createBuildApp } from 'vuepress/core'\nimport { fs, logger, path } from 'vuepress/utils'\nimport pkg from '../../package.json' with { type: 'json' }\nimport { getRedirectHTML } from '../node/generate/getRedirectHTML.js'\n\ninterface RedirectCommandOptions {\n hostname: string\n output?: string\n config?: string\n cache: string\n temp?: string\n cleanCache?: boolean\n cleanTemp?: boolean\n}\n\nconst cli = cac('vp-redirect')\n\ncli\n .command(\n 'generate [source-dir]',\n 'Generate redirect site using VuePress project under source folder',\n )\n .option(\n '--hostname <hostname>',\n 'Hostname to redirect to (E.g.: https://new.example.com/)',\n { default: '/' },\n )\n .option('-c, --config <config>', 'Set path to config file')\n .option(\n '-o, --output <output>',\n 'Set the output directory (default: .vuepress/redirect)',\n )\n .option('--cache <cache>', 'Set the directory of the cache files')\n .option('-t, --temp <temp>', 'Set the directory of the temporary files')\n .option('--clean-cache', 'Clean the cache files before generation')\n .option('--clean-temp', 'Clean the temporary files before generation')\n .action(async (sourceDir: string, commandOptions: RedirectCommandOptions) => {\n if (!sourceDir) {\n cli.outputHelp()\n return\n }\n\n // ensure NODE_ENV is set\n process.env.NODE_ENV ??= 'production'\n\n // resolve app config from cli options\n const cliAppConfig = resolveCliAppConfig(sourceDir, {})\n\n // resolve user config file\n const userConfigPath = commandOptions.config\n ? resolveUserConfigPath(commandOptions.config)\n : resolveUserConfigConventionalPath(cliAppConfig.source)\n\n const { userConfig } = await loadUserConfig(userConfigPath)\n\n // resolve the final app config to use\n const appConfig = resolveAppConfig({\n defaultAppConfig: {},\n cliAppConfig,\n userConfig,\n })\n\n if (appConfig === null) return\n\n // create vuepress app\n const app = createBuildApp(appConfig)\n\n // use user-config plugin\n app.use(transformUserConfigToPlugin(userConfig, cliAppConfig.source))\n\n // clean temp and cache\n if (commandOptions.cleanTemp === true) {\n logger.info('Cleaning temp...')\n await fs.remove(app.dir.temp())\n }\n if (commandOptions.cleanCache === true) {\n logger.info('Cleaning cache...')\n await fs.remove(app.dir.cache())\n }\n\n const outputFolder = commandOptions.output\n ? path.join(process.cwd(), commandOptions.output)\n : path.join(app.dir.source(), '.vuepress', 'redirect')\n\n // empty output directory\n await fs.emptyDir(outputFolder)\n\n // initialize vuepress app to get pages\n logger.info('Initializing VuePress and preparing data...')\n\n // initialize vuepress app to get pages\n await app.init()\n\n logger.info('Generating redirect pages...')\n\n // redirect all pages\n await Promise.all(\n app.pages.map((page) => {\n const redirectUrl = `${removeEndingSlash(commandOptions.hostname)}${\n app.options.base\n }${removeLeadingSlash(page.path)}`\n const destLocation = path.join(\n outputFolder,\n removeLeadingSlash(page.path.replace(/\\/$/, '/index.html')),\n )\n\n return fs\n .ensureDir(path.dirname(destLocation))\n .then(() => fs.writeFile(destLocation, getRedirectHTML(redirectUrl)))\n }),\n )\n })\n\ncli.command('').action(() => {\n cli.outputHelp()\n})\n\ncli.help()\ncli.version(pkg.version)\n\ncli.parse()\n"],"names":["name","version","description","keywords","homepage","bugs","repository","license","author","type","exports","main","types","bin","files","scripts","dependencies","peerDependencies","publishConfig","package_default","getRedirectHTML","redirectUrl","cli","cac","sourceDir","commandOptions","cliAppConfig","resolveCliAppConfig","userConfigPath","resolveUserConfigPath","resolveUserConfigConventionalPath","userConfig","loadUserConfig","appConfig","resolveAppConfig","app","createBuildApp","transformUserConfigToPlugin","logger","fs","outputFolder","path","page","removeEndingSlash","removeLeadingSlash","destLocation","pkg"],"mappings":";gZACE,IAAAA,EAAQ,4BACRC,EAAW,cACXC,EAAe,6BACfC,EAAY,CACV,kBACA,WACA,SACA,UACF,EACAC,EAAY,4DACZC,EAAQ,CACN,IAAO,8CACT,EACAC,EAAc,CACZ,KAAQ,MACR,IAAO,gDACP,UAAa,+BACf,EACAC,EAAW,MACXC,EAAU,CACR,KAAQ,UACR,MAAS,0BACT,IAAO,yBACT,EACAC,EAAQ,SACRC,EAAW,CACT,IAAK,sBACL,WAAY,wBACZ,iBAAkB,gBACpB,EACAC,EAAQ,sBACRC,EAAS,wBACTC,EAAO,CACL,cAAe,oBACjB,EACAC,EAAS,CACP,KACF,EACAC,EAAW,CACT,MAAS,6BACT,OAAU,oDACV,MAAS,sCACT,MAAS,iDACX,EACAC,EAAgB,CACd,mBAAoB,cACpB,eAAgB,UAChB,IAAO,UACP,IAAO,SACT,EACAC,EAAoB,CAClB,SAAY,aACd,EACAC,EAAiB,CACf,OAAU,QACZ,EAxDFC,EAAA,CACE,KAAAnB,EACA,QAAAC,EACA,YAAAC,EACA,SAAAC,EAMA,SAAAC,EACA,KAAAC,EAGA,WAAAC,EAKA,QAAAC,EACA,OAAAC,EAKA,KAAAC,EACA,QAAAC,EAKA,KAAAC,EACA,MAAAC,EACA,IAAAC,EAGA,MAAAC,EAGA,QAAAC,EAMA,aAAAC,EAMA,iBAAAC,EAGA,cAAAC,CAGF,ECzDO,MAAME,EAAmBC,GAAgC;AAAA;AAAA;AAAA;AAAA;AAAA,+CAKjBA,CAAW;AAAA,gCAC1BA,CAAW;AAAA;AAAA;AAAA;AAAA,wBAInBA,CAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,ECgB7BC,EAAMC,EAAI,aAAa,EAE7BD,EACG,QACC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AAGsB,EAAkBlB,EAAe,QAAQ,CAAC,GAC/DU,EAAI,QAAQ,IACd,GAAGS,EAAmBF,EAAK,IAAI,CAAC,GAC1BG,EAAeJ,EAAK,KACxBD,EACAI,EAAmBF,EAAK,KAAK,QAAQ,MAAO,aAAa,CAAC,CAC5D,EAEA,OAAOH,EACJ,UAAUE,EAAK,QAAQI,CAAY,CAAC,EACpC,KAAK,IAAMN,EAAG,UAAUM,EAAczB,EAAgBC,CAAW,CAAC,CAAC,CACxE,CAAC,CACH,CACF,CAAC,EAEHC,EAAI,QAAQ,EAAE,EAAE,OAAO,IAAM,CAC3BA,EAAI,WACN,CAAA,CAAC,EAEDA,EAAI,KAAK,EACTA,EAAI,QAAQwB,EAAI,OAAO,EAEvBxB,EAAI,MAAM"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/plugin-redirect",
3
- "version": "2.0.0-rc.63",
3
+ "version": "2.0.0-rc.65",
4
4
  "description": "VuePress plugin - redirect",
5
5
  "keywords": [
6
6
  "vuepress-plugin",
@@ -38,7 +38,7 @@
38
38
  "lib"
39
39
  ],
40
40
  "dependencies": {
41
- "@vuepress/helper": "2.0.0-rc.63",
41
+ "@vuepress/helper": "2.0.0-rc.65",
42
42
  "@vueuse/core": "^12.0.0",
43
43
  "cac": "^6.7.14",
44
44
  "vue": "^3.5.13"
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "339e0f9caa7b38d7fba0616194fdfa45415b914d"
52
+ "gitHead": "41bf5132d2cffceb5b10a71f615da8470293a255"
53
53
  }