Skip to content

Commit

Permalink
Merge pull request #22 from alchemisten/develop
Browse files Browse the repository at this point in the history
Merge branch 'develop' into main
  • Loading branch information
vspdi authored Nov 13, 2023
2 parents 3ed49ef + e2cc1b7 commit a3c8ed2
Show file tree
Hide file tree
Showing 289 changed files with 39,265 additions and 8,897 deletions.
Binary file removed .DS_Store
Binary file not shown.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
102 changes: 102 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"root": true,
"ignorePatterns": [
"**/*"
],
"plugins": ["@nx"],
"overrides": [
{
"files": [
"*.ts",
"*.tsx",
"*.js",
"*.jsx"
],
"rules": {
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": [
"*"
]
}
]
}
]
}
},
{
"files": [
"*.ts",
"*.tsx"
],
"extends": [
"plugin:@nx/typescript",
"prettier"
],
"plugins": [
"prettier"
],
"rules": {
"import/prefer-default-export": "off",
"no-await-in-loop": "off",
"no-cond-assign": "off",
"no-console": "error",
"no-restricted-imports": [
"error",
{
"patterns": [
"@material-ui/core/*/*",
"!@material-ui/core/styles",
"@mui/core/*/*",
"!@mui/core/styles"
]
}
],
"no-restricted-syntax": "off",
"no-return-await": "off",
"no-useless-constructor": "off",
"sort-imports": [
"warn",
{
"ignoreCase": true,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false
}
],
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/explicit-member-accessibility": [
"warn",
{
"accessibility": "explicit"
}
],
"prettier/prettier": [
"warn",
{
"printWidth": 120,
"semi": true,
"singleQuote": true,
"tabWidth": 2
}
]
}
},
{
"files": [
"*.js",
"*.jsx"
],
"extends": [
"plugin:@nx/javascript"
],
"rules": {}
}
]
}
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release
"on":
push:
branches:
- main
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
always-auth: true
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN_TECHUSER }}" > ~/.npmrc
- run: npm ci
- run: npm run test
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_TECHUSER }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_TECHUSER }}
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test
"on":
push:
branches:
- develop
- feature/**
- hotfix/**
- renovate/**
pull_request:
types:
- opened
- synchronize
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: npm
- run: npm ci
- run: npm run build
- run: npm run test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: npm
- run: npm ci
- run: npm run build
- run: npm run lint
102 changes: 41 additions & 61 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,65 +1,45 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
dist
tmp
out-tsc
lib

# dependencies
node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
.sass-cache
connect.lock
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings
.vite
.vitest
.env

# next.js build output
.next

.vscode
# System Files
.DS_Store
Thumbs.db

.idea/
.nx/cache
5 changes: 2 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

[submodule "packages/gltf-extension/glTF-spec"]
path = packages/gltf-extension/glTF-spec
[submodule "libs/gltf-extension/glTF-spec"]
path = libs/gltf-extension/glTF-spec
url = https://github.com/alchemistenag/glTF
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Add files here to ignore them from prettier formatting

/dist
/coverage

/.nx/cache
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"printWidth": 120,
"semi": true,
"singleQuote": true,
"tabWidth": 2
}
39 changes: 39 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"branches": "main",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"publish": false
}
],
"@semantic-release/github",
[
"@semantic-release/exec",
{
"publishCmd": "nx run-many --target=publish --ver=${nextRelease.version} --exclude=3d-studio-example,gltf-extension,gltf-extension-validator"
}
],
[
"@semantic-release/git",
{
"assets": [
"package.json",
"package-lock.json"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@saithodev/semantic-release-backmerge",
{
"branches": [
"develop"
],
"backmergeStrategy": "merge"
}
]
]
}
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"nrwl.angular-console",
"esbenp.prettier-vscode",
"firsttris.vscode-jest-runner"
]
}
Loading

0 comments on commit a3c8ed2

Please sign in to comment.