diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 370e4140..00000000 --- a/.babelrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "presets": ["@vue/babel-preset-jsx"] -} diff --git a/.eslintrc.yml b/.eslintrc.yml index 5a3bcb8e..9836b8ca 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -8,7 +8,8 @@ rules: - error - 4 space-before-function-paren: 0 - no-callback-literal: 0 + no-var: 0 + array-callback-return: 0 globals: # Basic global 3rd party stuff _: readonly diff --git a/.githooks/pre-commit b/.githooks/pre-commit new file mode 100755 index 00000000..a845b850 --- /dev/null +++ b/.githooks/pre-commit @@ -0,0 +1 @@ +npm run lint \ No newline at end of file diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index 1cf23b4f..6fbd940b 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -1,34 +1,21 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Build storybook +name: Build and publish storybook on: push: branches: - - master - - feature/* + - "main" + - "feature/vue3" - pull_request: - branches: - - master - - feature/* +permissions: + contents: read + pages: write + id-token: write jobs: - build: + deploy: runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [18.x] - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npx build-storybook - env: - CI: true + - id: build-publish + uses: bitovi/github-actions-storybook-to-github-pages@v1.0.2 + with: + path: storybook-static diff --git a/.storybook/assets/concrete/images/countries/jp.png b/.storybook/assets/concrete/images/countries/jp.png new file mode 100644 index 00000000..2d95f867 Binary files /dev/null and b/.storybook/assets/concrete/images/countries/jp.png differ diff --git a/.storybook/assets/concrete/images/countries/us.png b/.storybook/assets/concrete/images/countries/us.png new file mode 100644 index 00000000..e1ebe006 Binary files /dev/null and b/.storybook/assets/concrete/images/countries/us.png differ diff --git a/.storybook/public/concrete/images/icons/bedrock/sprites.svg b/.storybook/assets/concrete/images/icons/bedrock/sprites.svg similarity index 100% rename from .storybook/public/concrete/images/icons/bedrock/sprites.svg rename to .storybook/assets/concrete/images/icons/bedrock/sprites.svg diff --git a/.storybook/assets/concrete/preview.html b/.storybook/assets/concrete/preview.html new file mode 100644 index 00000000..dcdba650 --- /dev/null +++ b/.storybook/assets/concrete/preview.html @@ -0,0 +1,3 @@ +