diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bc5e152a..2aaea7fe 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,6 +7,9 @@ on: jobs: deploy: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20] permissions: pages: write id-token: write @@ -14,16 +17,22 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - name: Install pnpm + uses: pnpm/action-setup@v4 with: - fetch-depth: 0 - - uses: actions/setup-node@v3 + version: 9 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - node-version: 16 - cache: npm - - run: npm ci + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + - name: Install dependencies + run: pnpm install - name: Build - run: npm run docs:build + run: pnpm build + - name: Build app + run: pnpm --filter docs build - uses: actions/configure-pages@v2 - uses: actions/upload-pages-artifact@v1 with: diff --git a/.gitignore b/.gitignore index 6350ab28..57dbf6c4 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,9 @@ coverage /cypress/videos/ /cypress/screenshots/ -docs/.vitepress/cache +# vitepress +.temp +cache Icon** @@ -29,4 +31,4 @@ Icon** *.ntvs* *.njsproj *.sln -*.sw? +*.sw? \ No newline at end of file diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..e9e01050 --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +registry=https://registry.npmjs.org/ +ignore-workspace-root-check=true +include-workspace-root=true \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 6a558994..4f7253fc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,7 @@ { "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "cSpell.words": [ "dropdown", @@ -16,4 +16,4 @@ "tabindex", "typeof" ] -} +} \ No newline at end of file diff --git a/README.md b/README.md index ebc460b8..1596fb06 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,6 @@ International Telephone Input with Vue. [![npm](https://img.shields.io/npm/dt/vue-tel-input.svg)](https://www.npmjs.com/package/vue-tel-input) [![stars](https://img.shields.io/github/stars/iamstevendao/vue-tel-input.svg)](https://github.com/iamstevendao/vue-tel-input) -

-In-action GIF -

- ## Documentation and Demo [Visit the website](https://iamstevendao.com/vue-tel-input/) @@ -29,7 +25,13 @@ International Telephone Input with Vue. - Install the plugin: ```sh - npm install vue-tel-input + npm install vue-tel-input libphonenumber-js + + # yarn + yarn add vue-tel-input libphonenumber-js + + # pnpm + pnpm add vue-tel-input libphonenumber-js ``` - Add the plugin into your app: diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index ea0cc042..598a250d 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -35,7 +35,6 @@ export default defineConfig({ { text: 'Others', items: [ - { text: 'Typescript Support', link: 'others/typescript-support' }, { text: 'v3', link: 'others/v3' }, { text: 'v2', link: 'others/v2' }, { text: 'Credits', link: 'others/credits' }, diff --git a/docs/.vitepress/theme/Layout.vue b/docs/.vitepress/theme/Layout.vue index 96cb4bfe..b39a0dcd 100644 --- a/docs/.vitepress/theme/Layout.vue +++ b/docs/.vitepress/theme/Layout.vue @@ -1,4 +1,4 @@ -