-
-
Notifications
You must be signed in to change notification settings - Fork 4
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 #14 from xmlking/feat/bun
fix: adding bun
- Loading branch information
Showing
57 changed files
with
517 additions
and
38,741 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
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 |
---|---|---|
|
@@ -28,44 +28,68 @@ jobs: | |
uses: cocogitto/[email protected] | ||
with: | ||
check-latest-tag-only: true | ||
# linter: | ||
# name: Lint Code Base | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout Code | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# # Full git history is needed to get a proper list of changed files within `super-linter` | ||
# fetch-depth: 0 | ||
# - name: Lint Code Base | ||
# uses: github/super-linter@v5 | ||
# env: | ||
# VALIDATE_ALL_CODEBASE: false | ||
# IGNORE_GENERATED_FILES: true | ||
# # FILTER_REGEX_EXCLUDE: CHANGELOG.md | ||
# DEFAULT_BRANCH: main | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# build: | ||
# name: Build and Test | ||
# timeout-minutes: 15 | ||
# runs-on: ubuntu-latest | ||
# # To use Remote Caching, uncomment the next lines and follow the steps below. | ||
# env: | ||
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
# TURBO_TEAM: ${{ vars.TURBO_TEAM }} | ||
# linter: | ||
# name: Lint Code Base | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout Code | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# # Full git history is needed to get a proper list of changed files within `super-linter` | ||
# fetch-depth: 0 | ||
# - name: Lint Code Base | ||
# uses: github/super-linter@v5 | ||
# env: | ||
# VALIDATE_ALL_CODEBASE: false | ||
# IGNORE_GENERATED_FILES: true | ||
# # FILTER_REGEX_EXCLUDE: CHANGELOG.md | ||
# DEFAULT_BRANCH: main | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# build: | ||
# name: Build and Test | ||
# timeout-minutes: 15 | ||
# runs-on: ubuntu-latest | ||
# # To use Remote Caching, uncomment the next lines and follow the steps below. | ||
# env: | ||
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
# TURBO_TEAM: ${{ vars.TURBO_TEAM }} | ||
|
||
# steps: | ||
# - name: Check out code | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# fetch-depth: 2 | ||
# - uses: pnpm/action-setup@v2 | ||
# with: | ||
# version: 8 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: '20' | ||
# cache: 'pnpm' | ||
# - run: pnpm install | ||
# - run: pnpm build | ||
# - run: pnpm test:unit:coverage | ||
# steps: | ||
# - name: Check out code | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# fetch-depth: 2 | ||
# - uses: pnpm/action-setup@v2 | ||
# with: | ||
# version: 8 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: '20' | ||
# cache: 'pnpm' | ||
# - run: pnpm install | ||
# - run: pnpm run build --filter=playground | ||
# - run: pnpm run test:unit:coverage --filter=playground | ||
|
||
build: | ||
name: Build and Test | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
# To use Remote Caching, uncomment the next lines and follow the steps below. | ||
env: | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
- uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest | ||
- name: Install Dependencies | ||
run: bun install | ||
# - run: bun run check --filter=docs | ||
# - run: bun run lint --filter=docs | ||
- run: bun run build --filter=docs | ||
- run: bun run test:unit:coverage --filter=docs |
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,7 +1,7 @@ | ||
/* jshint esversion: 9 */ | ||
|
||
module.exports = { | ||
'*.{js,ts,json,svelte}': ['pnpm format', 'git add'], | ||
'./src/**/*.{svelte,ts}': ['pnpm format', 'git add', 'pnpm lint:fix'], | ||
'./.{ts,cjs,js}': ['pnpm lint:fix'] | ||
'*.{js,ts,json,svelte}': ['bun run format', 'git add'], | ||
'./src/**/*.{svelte,ts}': ['bun run format', 'git add', 'bun run lint:fix'], | ||
'./.{ts,cjs,js}': ['bun run lint:fix'] | ||
}; |
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,4 +1,3 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['custom'] | ||
}; |
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,12 @@ | ||
import type { PlaywrightTestConfig } from '@playwright/test'; | ||
|
||
const config: PlaywrightTestConfig = { | ||
webServer: { | ||
command: 'npm run build && npm run preview', | ||
port: 4173 | ||
}, | ||
testDir: 'tests', | ||
testMatch: /(.+\.)?(test|spec)\.[jt]s/ | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.