Skip to content

Commit a8d0c93

Browse files
authored
Merge pull request #53 from EarthyScience/la/next_main
next main
2 parents d6630d3 + 1e5bb4d commit a8d0c93

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+700
-755
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434
- name: Deploy 🚀
3535
uses: JamesIves/github-pages-deploy-action@v4
3636
with:
37-
folder: dist
37+
folder: out
3838
branch: gh-pages
3939
clean: true

.gitignore

Lines changed: 41 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,48 @@
1-
# Logs
2-
logs
3-
*.log
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
428
npm-debug.log*
529
yarn-debug.log*
630
yarn-error.log*
7-
pnpm-debug.log*
8-
lerna-debug.log*
9-
10-
node_modules
11-
dist
12-
dist-ssr
13-
*.local
14-
15-
# Editor directories and files
16-
.vscode/*
17-
!.vscode/extensions.json
18-
.idea
19-
.DS_Store
20-
*.suo
21-
*.ntvs*
22-
*.njsproj
23-
*.sln
24-
*.sw?
31+
.pnpm-debug.log*
32+
33+
# env files (can opt-in for committing if needed)
34+
.env*
35+
36+
# tercel
37+
.vercel
38+
39+
# typescript
40+
*.tsbuildinfo
41+
next-env.d.ts
42+
43+
# local env files
2544
public/cube
26-
READMEo.md
2745
*.zarr
2846
package-lock.json
2947
.qodo
48+
*.sh

eslint.config.mjs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { dirname } from "path";
2+
import { fileURLToPath } from "url";
3+
import { FlatCompat } from "@eslint/eslintrc";
4+
5+
const __filename = fileURLToPath(import.meta.url);
6+
const __dirname = dirname(__filename);
7+
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
});
11+
12+
const eslintConfig = [
13+
...compat.extends("next/core-web-vitals", "next/typescript"),
14+
{
15+
rules: {
16+
"@typescript-eslint/no-unused-vars": "off",
17+
"no-unused-vars": "off",
18+
"@typescript-eslint/no-explicit-any": "off"
19+
}
20+
}
21+
];
22+
23+
export default eslintConfig;

index.html

Lines changed: 0 additions & 14 deletions
This file was deleted.

next.config.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import type { Configuration } from 'webpack';
2+
import path from 'path';
3+
4+
/** @type {import('next').NextConfig} */
5+
const nextConfig = {
6+
output: 'export' as const,
7+
images: {
8+
unoptimized: true,
9+
},
10+
eslint: {
11+
// Warning: This allows production builds to successfully complete even if
12+
// your project has ESLint errors.
13+
ignoreDuringBuilds: true,
14+
},
15+
// Turbopack config for dev mode
16+
turbopack: {
17+
rules: {
18+
'*.{glsl,vs,fs,vert,frag}': {
19+
loaders: ['raw-loader'],
20+
as: '*.js',
21+
},
22+
},
23+
},
24+
// Webpack config for build mode
25+
webpack: (config: Configuration) => {
26+
if (!config.module) config.module = { rules: [] };
27+
if (!config.module.rules) config.module.rules = [];
28+
29+
config.module.rules.push({
30+
test: /\.(glsl|vs|fs|vert|frag)$/,
31+
type: 'asset/source',
32+
});
33+
// Add path alias resolution
34+
if (!config.resolve) config.resolve = { alias: {} };
35+
if (!config.resolve.alias) config.resolve.alias = {};
36+
37+
// Explicitly set path aliases to match tsconfig.json
38+
(config.resolve.alias as { [key: string]: string })['@'] = path.resolve(__dirname, 'src');
39+
(config.resolve.alias as { [key: string]: string })['@/components'] = path.resolve(__dirname, 'src/components');
40+
return config;
41+
},
42+
};
43+
44+
module.exports = nextConfig;

package.json

Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ViZarrStores",
2+
"name": "vizarrstores",
33
"description": "A browser based visualization toolkit for Zarr Stores",
44
"license": "Apache-2.0",
55
"author": {
@@ -11,50 +11,54 @@
1111
"type": "git",
1212
"url": "https://github.com/EarthyScience/ViZarrStores.git"
1313
},
14+
"version": "0.1.0",
1415
"private": true,
15-
"version": "0.0.1",
16-
"type": "module",
1716
"packageManager": "[email protected]",
1817
"scripts": {
1918
"prChecks": "pnpm lint && pnpm buildRepo",
19+
"dev": "next dev --turbopack",
2020
"buildRepo": "pnpm rmBuild && pnpm build",
21-
"rmBuild": "pnpm -r exec rm -rf dist",
22-
"test": "vitest run",
23-
"dev": "vite --host",
24-
"build": "tsc && vite build",
25-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 20",
26-
"preview": "vite preview"
21+
"rmBuild": "pnpm -r exec rm -rf out",
22+
"build": "next build",
23+
"start": "next start",
24+
"test": "vitest",
25+
"lint": "next lint --max-warnings 20"
2726
},
2827
"dependencies": {
29-
"@react-three/drei": "^10.0.6",
28+
"@react-three/drei": "^10.0.7",
3029
"@react-three/fiber": "^9.1.2",
31-
"@types/three": "^0.175.0",
32-
"jotai": "^2.10.0",
30+
"@types/three": "^0.176.0",
31+
"@types/webpack": "^5.28.5",
32+
"glslify": "^7.1.1",
33+
"jotai": "^2.12.3",
3334
"js-colormaps-es": "^0.0.5",
3435
"leva": "^0.10.0",
36+
"lucide-react": "^0.503.0",
37+
"next": "15.3.1",
38+
"next-themes": "^0.4.6",
3539
"quick-lru": "^7.0.1",
36-
"react": "^19.1.0",
37-
"react-dom": "^19.1.0",
38-
"three": "^0.175.0",
39-
"vite-plugin-glsl": "^1.4.0",
40-
"vitest": "^3.1.1",
40+
"react": "^19.0.0",
41+
"react-dom": "^19.0.0",
42+
"three": "^0.176.0",
4143
"zarrita": "^0.5.1"
4244
},
4345
"devDependencies": {
44-
"@eslint/js": "^9.24.0",
45-
"@types/node": "^22.14.1",
46-
"@types/react": "^19.1.2",
47-
"@types/react-dom": "^19.1.2",
48-
"@typescript-eslint/eslint-plugin": "^8.30.1",
49-
"@typescript-eslint/parser": "^8.30.1",
50-
"@vitejs/plugin-react": "^4.4.0",
51-
"eslint": "^8.57.1",
52-
"eslint-plugin-react": "^7.37.5",
53-
"eslint-plugin-react-hooks": "^5.2.0",
54-
"eslint-plugin-react-refresh": "^0.4.19",
55-
"globals": "^16.0.0",
56-
"typescript": "^5.6.2",
57-
"typescript-eslint": "^8.30.1",
58-
"vite": "^6.2.5"
46+
"@eslint/eslintrc": "^3",
47+
"@tailwindcss/postcss": "^4",
48+
"@testing-library/dom": "^10.4.0",
49+
"@testing-library/react": "^16.3.0",
50+
"@types/node": "^20",
51+
"@types/react": "^19",
52+
"@types/react-dom": "^19",
53+
"@vitejs/plugin-react": "^4.4.1",
54+
"eslint": "^9",
55+
"eslint-config-next": "15.3.1",
56+
"glslify-loader": "^2.0.0",
57+
"jsdom": "^26.1.0",
58+
"raw-loader": "^4.0.2",
59+
"tailwindcss": "^4",
60+
"typescript": "^5",
61+
"vite-tsconfig-paths": "^5.1.4",
62+
"vitest": "^3.1.2"
5963
}
6064
}

postcss.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const config = {
2+
plugins: ["@tailwindcss/postcss"],
3+
};
4+
5+
export default config;

shader.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
declare module '*.frag' {
2+
const value: string
3+
export default value
4+
}
5+
6+
declare module '*.vert' {
7+
const value: string
8+
export default value
9+
}
10+
11+
declare module '*.glsl' {
12+
const value: string
13+
export default value
14+
}

0 commit comments

Comments
 (0)