Skip to content

Commit

Permalink
chore: fix dialtone vue3 structure (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliodialpad authored Dec 1, 2023
1 parent 762d278 commit 6d94307
Show file tree
Hide file tree
Showing 1,232 changed files with 231,202 additions and 21,378 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/a11y_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ on:
branches:
- staging
paths:
- 'packages/**'
- 'apps/dialtone-vue3-documentation'
- 'packages/dialtone-vue3'

env:
HUSKY: 0
Expand Down Expand Up @@ -58,5 +57,5 @@ jobs:
- name: Start storybook and run a11y tests
run: |
pnpm dlx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"pnpm dlx http-server apps/dialtone-vue3-documentation/storybook-static --port 9010 --silent" \
"pnpm dlx http-server packages/dialtone-vue3/storybook-static --port 9010 --silent" \
"pnpm dlx wait-on tcp:9010 && pnpm nx run --verbose dialtone-vue3-documentation:test:a11y"
1 change: 0 additions & 1 deletion .github/workflows/clean-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
- 'apps/dialtone-documentation/**'
- 'packages/**'
dialtone-vue-3:
- 'apps/dialtone-vue3-documentation/**'
- 'packages/**'
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
- 'apps/dialtone-documentation/**'
- 'packages/**'
dialtone-vue-3:
- 'apps/dialtone-vue3-documentation/**'
- 'packages/**'
Expand Down Expand Up @@ -84,11 +83,11 @@ jobs:

- name: Build Dialtone library and documentation site
if: ${{ needs.filter-actions.outputs.dialtone == 'true' }}
run: pnpm nx run --verbose dialtone-documentation:build
run: pnpm nx run --verbose dialtone-documentation:build-docs

- name: Build Dialtone-vue 3 library and documentation site
if: ${{ needs.filter-actions.outputs.dialtone-vue-3 == 'true' }}
run: pnpm nx run --verbose dialtone-vue3-documentation:build
run: pnpm nx run --verbose dialtone-vue3:build-docs

- id: auth
name: Authenticate to Google Cloud
Expand Down Expand Up @@ -134,7 +133,7 @@ jobs:
if: ${{ needs.filter-actions.outputs.dialtone-vue-3 == 'true' }}
uses: google-github-actions/upload-cloud-storage@v1
with:
path: apps/dialtone-vue3-documentation/storybook-static
path: packages/dialtone-vue3/storybook-static
destination: ${{ env.DIALTONE_VUE_3_BUCKET_DIRECTORY }}
parent: false

Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
- 'apps/dialtone-documentation/**'
- 'packages/**'
dialtone-vue-3:
- 'apps/dialtone-vue3-documentation/**'
- 'packages/**'
get-branch-name:
Expand All @@ -68,8 +67,8 @@ jobs:
needs: [check-dialpad-member, get-branch-name, filter-actions]
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
contents: read
id-token: write
env:
VUEPRESS_BASE_URL: ${{ github.ref == 'refs/heads/production' && '/' || format('/{0}/', needs.get-branch-name.outputs.current_branch) }}
DIALTONE_BUCKET_DIRECTORY: dialtone.dialpad.com${{ github.ref == 'refs/heads/production' && '/' || format('/{0}/', needs.get-branch-name.outputs.current_branch) }}
Expand All @@ -78,7 +77,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
Expand Down Expand Up @@ -106,7 +105,7 @@ jobs:
run: pnpm install --frozen-lockfile

- name: Build documentation sites
run: pnpm nx run-many --verbose --target=build --projects=dialtone-documentation,dialtone-vue3-documentation
run: pnpm nx run-many --verbose --target=build-docs --projects=dialtone-documentation,dialtone-vue3

- id: auth
name: Authenticate to Google Cloud
Expand Down Expand Up @@ -153,6 +152,6 @@ jobs:
- name: Upload Dialtone-vue 3 to GCP
uses: google-github-actions/upload-cloud-storage@v1
with:
path: apps/dialtone-vue3-documentation/storybook-static
path: packages/dialtone-vue3/storybook-static
destination: ${{ env.DIALTONE_VUE_3_BUCKET_DIRECTORY }}
parent: false
1 change: 0 additions & 1 deletion .github/workflows/visual_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
with:
filters: |
dialtone-vue-3:
- 'apps/dialtone-vue3-documentation/**'
- 'packages/dialtone/**'
- 'packages/dialtone-icons/**'
- 'packages/dialtone-tokens/**'
Expand Down
2 changes: 1 addition & 1 deletion apps/dialtone-documentation/project.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dialtone-documentation",
"targets": {
"build": {
"build-docs": {
"executor": "nx:run-script",
"dependsOn": [
{
Expand Down
5 changes: 0 additions & 5 deletions apps/dialtone-vue3-documentation/.eslintignore

This file was deleted.

162 changes: 0 additions & 162 deletions apps/dialtone-vue3-documentation/.eslintrc.cjs

This file was deleted.

2 changes: 0 additions & 2 deletions apps/dialtone-vue3-documentation/.gitignore

This file was deleted.

15 changes: 0 additions & 15 deletions apps/dialtone-vue3-documentation/.markdownlintignore

This file was deleted.

39 changes: 0 additions & 39 deletions apps/dialtone-vue3-documentation/.storybook/dialtone-themes.js

This file was deleted.

22 changes: 0 additions & 22 deletions apps/dialtone-vue3-documentation/.storybook/main.js

This file was deleted.

11 changes: 0 additions & 11 deletions apps/dialtone-vue3-documentation/.storybook/manager.js

This file was deleted.

Loading

0 comments on commit 6d94307

Please sign in to comment.