From 1fdc7e710ca96b91c1a7849b92e23ac837c32b5f Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Mon, 21 Dec 2020 17:34:47 +0800 Subject: [PATCH] chore: async script --- package.json | 4 ++-- pnpm-lock.yaml | 53 +++++++++++++++++++++++++++++++++++++++++++---- public/robots.txt | 2 ++ 3 files changed, 53 insertions(+), 6 deletions(-) create mode 100644 public/robots.txt diff --git a/package.json b/package.json index 603cdbd..f7f82d8 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": true, "scripts": { "dev": "vite --port 3333 --open", - "build": "cross-env NODE_ENV=production vite-ssg build" + "build": "cross-env NODE_ENV=production vite-ssg build --script async" }, "dependencies": { "@iconify/iconify": "^2.0.0-rc.4", @@ -36,7 +36,7 @@ "vite-plugin-purge-icons": "^0.4.5", "vite-plugin-pwa": "^0.1.7", "vite-plugin-voie": "^0.4.1", - "vite-ssg": "^0.0.5", + "vite-ssg": "^0.0.7", "voie-pages": "^0.4.0" }, "pnpm": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c8066dd..0e8cd7b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,7 +29,7 @@ devDependencies: vite-plugin-purge-icons: 0.4.5 vite-plugin-pwa: 0.1.7 vite-plugin-voie: 0.4.1_b4f890ebcd2c7fb57691a875170d0d78 - vite-ssg: 0.0.5_fc727f10f0d17e293defdef0a51ff799 + vite-ssg: 0.0.7_fc727f10f0d17e293defdef0a51ff799 voie-pages: 0.4.0_vue@3.0.4 lockfileVersion: 5.2 overrides: @@ -2219,6 +2219,14 @@ packages: dev: true resolution: integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== + /cliui/7.0.4: + dependencies: + string-width: 4.2.0 + strip-ansi: 6.0.0 + wrap-ansi: 7.0.0 + dev: true + resolution: + integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== /clone/1.0.4: dev: true engines: @@ -5564,7 +5572,7 @@ packages: vue-router: ^4.0.0-beta.4 resolution: integrity: sha512-oGynRoj+CwQ4bcXPDDI9l18GgFl1yyjc8u3nmrDhMzWdu3EY8BTL9NLxA028tkbRGMvs/lUJJXnFzp//yApY2Q== - /vite-ssg/0.0.5_fc727f10f0d17e293defdef0a51ff799: + /vite-ssg/0.0.7_fc727f10f0d17e293defdef0a51ff799: dependencies: '@vue/compiler-sfc': 3.0.4_vue@3.0.4 '@vue/server-renderer': 3.0.4_vue@3.0.4 @@ -5572,6 +5580,7 @@ packages: vite: 1.0.0-rc.13 vue: 3.0.4 vue-router: 4.0.1_vue@3.0.4 + yargs: 16.2.0 dev: true hasBin: true peerDependencies: @@ -5581,7 +5590,7 @@ packages: vue: ^3.0.4 vue-router: ^4.0.1 resolution: - integrity: sha512-FEzIwvYho5doG6G09rQa2ySurGAc2rYnIx5w3dZyelKsg7Q60ejUDGuRGETOX0UuItWUGKnIVHqEgGEsFFxFRw== + integrity: sha512-vYpG+vemmiiGZRv71ljs5Lsb7JuGfRwPinwwsLN3H/FqnxSeIi3u0IgfVoDx7ARdX72CJJAVt8cu1GZxOBXalA== /vite/1.0.0-rc.13: dependencies: '@babel/parser': 7.12.10 @@ -5879,6 +5888,16 @@ packages: node: '>=8' resolution: integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== + /wrap-ansi/7.0.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.0 + strip-ansi: 6.0.0 + dev: true + engines: + node: '>=10' + resolution: + integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== /wrappy/1.0.2: dev: true resolution: @@ -5907,6 +5926,12 @@ packages: dev: true resolution: integrity: sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ== + /y18n/5.0.5: + dev: true + engines: + node: '>=10' + resolution: + integrity: sha512-hsRUr4FFrvhhRH12wOdfs38Gy7k2FFzB9qgN9v3aLykRq0dRcdcpz5C9FxdS2NuhOrI/628b/KSTJ3rwHysYSg== /yallist/3.1.1: dev: true resolution: @@ -5930,6 +5955,12 @@ packages: node: '>=6' resolution: integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== + /yargs-parser/20.2.4: + dev: true + engines: + node: '>=10' + resolution: + integrity: sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== /yargs/15.4.1: dependencies: cliui: 6.0.0 @@ -5948,6 +5979,20 @@ packages: node: '>=8' resolution: integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== + /yargs/16.2.0: + dependencies: + cliui: 7.0.4 + escalade: 3.1.1 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.0 + y18n: 5.0.5 + yargs-parser: 20.2.4 + dev: true + engines: + node: '>=10' + resolution: + integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== /ylru/1.2.1: dev: true engines: @@ -5981,7 +6026,7 @@ specifiers: vite-plugin-purge-icons: ^0.4.5 vite-plugin-pwa: ^0.1.7 vite-plugin-voie: ^0.4.1 - vite-ssg: ^0.0.5 + vite-ssg: ^0.0.7 voie-pages: ^0.4.0 vue: ^3.0.4 vue-i18n: 9.0.0-beta.8 diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..c2a49f4 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Allow: /