Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
6a88c5f
remove closure vars in favor of static fields
abernier Jul 26, 2025
bb73162
exporting more
abernier Jul 26, 2025
e8c02ba
basic story
abernier Jul 28, 2025
d3c62a9
chromatic
abernier Jul 29, 2025
b89d332
St1,2
abernier Jul 29, 2025
786fd80
decorator
abernier Jul 29, 2025
d53b964
setup
abernier Jul 29, 2025
b9fc156
better setup
abernier Jul 29, 2025
22c4cb4
more snapshots
abernier Jul 29, 2025
5ad8520
buttons list
abernier Jul 29, 2025
f53aa00
typecheck
abernier Jul 29, 2025
2a10fe5
-button stories
abernier Jul 29, 2025
1778ee5
pre-commit typecheck
abernier Jul 29, 2025
988560a
userEvent
abernier Jul 29, 2025
03f45ce
.
abernier Jul 29, 2025
87d9c94
axesHelper
abernier Jul 29, 2025
e841545
canary
abernier Aug 13, 2025
370f76e
.
abernier Aug 13, 2025
be11674
Merge pull request #595 from abernier/abernier-pkg
abernier Aug 13, 2025
db9898f
Revert "Merge pull request #595 from abernier/abernier-pkg"
abernier Aug 13, 2025
fedaa24
Merge pull request #3 from abernier/abernier-pkg
abernier Aug 13, 2025
bbbb01a
Merge branch 'dev' of https://github.com/yomotsu/camera-controls into…
abernier Aug 13, 2025
e1f41ed
@abernier/camera-controls own pkg
abernier Aug 13, 2025
18d51d9
publishConfig public
abernier Aug 13, 2025
013af86
fix: bump with doc
abernier Aug 13, 2025
f57c421
fix: bump2 with doc
abernier Aug 13, 2025
4ed68e1
Merge pull request #1 from abernier/sb
abernier Aug 14, 2025
8794de8
Merge branch 'main' of https://github.com/abernier/camera-controls in…
abernier Aug 14, 2025
c399c66
badges
abernier Aug 14, 2025
6997881
Merge branch 'dev' of https://github.com/abernier/camera-controls int…
abernier Aug 14, 2025
664bb5a
fix: test
abernier Aug 14, 2025
d74e79f
deploy only if main
abernier Aug 14, 2025
be3fb7c
npm badge
abernier Aug 14, 2025
e87f4da
fix: test2
abernier Aug 14, 2025
11441fc
Merge pull request #2 from abernier/canary-abernier-pkg
abernier Aug 14, 2025
8d527cc
Merge branch 'dev' of https://github.com/abernier/camera-controls int…
abernier Aug 14, 2025
2f49774
pull_request:
abernier Aug 14, 2025
da5e202
Merge branch 'dev' of https://github.com/abernier/camera-controls int…
abernier Aug 14, 2025
08657ee
push bump
abernier Aug 14, 2025
a641938
Merge pull request #5 from abernier/rm-module-closure-vars
abernier Aug 14, 2025
e421886
Merge pull request #6 from abernier/dev
abernier Aug 14, 2025
0120198
fix: public this.ctor
abernier Aug 14, 2025
4842c8a
disable format-on-save + restore README formatting
abernier Aug 14, 2025
ba2485c
dependabot
abernier Aug 14, 2025
f733cd7
relax engines.node for dependabot
abernier Aug 14, 2025
3b8f8e3
chore: vitest (#8)
abernier Aug 15, 2025
93a2a6c
feat: JSON spherical property (#7)
abernier Aug 15, 2025
5608ed0
Merge pull request #9 from abernier/dev
abernier Aug 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"

ignore:
- dependency-name: "@types/node"

# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#groups
groups:

storybook-packages:
patterns:
- "storybook"
- "@storybook/*"
- "eslint-plugin-storybook"

safe:
update-types:
- "minor"
- "patch"
exclude-patterns:
# Excluding all 0.x leading-zero package (since dependabot consider eg: 0.7.3 -> 0.8.0 minor bump / as opposed to semver)
- "three"
- "typedoc"
unsafe:
update-types:
- "major"
18 changes: 18 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Chromatic"
on: push

jobs:
chromatic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
cache: "npm"
node-version-file: ".nvmrc"
- run: npm ci
- run: npm run chromatic --exit-once-uploaded --auto-accept-changes main
env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:
branches: [main, dev]
pull_request:
branches: [dev]

jobs:
lgtm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
- run: |
npm ci
npm test
npm run build
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ name: Build and Release to npm
on:
push:
branches:
- 'main'
- "main"
- "canary-*"
pull_request:

# Cancel any previous run (see: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency)
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

release-job:
runs-on: ubuntu-latest
steps:
Expand All @@ -29,6 +30,7 @@ jobs:
id: main
run: |
npm ci
npm test
npm run release

# Check if release was successful (dist directory exists)
Expand Down Expand Up @@ -58,6 +60,7 @@ jobs:
deploy-job:
needs: release-job
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
permissions:
contents: read
pages: write
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ node_modules
yarn.lock
docs

/dist
/dist
*storybook.log
storybook-static
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
npx lint-staged
npm run typecheck
3 changes: 3 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
branches:
- main
- name: canary-*
prerelease: true
channel: canary
Comment on lines +3 to +5
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

support for canary release for canary-* branches

plugins:
- - "@semantic-release/commit-analyzer"
- preset: "conventionalcommits"
Expand Down
14 changes: 14 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { StorybookConfig } from '@storybook/html-vite';

const config: StorybookConfig = {
"stories": [
"../src/**/*.mdx",
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
],
"addons": [],
"framework": {
"name": "@storybook/html-vite",
"options": {}
}
};
export default config;
14 changes: 14 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { Preview } from '@storybook/html-vite';

const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
};

export default preview;
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": false
}
7 changes: 4 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import storybook from "eslint-plugin-storybook";

import globals from "globals";
import tsPlugin from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
Expand Down Expand Up @@ -80,7 +82,7 @@ const mdcs = {

export default [
{
files: [ "src/**/*.ts" ],
files: [ "**/*.ts", "**/*.mjs" ],
// ignores: [],
languageOptions: {
parser: tsParser,
Expand Down Expand Up @@ -118,5 +120,4 @@ export default [
],
"key-spacing": [ 0 ],
},
},
];
}, ...storybook.configs[ "flat/recommended" ] ];
Loading