diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml deleted file mode 100644 index 2ee0d99..0000000 --- a/.github/workflows/cd.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: cd - -on: [push, pull_request] - -jobs: - cd: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest] - node: [14] - - steps: - - name: Checkout - uses: actions/checkout@master - - - name: Setup node env - uses: actions/setup-node@v2.1.2 - - with: - node-version: ${{ matrix.node }} - - - name: Install dependencies - run: npm - - - name: Generate - run: npm generate - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./dist - \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index a345c58..c3bc991 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,6 +34,7 @@ "eslint-plugin-prettier": "^5.0.0", "jest": "^29.1.2", "jest-environment-jsdom": "^29.1.2", + "push-dir": "^0.4.1", "ts-jest": "^29.0.3", "vue-jest": "^3.0.4" }, @@ -5279,10 +5280,12 @@ } }, "node_modules/@types/eslint": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.29.0.tgz", - "integrity": "sha512-VNcvioYDH8/FxaeTKkM4/TiTwt6pBV9E3OfGmvaw8tPl0rrHCJ4Ll15HRT+pMiFAf/MLQvAzC+6RzUMEL9Ceng==", + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.0.tgz", + "integrity": "sha512-gi6WQJ7cHRgZxtkQEoyHMppPjq9Kxo5Tjn2prSKDSmZrCz8TZ3jSRCeTJm+WoM+oB0WG37bRqLzaaU3q7JypGg==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "@types/estree": "*", "@types/json-schema": "*" @@ -8014,13 +8017,28 @@ } }, "node_modules/buffer": { - "version": "4.9.2", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", - "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "optional": true, + "peer": true, "dependencies": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" } }, "node_modules/buffer-from": { @@ -10844,6 +10862,16 @@ "webpack": "^4.0.0 || ^5.0.0" } }, + "node_modules/eslint-webpack-plugin/node_modules/@types/eslint": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.29.0.tgz", + "integrity": "sha512-VNcvioYDH8/FxaeTKkM4/TiTwt6pBV9E3OfGmvaw8tPl0rrHCJ4Ll15HRT+pMiFAf/MLQvAzC+6RzUMEL9Ceng==", + "dev": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, "node_modules/eslint/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -16689,6 +16717,16 @@ "vm-browserify": "^1.0.1" } }, + "node_modules/node-libs-browser/node_modules/buffer": { + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", + "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "dependencies": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + } + }, "node_modules/node-libs-browser/node_modules/punycode": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", @@ -19634,6 +19672,21 @@ } ] }, + "node_modules/push-dir": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/push-dir/-/push-dir-0.4.1.tgz", + "integrity": "sha512-Nrrsly0c3kCfu725Jnif/s5adHpBwKCGWBttHVxTndF4iyGBSFtNi/pduFxHF5ks0kWtHcbA3XXP5MEra6iiCA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "push-dir": "bin/push-dir.js" + }, + "engines": { + "node": ">=0.12" + } + }, "node_modules/qs": { "version": "6.11.2", "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz", diff --git a/package.json b/package.json index ffeec01..2516f07 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "generate": "nuxt generate", "test": "jest", "test:tdd": "jest --watch", - "lint": "eslint . --fix --ignore-path .gitignore --ext .vue,.js,.ts" + "lint": "eslint . --fix --ignore-path .gitignore --ext .vue,.js,.ts", + "deploy": "push-dir --dir=dist --branch=main --cleanup" }, "dependencies": { "core-js": "^3.25.3", @@ -46,6 +47,7 @@ "eslint-plugin-prettier": "^5.0.0", "jest": "^29.1.2", "jest-environment-jsdom": "^29.1.2", + "push-dir": "^0.4.1", "ts-jest": "^29.0.3", "vue-jest": "^3.0.4" },