Skip to content

Commit

Permalink
Merge pull request #331 from PrestaShopCorp/feat/2.0.0-beta
Browse files Browse the repository at this point in the history
Init Puik v2
  • Loading branch information
mattgoud authored May 28, 2024
2 parents 56158cd + 67cd6ba commit bcdbd24
Show file tree
Hide file tree
Showing 645 changed files with 23,615 additions and 25,901 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "feat/2.0.0-beta",
"updateInternalDependencies": "patch",
"ignore": []
}
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
dist
pnpm-lock.yaml
CHANGELOG.en-US.md
storybook-static
coverage
!.*
30 changes: 30 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const { defineConfig } = require('eslint-define-config');

module.exports = defineConfig({
root: true,
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 'latest',
sourceType: 'module',
extraFileExtensions: ['.vue'],
project: ['./tsconfig.eslint.json']
},
env: {
browser: true,
node: true
},
extends: [
'@prestashopcorp/eslint-config-ts',
'plugin:vue/vue3-recommended'
],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'no-template-curly-in-string': 'off'
}
});
121 changes: 0 additions & 121 deletions .eslintrc.js

This file was deleted.

12 changes: 6 additions & 6 deletions .github/actions/build-and-publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ runs:
using: 'composite'

steps:
- name: Set version
shell: bash
run: |
git config user.email "${{ inputs.git_author_email }}"
git config user.name "Github action"
npm version ${{ inputs.version }} --allow-same-version
# - name: Set version
# shell: bash
# run: |
# git config user.email "${{ inputs.git_author_email }}"
# git config user.name "Github action"
# npm version ${{ inputs.version }} --allow-same-version
- name: Setup pnpm
uses: pnpm/action-setup@v2

Expand Down
3 changes: 0 additions & 3 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
},
],
ignoreDeps: [
// Latest breaks build
'ts-morph',
'type-fest',
// MDX style is broken for 0.4.x
'@storybook/builder-vite',
],
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/cd-publish-beta-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Publish beta

on:
push:
tags:
- '*beta*'

jobs:
publish-github-packages:
name: Publish beta on registry
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Get tag
id: get_tag
run: echo ::set-output name=TAG::$(echo $GITHUB_REF | cut -d / -f 3)

- name: Checkout repository
uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9.1.2

- name: Setup node env 🏗
uses: actions/setup-node@v3
with:
node-version: lts/hydrogen
registry-url: https://registry.npmjs.org/
cache: "pnpm"

- name: Install dependencies 👨🏻‍💻
run: pnpm i --frozen-lockfile

- name: Build
run: pnpm build

- name: Publish beta
run: pnpm -r --filter './packages/**' publish --no-git-checks --access public --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
VERSION: ${{ steps.get_tag.outputs.TAG }}
37 changes: 0 additions & 37 deletions .github/workflows/cd-publish-package.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/cd-publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Publish Release

on:
release:
types: [published]

jobs:
publish-github-packages:
name: Publish on registry
runs-on: ubuntu-latest
if: success() && !contains(github.ref, 'beta')

permissions:
contents: read
packages: write

steps:
- name: Get tag
id: get_tag
run: echo ::set-output name=TAG::${GITHUB_REF#refs/tags/}

- name: Checkout repository
uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9.1.2

- name: Setup node env 🏗
uses: actions/setup-node@v3
with:
node-version: lts/hydrogen
registry-url: https://registry.npmjs.org/
cache: "pnpm"

- name: Install dependencies 👨🏻‍💻
run: pnpm i --frozen-lockfile

- name: Build
run: pnpm build

- name: Publish
run: pnpm -r --filter './packages/**' publish --no-git-checks --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
VERSION: ${{ steps.get_tag.outputs.TAG }}
4 changes: 2 additions & 2 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
- name: Setup node version
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
version: 9.1.2

- name: Install dependencies
run: pnpm i --frozen-lockfile
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
version: 9.1.2

- name: Setup node env 🏗
uses: actions/[email protected]
Expand All @@ -44,7 +44,4 @@ jobs:
run: pnpm lint

- name: Run tests 🧪
run: pnpm test

- name: Run coverage 📈
run: pnpm coverage
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ packages/puik/version.ts
*.local

# playground test file
playground/src/App.vue
playground/src/App.vue
storybook-static

# Ignore the packages-tars directory
/packages-tars/
3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm exec lint-staged
pnpm exec pretty-quick --staged
pnpm exec lint-staged
Loading

0 comments on commit bcdbd24

Please sign in to comment.