feat: scaffold
This commit is contained in:
parent
91f56425d9
commit
7dde8dd6f8
|
|
@ -6,4 +6,12 @@
|
|||
.nx/migrate-runs
|
||||
.nx/polygraph
|
||||
.claude/worktrees
|
||||
.claude/settings.local.json
|
||||
.claude/settings.local.json
|
||||
|
||||
# Next.js
|
||||
.next
|
||||
out
|
||||
node_modules
|
||||
|
||||
# graft's local graph cache — regenerable, not committed (run `graft build`).
|
||||
/graft/
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
# graft's cards are gitignored but should stay greppable: ripgrep reads
|
||||
# .ignore before .gitignore, so this re-admits the tree to search only.
|
||||
!graft/
|
||||
graft/.cache/
|
||||
graft/.graph/
|
||||
122
.nx/nxw.js
122
.nx/nxw.js
|
|
@ -1,122 +0,0 @@
|
|||
"use strict";
|
||||
// This file should be committed to your repository! It wraps Nx and ensures
|
||||
// that your local installation matches nx.json.
|
||||
// See: https://nx.dev/recipes/installation/install-non-javascript for more info.
|
||||
|
||||
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const cp = require('child_process');
|
||||
const installationPath = path.join(__dirname, 'installation', 'package.json');
|
||||
function matchesCurrentNxInstall(currentInstallation, nxJsonInstallation) {
|
||||
if (!currentInstallation.devDependencies ||
|
||||
!Object.keys(currentInstallation.devDependencies).length) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
if (currentInstallation.devDependencies['nx'] !==
|
||||
nxJsonInstallation.version ||
|
||||
require(path.join(path.dirname(installationPath), 'node_modules', 'nx', 'package.json')).version !== nxJsonInstallation.version) {
|
||||
return false;
|
||||
}
|
||||
for (const [plugin, desiredVersion] of Object.entries(nxJsonInstallation.plugins || {})) {
|
||||
if (currentInstallation.devDependencies[plugin] !== desiredVersion) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function ensureDir(p) {
|
||||
if (!fs.existsSync(p)) {
|
||||
fs.mkdirSync(p, { recursive: true });
|
||||
}
|
||||
}
|
||||
function getCurrentInstallation() {
|
||||
try {
|
||||
return require(installationPath);
|
||||
}
|
||||
catch {
|
||||
return {
|
||||
name: 'nx-installation',
|
||||
version: '0.0.0',
|
||||
devDependencies: {},
|
||||
};
|
||||
}
|
||||
}
|
||||
function performInstallation(currentInstallation, nxJson) {
|
||||
fs.writeFileSync(installationPath, JSON.stringify({
|
||||
name: 'nx-installation',
|
||||
devDependencies: {
|
||||
nx: nxJson.installation.version,
|
||||
...nxJson.installation.plugins,
|
||||
},
|
||||
}));
|
||||
try {
|
||||
// --include=dev forces install even if consumer env sets NODE_ENV=production / omit=dev.
|
||||
cp.execSync('npm i --include=dev', {
|
||||
cwd: path.dirname(installationPath),
|
||||
stdio: 'inherit',
|
||||
windowsHide: true,
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
// revert possible changes to the current installation
|
||||
fs.writeFileSync(installationPath, JSON.stringify(currentInstallation));
|
||||
// rethrow
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
function ensureUpToDateInstallation() {
|
||||
const nxJsonPath = path.join(__dirname, '..', 'nx.json');
|
||||
let nxJson;
|
||||
try {
|
||||
nxJson = require(nxJsonPath);
|
||||
if (!nxJson.installation) {
|
||||
console.error('[NX]: The "installation" entry in the "nx.json" file is required when running the nx wrapper. See https://nx.dev/recipes/installation/install-non-javascript');
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof Error &&
|
||||
e.code === 'MODULE_NOT_FOUND') {
|
||||
console.error('[NX]: The "nx.json" file is required when running the nx wrapper. See https://nx.dev/recipes/installation/install-non-javascript');
|
||||
}
|
||||
else {
|
||||
console.error(`[NX]: Failed to parse "nx.json": ${e instanceof Error ? e.message : e}. See https://nx.dev/recipes/installation/install-non-javascript`);
|
||||
}
|
||||
process.exit(1);
|
||||
}
|
||||
try {
|
||||
ensureDir(path.join(__dirname, 'installation'));
|
||||
const currentInstallation = getCurrentInstallation();
|
||||
if (!matchesCurrentNxInstall(currentInstallation, nxJson.installation)) {
|
||||
performInstallation(currentInstallation, nxJson);
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
const messageLines = [
|
||||
'[NX]: Nx wrapper failed to synchronize installation.',
|
||||
];
|
||||
if (e instanceof Error) {
|
||||
messageLines.push('');
|
||||
messageLines.push(e.message);
|
||||
messageLines.push(e.stack);
|
||||
}
|
||||
else {
|
||||
messageLines.push(e.toString());
|
||||
}
|
||||
console.error(messageLines.join('\n'));
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
if (!process.env.NX_WRAPPER_SKIP_INSTALL) {
|
||||
ensureUpToDateInstallation();
|
||||
}
|
||||
require('./installation/node_modules/nx/dist/bin/nx');
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||
"plugins": [
|
||||
"typescript",
|
||||
"unicorn",
|
||||
"oxc",
|
||||
"react",
|
||||
"nextjs",
|
||||
"jsx-a11y",
|
||||
"import"
|
||||
],
|
||||
"categories": {
|
||||
"correctness": "error"
|
||||
},
|
||||
"rules": {},
|
||||
"env": {
|
||||
"builtin": true,
|
||||
"browser": true,
|
||||
"node": true
|
||||
},
|
||||
"ignorePatterns": [
|
||||
"**/.next/**",
|
||||
"**/dist/**",
|
||||
"**/out-tsc/**",
|
||||
"**/next-env.d.ts"
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# Add files here to ignore them from prettier formatting
|
||||
/dist
|
||||
/coverage
|
||||
/.nx/cache
|
||||
/.nx/workspace-data
|
||||
pnpm-lock.yamlgraft/
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"singleQuote": true
|
||||
}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"jsc": {
|
||||
"target": "es2017",
|
||||
"parser": {
|
||||
"syntax": "typescript",
|
||||
"decorators": true,
|
||||
"dynamicImport": true
|
||||
},
|
||||
"transform": {
|
||||
"decoratorMetadata": true,
|
||||
"legacyDecorator": true
|
||||
},
|
||||
"keepClassNames": true,
|
||||
"externalHelpers": true,
|
||||
"loose": true
|
||||
},
|
||||
"module": {
|
||||
"type": "commonjs"
|
||||
},
|
||||
"sourceMaps": true,
|
||||
"exclude": [
|
||||
"jest.config.[ct]s",
|
||||
".*\\.spec.tsx?$",
|
||||
".*\\.test.tsx?$",
|
||||
"./src/jest-setup.ts$",
|
||||
"./**/jest-setup.ts$",
|
||||
".*.js$",
|
||||
".*.d.ts$"
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
import baseConfig from '../../eslint.config.mjs';
|
||||
|
||||
export default baseConfig;
|
||||
|
|
@ -0,0 +1 @@
|
|||
/// <reference types="@nx/next/typings/style.d.ts" />
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
/// <reference types="next" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
import "./.next/types/routes.d.ts";
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
import type { NextConfig } from 'next';
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
// Workspace packages export TypeScript source, so Next.js compiles them.
|
||||
transpilePackages: [
|
||||
'@lumina/market',
|
||||
'@lumina/integrations',
|
||||
'@lumina/island',
|
||||
'@lumina/libs',
|
||||
'@lumina/tools',
|
||||
],
|
||||
// `/@{username}` is the public channel URL. A folder named `@…` is a
|
||||
// parallel-route slot in the App Router, so the routes live under
|
||||
// `channels/[username]` and the public URL is rewritten onto them.
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: '/@:username/:path*',
|
||||
destination: '/channels/:username/:path*',
|
||||
},
|
||||
];
|
||||
},
|
||||
// One canonical URL per channel: send direct `/channels/…` hits to `/@…`.
|
||||
async redirects() {
|
||||
return [
|
||||
{
|
||||
source: '/channels/:username/:path*',
|
||||
destination: '/@:username/:path*',
|
||||
permanent: true,
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"name": "@lumina/bear",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"nx": {
|
||||
"name": "bear",
|
||||
"sourceRoot": "apps/bear/src",
|
||||
"tags": [
|
||||
"type:app",
|
||||
"scope:market"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"@lumina/market": "workspace:*",
|
||||
"@lumina/integrations": "workspace:*",
|
||||
"@lumina/island": "workspace:*",
|
||||
"@lumina/libs": "workspace:*",
|
||||
"@lumina/tools": "workspace:*",
|
||||
"next": "~16.1.6",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
export default {
|
||||
plugins: {
|
||||
'@tailwindcss/postcss': {},
|
||||
},
|
||||
};
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
|
|
@ -0,0 +1,11 @@
|
|||
import type { ReactNode } from 'react';
|
||||
|
||||
import '../styles/app.css';
|
||||
|
||||
export default function RootLayout({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<html lang="fa" dir="rtl">
|
||||
<body>{children}</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
@import 'tailwindcss';
|
||||
@import '@lumina/island/styles/island.css';
|
||||
|
||||
/* Scan workspace sources that this app renders. */
|
||||
@source '../../../../platforms/market/src';
|
||||
@source '../../../../packages/island/src';
|
||||
@source '../../../../packages/integrations/src';
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"jsx": "preserve",
|
||||
"noEmit": true,
|
||||
"emitDeclarationOnly": false,
|
||||
"esModuleInterop": true,
|
||||
"resolveJsonModule": true,
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"incremental": true,
|
||||
"plugins": [
|
||||
{
|
||||
"name": "next"
|
||||
}
|
||||
],
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
},
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
"tsBuildInfoFile": "dist/tsconfig.tsbuildinfo"
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"src/**/*.tsx",
|
||||
"src/**/*.js",
|
||||
"src/**/*.jsx",
|
||||
"../../apps/bear/.next/types/**/*.ts",
|
||||
"../../dist/apps/bear/.next/types/**/*.ts",
|
||||
"index.d.ts",
|
||||
"next-env.d.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"out-tsc",
|
||||
"dist",
|
||||
"node_modules",
|
||||
"jest.config.ts",
|
||||
"jest.config.cts",
|
||||
"src/**/*.spec.ts",
|
||||
"src/**/*.test.ts",
|
||||
".next",
|
||||
"eslint.config.js",
|
||||
"eslint.config.cjs",
|
||||
"eslint.config.mjs"
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "../../packages/tools"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/libs"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/island"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/integrations"
|
||||
},
|
||||
{
|
||||
"path": "../../platforms/market"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"jsc": {
|
||||
"target": "es2017",
|
||||
"parser": {
|
||||
"syntax": "typescript",
|
||||
"decorators": true,
|
||||
"dynamicImport": true
|
||||
},
|
||||
"transform": {
|
||||
"decoratorMetadata": true,
|
||||
"legacyDecorator": true
|
||||
},
|
||||
"keepClassNames": true,
|
||||
"externalHelpers": true,
|
||||
"loose": true
|
||||
},
|
||||
"module": {
|
||||
"type": "commonjs"
|
||||
},
|
||||
"sourceMaps": true,
|
||||
"exclude": [
|
||||
"jest.config.[ct]s",
|
||||
".*\\.spec.tsx?$",
|
||||
".*\\.test.tsx?$",
|
||||
"./src/jest-setup.ts$",
|
||||
"./**/jest-setup.ts$",
|
||||
".*.js$",
|
||||
".*.d.ts$"
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
import baseConfig from '../../eslint.config.mjs';
|
||||
|
||||
export default baseConfig;
|
||||
|
|
@ -0,0 +1 @@
|
|||
/// <reference types="@nx/next/typings/style.d.ts" />
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
/// <reference types="next" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
import "./.next/types/routes.d.ts";
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
import type { NextConfig } from 'next';
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
// Workspace packages export TypeScript source, so Next.js compiles them.
|
||||
transpilePackages: [
|
||||
'@lumina/market',
|
||||
'@lumina/integrations',
|
||||
'@lumina/island',
|
||||
'@lumina/libs',
|
||||
'@lumina/tools',
|
||||
],
|
||||
// `/@{username}` is the public channel URL. A folder named `@…` is a
|
||||
// parallel-route slot in the App Router, so the routes live under
|
||||
// `channels/[username]` and the public URL is rewritten onto them.
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: '/@:username/:path*',
|
||||
destination: '/channels/:username/:path*',
|
||||
},
|
||||
];
|
||||
},
|
||||
// One canonical URL per channel: send direct `/channels/…` hits to `/@…`.
|
||||
async redirects() {
|
||||
return [
|
||||
{
|
||||
source: '/channels/:username/:path*',
|
||||
destination: '/@:username/:path*',
|
||||
permanent: true,
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"name": "@lumina/bull",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"nx": {
|
||||
"name": "bull",
|
||||
"sourceRoot": "apps/bull/src",
|
||||
"tags": [
|
||||
"type:app",
|
||||
"scope:market"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"@lumina/market": "workspace:*",
|
||||
"@lumina/integrations": "workspace:*",
|
||||
"@lumina/island": "workspace:*",
|
||||
"@lumina/libs": "workspace:*",
|
||||
"@lumina/tools": "workspace:*",
|
||||
"next": "~16.1.6",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
export default {
|
||||
plugins: {
|
||||
'@tailwindcss/postcss': {},
|
||||
},
|
||||
};
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
|
|
@ -0,0 +1,11 @@
|
|||
import type { ReactNode } from 'react';
|
||||
|
||||
import '../styles/app.css';
|
||||
|
||||
export default function RootLayout({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<html lang="fa" dir="rtl">
|
||||
<body>{children}</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
@import 'tailwindcss';
|
||||
@import '@lumina/island/styles/island.css';
|
||||
|
||||
/* Scan workspace sources that this app renders. */
|
||||
@source '../../../../platforms/market/src';
|
||||
@source '../../../../packages/island/src';
|
||||
@source '../../../../packages/integrations/src';
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"jsx": "preserve",
|
||||
"noEmit": true,
|
||||
"emitDeclarationOnly": false,
|
||||
"esModuleInterop": true,
|
||||
"resolveJsonModule": true,
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"incremental": true,
|
||||
"plugins": [
|
||||
{
|
||||
"name": "next"
|
||||
}
|
||||
],
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
},
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
"tsBuildInfoFile": "dist/tsconfig.tsbuildinfo"
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"src/**/*.tsx",
|
||||
"src/**/*.js",
|
||||
"src/**/*.jsx",
|
||||
"../../apps/bull/.next/types/**/*.ts",
|
||||
"../../dist/apps/bull/.next/types/**/*.ts",
|
||||
"index.d.ts",
|
||||
"next-env.d.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"out-tsc",
|
||||
"dist",
|
||||
"node_modules",
|
||||
"jest.config.ts",
|
||||
"jest.config.cts",
|
||||
"src/**/*.spec.ts",
|
||||
"src/**/*.test.ts",
|
||||
".next",
|
||||
"eslint.config.js",
|
||||
"eslint.config.cjs",
|
||||
"eslint.config.mjs"
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "../../packages/tools"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/libs"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/island"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/integrations"
|
||||
},
|
||||
{
|
||||
"path": "../../platforms/market"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,67 @@
|
|||
import nx from '@nx/eslint-plugin';
|
||||
import tseslint from 'typescript-eslint';
|
||||
|
||||
// ESLint runs only the module-boundary rule; oxlint handles everything else.
|
||||
export default [
|
||||
...nx.configs['flat/base'],
|
||||
{ ignores: ['**/dist', '**/out-tsc', '**/.next'] },
|
||||
{
|
||||
files: [
|
||||
'**/*.ts',
|
||||
'**/*.tsx',
|
||||
'**/*.js',
|
||||
'**/*.jsx',
|
||||
'**/*.mjs',
|
||||
'**/*.cjs',
|
||||
],
|
||||
languageOptions: { parser: tseslint.parser },
|
||||
rules: {
|
||||
'@nx/enforce-module-boundaries': [
|
||||
'error',
|
||||
{
|
||||
enforceBuildableLibDependency: true,
|
||||
allow: ['^.*/eslint(\\.base)?\\.config\\.[cm]?[jt]s$'],
|
||||
depConstraints: [
|
||||
{
|
||||
sourceTag: 'type:app',
|
||||
onlyDependOnLibsWithTags: [
|
||||
'type:platform',
|
||||
'type:integration',
|
||||
'type:ui',
|
||||
'type:lib',
|
||||
'type:tool',
|
||||
],
|
||||
},
|
||||
{
|
||||
sourceTag: 'type:platform',
|
||||
onlyDependOnLibsWithTags: [
|
||||
'type:integration',
|
||||
'type:ui',
|
||||
'type:lib',
|
||||
'type:tool',
|
||||
],
|
||||
},
|
||||
{
|
||||
sourceTag: 'type:integration',
|
||||
onlyDependOnLibsWithTags: ['type:ui', 'type:lib', 'type:tool'],
|
||||
},
|
||||
{
|
||||
sourceTag: 'type:ui',
|
||||
onlyDependOnLibsWithTags: ['type:lib', 'type:tool'],
|
||||
},
|
||||
{ sourceTag: 'type:lib', onlyDependOnLibsWithTags: ['type:tool'] },
|
||||
{ sourceTag: 'type:tool', onlyDependOnLibsWithTags: [] },
|
||||
{
|
||||
sourceTag: 'scope:market',
|
||||
onlyDependOnLibsWithTags: ['scope:market', 'scope:shared'],
|
||||
},
|
||||
{
|
||||
sourceTag: 'scope:shared',
|
||||
onlyDependOnLibsWithTags: ['scope:shared'],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
];
|
||||
5
nx
5
nx
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/bash
|
||||
command -v node >/dev/null 2>&1 || { echo >&2 "Nx requires NodeJS to be available. To install NodeJS and NPM, see: https://nodejs.org/en/download/ ."; exit 1; }
|
||||
command -v npm >/dev/null 2>&1 || { echo >&2 "Nx requires npm to be available. To install NodeJS and NPM, see: https://nodejs.org/en/download/ ."; exit 1; }
|
||||
path_to_root=$(dirname $BASH_SOURCE)
|
||||
node $path_to_root/.nx/nxw.js "$@"
|
||||
10
nx.bat
10
nx.bat
|
|
@ -1,10 +0,0 @@
|
|||
@ECHO OFF
|
||||
SETLOCAL
|
||||
SET path_to_root=%~dp0
|
||||
WHERE node >nul 2>nul
|
||||
IF %ERRORLEVEL% NEQ 0 (ECHO Nx requires NodeJS to be available. To install NodeJS and NPM, see: https://nodejs.org/en/download/ . & GOTO exit)
|
||||
WHERE npm >nul 2>nul
|
||||
IF %ERRORLEVEL% NEQ 0 (ECHO Nx requires npm to be available. To install NodeJS and NPM, see: https://nodejs.org/en/download/ . & GOTO exit)
|
||||
node %path_to_root%\.nx\nxw.js %*
|
||||
:exit
|
||||
cmd /c exit /b %ERRORLEVEL%
|
||||
59
nx.json
59
nx.json
|
|
@ -1,7 +1,56 @@
|
|||
{
|
||||
"installation": {
|
||||
"version": "23.2.1"
|
||||
},
|
||||
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
||||
"analytics": false
|
||||
}
|
||||
"analytics": false,
|
||||
"plugins": [
|
||||
{
|
||||
"plugin": "@nx/next/plugin",
|
||||
"options": {
|
||||
"startTargetName": "start",
|
||||
"buildTargetName": "build",
|
||||
"devTargetName": "dev",
|
||||
"serveStaticTargetName": "serve-static",
|
||||
"buildDepsTargetName": "build-deps",
|
||||
"watchDepsTargetName": "watch-deps"
|
||||
}
|
||||
},
|
||||
{
|
||||
"plugin": "@nx/js/typescript",
|
||||
"options": {
|
||||
"typecheck": {
|
||||
"targetName": "typecheck"
|
||||
},
|
||||
"build": {
|
||||
"targetName": "build",
|
||||
"configName": "tsconfig.lib.json",
|
||||
"buildDepsName": "build-deps",
|
||||
"watchDepsName": "watch-deps"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"plugin": "@nx/eslint/plugin",
|
||||
"options": {
|
||||
"targetName": "lint"
|
||||
}
|
||||
},
|
||||
{
|
||||
"plugin": "@nx/oxlint",
|
||||
"options": {
|
||||
"targetName": "oxlint"
|
||||
}
|
||||
}
|
||||
],
|
||||
"generators": {
|
||||
"@nx/next": {
|
||||
"application": {
|
||||
"style": "css",
|
||||
"linter": "eslint"
|
||||
}
|
||||
},
|
||||
"@nx/react": {
|
||||
"library": {
|
||||
"unitTestRunner": "none"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"name": "@lumina/source",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"license": "UNLICENSED",
|
||||
"packageManager": "pnpm@11.25.0",
|
||||
"scripts": {},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.14.5",
|
||||
"@babel/preset-react": "^7.14.5",
|
||||
"@nx/eslint": "23.2.1",
|
||||
"@nx/eslint-plugin": "23.2.1",
|
||||
"@nx/js": "23.2.1",
|
||||
"@nx/next": "23.2.1",
|
||||
"@nx/oxlint": "23.2.1",
|
||||
"@nx/react": "23.2.1",
|
||||
"@swc-node/register": "~1.11.1",
|
||||
"@swc/cli": "~0.8.1",
|
||||
"@swc/core": "~1.15.5",
|
||||
"@swc/helpers": "~0.5.18",
|
||||
"@tailwindcss/postcss": "^4.3.3",
|
||||
"@types/node": "^22.0.0",
|
||||
"@types/react": "^19.0.0",
|
||||
"@types/react-dom": "^19.0.0",
|
||||
"eslint": "^9.8.0",
|
||||
"nx": "23.2.1",
|
||||
"oxlint": "^1.75.0",
|
||||
"postcss": "^8.5.28",
|
||||
"prettier": "~3.6.2",
|
||||
"tailwindcss": "^4.3.3",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^6.0.3",
|
||||
"typescript-eslint": "^8.58.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"next": "~16.1.6",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"server-only": "^0.0.1"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"presets": [
|
||||
[
|
||||
"@nx/react/babel",
|
||||
{
|
||||
"runtime": "automatic",
|
||||
"useBuiltIns": "usage"
|
||||
}
|
||||
]
|
||||
],
|
||||
"plugins": []
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
export {};
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC"}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
import 'server-only';
|
||||
//# sourceMappingURL=server.d.ts.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC"}
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,3 @@
|
|||
import baseConfig from '../../eslint.config.mjs';
|
||||
|
||||
export default baseConfig;
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"name": "@lumina/integrations",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"exports": {
|
||||
".": "./src/index.ts",
|
||||
"./server": "./src/server.ts",
|
||||
"./*": "./src/*/index.ts",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"nx": {
|
||||
"name": "integrations",
|
||||
"tags": [
|
||||
"type:integration",
|
||||
"scope:shared"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"@lumina/island": "workspace:*",
|
||||
"@lumina/libs": "workspace:*",
|
||||
"@lumina/tools": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
// Public client-safe API. Re-export each module by name; never `export *`.
|
||||
export {};
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
import 'server-only';
|
||||
|
||||
// Public server-only API, exposed as the `/server` subpath. index.ts never imports this file.
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
}
|
||||
],
|
||||
"extends": "../../tsconfig.base.json"
|
||||
}
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"types": [
|
||||
"node",
|
||||
"@nx/react/typings/cssmodule.d.ts",
|
||||
"@nx/react/typings/image.d.ts"
|
||||
],
|
||||
"rootDir": "src",
|
||||
"jsx": "react-jsx",
|
||||
"tsBuildInfoFile": "dist/tsconfig.lib.tsbuildinfo"
|
||||
},
|
||||
"exclude": [
|
||||
"out-tsc",
|
||||
"dist",
|
||||
"jest.config.ts",
|
||||
"jest.config.cts",
|
||||
"src/**/*.spec.ts",
|
||||
"src/**/*.test.ts",
|
||||
"src/**/*.spec.tsx",
|
||||
"src/**/*.test.tsx",
|
||||
"src/**/*.spec.js",
|
||||
"src/**/*.test.js",
|
||||
"src/**/*.spec.jsx",
|
||||
"src/**/*.test.jsx",
|
||||
"eslint.config.js",
|
||||
"eslint.config.cjs",
|
||||
"eslint.config.mjs"
|
||||
],
|
||||
"include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../tools/tsconfig.lib.json"
|
||||
},
|
||||
{
|
||||
"path": "../libs/tsconfig.lib.json"
|
||||
},
|
||||
{
|
||||
"path": "../island/tsconfig.lib.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"presets": [
|
||||
[
|
||||
"@nx/react/babel",
|
||||
{
|
||||
"runtime": "automatic",
|
||||
"useBuiltIns": "usage"
|
||||
}
|
||||
]
|
||||
],
|
||||
"plugins": []
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
export {};
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC"}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
import 'server-only';
|
||||
//# sourceMappingURL=server.d.ts.map
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue