-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
323 changed files
with
36,950 additions
and
28,270 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.eslintrc.js | ||
.eslintrc.cjs | ||
**/dist | ||
**/node_modules |
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,38 @@ | ||
module.exports = { | ||
extends: ["@pixi/eslint-config"], | ||
parserOptions: { | ||
project: "./tsconfig.eslint.json", | ||
ecmaVersion: 2020, | ||
sourceType: "module", | ||
}, | ||
plugins: ['import'], | ||
rules: { | ||
"spaced-comment": [1, "always", { markers: ["/"] }], | ||
"@typescript-eslint/triple-slash-reference": [1, { path: "always" }], | ||
"@typescript-eslint/type-annotation-spacing": 1, | ||
"@typescript-eslint/no-non-null-assertion": 0, | ||
"@typescript-eslint/consistent-type-imports": | ||
["error", { disallowTypeAnnotations: false }], | ||
"import/consistent-type-specifier-style": ["error", "prefer-top-level"], | ||
"import/no-duplicates": ["error"], | ||
"camelcase": 0, | ||
"max-len": ["error", { code: 180 }], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["*.tests.ts", "*.test.ts"], | ||
rules: { | ||
"@typescript-eslint/no-unused-expressions": 0, | ||
"@typescript-eslint/dot-notation": [ | ||
0, | ||
{ | ||
allowPrivateClassPropertyAccess: true, | ||
allowProtectedClassPropertyAccess: true, | ||
allowIndexSignaturePropertyAccess: true, | ||
}, | ||
], | ||
"dot-notation": 0, | ||
}, | ||
}, | ||
], | ||
}; |
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 |
---|---|---|
@@ -1,23 +1,25 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
main: | ||
verify: | ||
name: CI | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
script: | ||
- name: Typecheck | ||
command: test:types | ||
- name: Lint | ||
command: test:lint | ||
- name: Unit tests | ||
command: test | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: nrwl/nx-set-shas@v3 | ||
- run: npm ci | ||
|
||
- run: npx nx workspace-lint | ||
- run: npm run lint | ||
- run: npx nx affected --target=test:types --parallel=3 | ||
- uses: FedericoCarboni/setup-ffmpeg@v2 | ||
- run: npx nx affected --target=test --parallel=3 --ci | ||
- run: npx nx affected --target=build --parallel=3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- run: npm ci --ignore-scripts --no-audit --no-fund | ||
- run: npm rebuild | ||
- run: npm run ${{ matrix.script.command }} |
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,33 @@ | ||
name: Reusable Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- docs | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
cache: 'npm' | ||
|
||
- run: npm ci | ||
- run: | | ||
git config --global user.name "$GITHUB_ACTOR" | ||
git config --global user.email "[email protected]" | ||
git remote set-url origin https://git:${GIT_PASS}@github.com/pixijs/assetpack.git | ||
npm run deploy | ||
env: | ||
GIT_USER: $GITHUB_ACTOR | ||
GIT_PASS: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -20,6 +20,6 @@ jobs: | |
- name: Check PR Title | ||
uses: clowdhaus/actions/[email protected] | ||
with: | ||
on-fail-message: "Your PR title doesn't match the required format. The title should be in the conventional commit (https://www.conventionalcommits.org/en/v1.0.0-beta.4/) format. e.g.\n\n```\nchore(plugin-name): add pr title workflow\n```" | ||
title-regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([\w|,|\-|\|]+\))?(!)?\:\s.*$' | ||
on-fail-message: "Your PR title doesn't match the required format. The title should be in the conventional commit (https://www.conventionalcommits.org/en/v1.0.0-beta.4/) format. e.g.\n\n```\nchore: add pr title workflow\n```" | ||
title-regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)?(!)?\:\s.*$' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
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,24 @@ | ||
name: Publish Package | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm ci | ||
- run: npm run build | ||
- run: npm run publish-ci | ||
if: github.event.release.prerelease | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
XS_PUBLISH_TAG: beta | ||
- run: npm run publish-ci | ||
if: github.event.release.prerelease == false | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 |
---|---|---|
|
@@ -43,3 +43,4 @@ Thumbs.db | |
.testInput | ||
.testOutput | ||
.assetpack | ||
packages/assetpack/test/cache |
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,12 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
# Get a list of the staged files$files=$(git diff --cached --name-only --diff-filter=ACM -- '*.ts' | grep '^src/') | ||
staged_files=$(git diff --cached --name-only --diff-filter=ACM -- '*.ts' | grep '^src/' || true) | ||
|
||
npx lint-staged | ||
# Run npm lint on the staged files | ||
if [ -n "$staged_files" ]; then | ||
#log files | ||
echo 'linting the following commited files:' $staged_files | ||
npx eslint --ext .ts --max-warnings 0 $staged_files | ||
npm run test:types | ||
fi |
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 @@ | ||
v18 | ||
20 |
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,5 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"printWidth": 120 | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.