mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -13,3 +13,4 @@ pnpm-lock.yaml
|
|||||||
private
|
private
|
||||||
past-*
|
past-*
|
||||||
output
|
output
|
||||||
|
dist
|
||||||
|
|||||||
19
flake.nix
19
flake.nix
@@ -3,20 +3,13 @@
|
|||||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
};
|
};
|
||||||
outputs =
|
outputs = inputs@{ nixpkgs, flake-parts, ... }:
|
||||||
inputs@{ nixpkgs, flake-parts, ... }:
|
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
systems = nixpkgs.lib.platforms.all;
|
systems = nixpkgs.lib.platforms.all;
|
||||||
perSystem =
|
perSystem = { pkgs, ... }: {
|
||||||
{ pkgs, ... }:
|
devShells.default =
|
||||||
{
|
pkgs.mkShell { packages = [ pkgs.bun pkgs.nodejs ]; };
|
||||||
devShells.default = pkgs.mkShell {
|
# TODO: Package LA using Nix
|
||||||
packages = [
|
};
|
||||||
pkgs.bun
|
|
||||||
pkgs.nodejs
|
|
||||||
];
|
|
||||||
};
|
|
||||||
# TODO: Package LA using Nix
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
60
package.json
60
package.json
@@ -1,31 +1,33 @@
|
|||||||
{
|
{
|
||||||
"name": "learn-anything",
|
"name": "learn-anything",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "bun web",
|
"dev": "bun web",
|
||||||
"web": "cd web && bun dev",
|
"web": "cd web && bun dev",
|
||||||
"web:build": "bun run --filter '*' build",
|
"app": "tauri dev",
|
||||||
"cli": "bun run --watch cli/run.ts",
|
"web:build": "bun run --filter '*' build",
|
||||||
"seed": "bun --watch cli/seed.ts"
|
"cli": "bun run --watch cli/run.ts",
|
||||||
},
|
"seed": "bun --watch cli/seed.ts"
|
||||||
"workspaces": [
|
},
|
||||||
"web"
|
"workspaces": [
|
||||||
],
|
"web"
|
||||||
"dependencies": {
|
],
|
||||||
"jazz-nodejs": "^0.7.34",
|
"dependencies": {
|
||||||
"react-icons": "^5.3.0"
|
"jazz-nodejs": "^0.7.34",
|
||||||
},
|
"react-icons": "^5.3.0"
|
||||||
"devDependencies": {
|
},
|
||||||
"bun-types": "^1.1.26"
|
"devDependencies": {
|
||||||
},
|
"bun-types": "^1.1.26",
|
||||||
"prettier": {
|
"@tauri-apps/cli": "^1.6.0"
|
||||||
"plugins": [
|
},
|
||||||
"prettier-plugin-tailwindcss"
|
"prettier": {
|
||||||
],
|
"plugins": [
|
||||||
"useTabs": true,
|
"prettier-plugin-tailwindcss"
|
||||||
"semi": false,
|
],
|
||||||
"trailingComma": "none",
|
"useTabs": true,
|
||||||
"printWidth": 120,
|
"semi": false,
|
||||||
"arrowParens": "avoid"
|
"trailingComma": "none",
|
||||||
},
|
"printWidth": 120,
|
||||||
"license": "MIT"
|
"arrowParens": "avoid"
|
||||||
|
},
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"$schema": "..\\node_modules/@tauri-apps/cli\\schema.json",
|
"$schema": "..\\node_modules/@tauri-apps/cli\\schema.json",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeBuildCommand": "npm run next-build",
|
"beforeBuildCommand": "cd web && bun run next-build",
|
||||||
"beforeDevCommand": "npm run next dev",
|
"beforeDevCommand": "cd web && bun run next dev",
|
||||||
"devPath": "http://localhost:3000",
|
"devPath": "http://localhost:3000",
|
||||||
"distDir": "../dist"
|
"distDir": "../dist"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// TODO: somehow there should be dynamic config for tauri/website
|
// TODO: somehow there should be dynamic config for tauri/website
|
||||||
// one way is perhaps via env variable like below
|
// one way is perhaps via env variable like below
|
||||||
const TAURI_DEV = false
|
const TAURI_DEV = true
|
||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
|
|||||||
@@ -1,26 +1,41 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["dom", "dom.iterable", "esnext"],
|
"lib": [
|
||||||
"allowJs": true,
|
"dom",
|
||||||
"skipLibCheck": true,
|
"dom.iterable",
|
||||||
"strict": true,
|
"esnext"
|
||||||
"noEmit": true,
|
],
|
||||||
"esModuleInterop": true,
|
"allowJs": true,
|
||||||
"module": "esnext",
|
"skipLibCheck": true,
|
||||||
"moduleResolution": "bundler",
|
"strict": true,
|
||||||
"resolveJsonModule": true,
|
"noEmit": true,
|
||||||
"isolatedModules": true,
|
"esModuleInterop": true,
|
||||||
"jsx": "preserve",
|
"module": "esnext",
|
||||||
"incremental": true,
|
"moduleResolution": "bundler",
|
||||||
"plugins": [
|
"resolveJsonModule": true,
|
||||||
{
|
"isolatedModules": true,
|
||||||
"name": "next"
|
"jsx": "preserve",
|
||||||
}
|
"incremental": true,
|
||||||
],
|
"plugins": [
|
||||||
"paths": {
|
{
|
||||||
"@/*": ["./*"]
|
"name": "next"
|
||||||
}
|
}
|
||||||
},
|
],
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "types/**/*.d.ts"],
|
"paths": {
|
||||||
"exclude": ["node_modules"]
|
"@/*": [
|
||||||
|
"./*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"next-env.d.ts",
|
||||||
|
"**/*.ts",
|
||||||
|
"**/*.tsx",
|
||||||
|
".next/types/**/*.ts",
|
||||||
|
"types/**/*.d.ts",
|
||||||
|
"../dist/types/**/*.ts"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"node_modules"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user