-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from gsoft-inc/master-esm
Convert codebase to ESM
- Loading branch information
Showing
1,228 changed files
with
74,533 additions
and
46,842 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
/.vscode | ||
storybook-static | ||
node_modules | ||
dist | ||
*.svg | ||
package.json | ||
*.css | ||
!/.storybook | ||
!/**/.storybook |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/eslintrc", | ||
"root": true, | ||
"extends": ["plugin:@workleap/react-library"], | ||
"rules": { | ||
"no-console": ["warn", { "allow": ["warn", "error"] }], | ||
"react/destructuring-assignment": "off", | ||
"no-param-reassign": "off", | ||
|
||
// New Workleap rules that we don't want to enforce yet | ||
"@typescript-eslint/consistent-type-imports": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"react/no-unused-prop-types": "off" | ||
|
||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["*.mdx"], | ||
"rules":{ | ||
"react/jsx-no-undef": "off" | ||
} | ||
}, | ||
{ | ||
"files": [ | ||
".storybook/*", | ||
"**/scripts/*.js" | ||
], | ||
"rules":{ | ||
"no-console": "off" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,30 +5,51 @@ name: Chromatic | |
|
||
on: | ||
pull_request: | ||
# Opened, synchronize, or reopened are the default types | ||
# We added ready_for_review to trigger the workflow is passed from draft to ready_for_review | ||
types: ["opened", "synchronize", "reopened", "ready_for_review"] | ||
branches-ignore: | ||
- changeset-release/* | ||
|
||
jobs: | ||
chromatic: | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Commit | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "yarn" | ||
|
||
- name: Cache pnpm store | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
node_modules | ||
~/.pnpm-store | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm- | ||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
run: | | ||
corepack enable | ||
pnpm install --frozen-lockfile | ||
- name: Build Packages | ||
run: yarn build | ||
run: pnpm run build | ||
|
||
- name: Publish to Chromatic | ||
uses: chromaui/[email protected] | ||
uses: chromaui/action@v1 | ||
id: chromatic | ||
with: | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
buildScriptName: build-sb-chroma | ||
|
||
|
||
traceChanged: true | ||
onlyChanged: true # TurboSnap | ||
exitOnceUploaded: true # The PRs will be marked as success/failure based on the Chromatic build status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
strict-peer-dependencies=false | ||
public-hoist-pattern[]=* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16.14 | ||
lts/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./Banner"; | ||
export * from "./Banner.tsx"; |
Oops, something went wrong.