chore: update dependencies, use npm workspaces

This commit is contained in:
b12f 2024-09-29 17:58:03 +02:00
parent 2ad72bbf61
commit 63ba5859ff
Signed by: b12f
GPG key ID: 729956E1124F8F26
23 changed files with 10498 additions and 31932 deletions

View file

@ -1,4 +1,4 @@
[*.{js,jsx,ts,tsx,vue}]
[*.{js,jsx,ts,tsx,mts,mtsx,vue.nix, md}]
indent_style = space
indent_size = 2
end_of_line = lf

4
.envrc
View file

@ -1,2 +1,2 @@
watch_file shell.nix
use nix
watch_file flake.nix
use_flake

2
.gitignore vendored
View file

@ -7,3 +7,5 @@ dist-ssr
tags
.temp
.cache
docs/.vitepress/cache
docs/.vitepress/dist

0
CONTRIBUTING.md Normal file
View file

View file

@ -1,4 +1,7 @@
import { defineConfig } from 'vitepress';
import { defineConfig as defineViteConfig } from 'vite';
import vueJsx from '@vitejs/plugin-vue-jsx'
import { join } from 'path';
export default defineConfig({
lang: 'en-US',
@ -25,5 +28,20 @@ export default defineConfig({
]
}
]
}
},
vite: defineViteConfig({
plugins: [
vueJsx(),
],
resolve: {
alias: {
'@schlechtenburg/core': join(__dirname, '../../packages/core/lib/index.ts'),
'@schlechtenburg/paragraph': join(__dirname, '../../packages/paragraph/lib/index.ts'),
'@schlechtenburg/heading': join(__dirname, '../../packages/heading/lib/index.ts'),
'@schlechtenburg/image': join(__dirname, '../../packages/image/lib/index.ts'),
'@schlechtenburg/layout': join(__dirname, '../../packages/layout/lib/index.ts'),
},
},
}),
});

View file

@ -1,6 +1,7 @@
.example-editor {
display: flex;
flex-direction: column;
margin-left: 4rem;
&--mode {
display: flex;

File diff suppressed because it is too large Load diff

View file

@ -1,16 +1,8 @@
---
layout: page
---
<script setup>
import { withBase } from 'vitepress';
import ExampleEditor from './ExampleEditor';
</script>
<div class="sb-doc">
# Example Schlechtenburg Editor
</div>
<ExampleEditor></ExampleEditor>

View file

@ -1,18 +0,0 @@
import { defineConfig } from 'vite';
import vueJsx from '@vitejs/plugin-vue-jsx'
import { join } from 'path';
export default defineConfig({
plugins: [
vueJsx(),
],
resolve: {
alias: {
'@schlechtenburg/core': join(__dirname, '../packages/core/lib/index.ts'),
'@schlechtenburg/paragraph': join(__dirname, '../packages/paragraph/lib/index.ts'),
'@schlechtenburg/heading': join(__dirname, '../packages/heading/lib/index.ts'),
'@schlechtenburg/image': join(__dirname, '../packages/image/lib/index.ts'),
'@schlechtenburg/layout': join(__dirname, '../packages/layout/lib/index.ts'),
},
},
});

116
flake.lock Normal file
View file

@ -0,0 +1,116 @@
{
"nodes": {
"devshell": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1713195852,
"narHash": "sha256-MEb4Hx/Aw7pcsmcHXBuldFsrVTfl9Q9dz1JSlxUanmE=",
"owner": "numtide",
"repo": "devshell",
"rev": "2c8e04e5c29299bec53c2e5a73da0f9afa8dabb5",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "devshell",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1701680307,
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_2": {
"inputs": {
"systems": "systems_2"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1727540905,
"narHash": "sha256-40J9tW7Y794J7Uw4GwcAKlMxlX2xISBl6IBigo83ih8=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "fbca5e745367ae7632731639de5c21f29c8744ed",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"devshell": "devshell",
"flake-utils": "flake-utils_2",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

27
flake.nix Normal file
View file

@ -0,0 +1,27 @@
{
description = "Schlechtenburg";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
flake-utils.url = "github:numtide/flake-utils";
devshell.url = "github:numtide/devshell";
devshell.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, flake-utils, devshell, nixpkgs }:
flake-utils.lib.simpleFlake {
inherit self nixpkgs;
name = "schlechtenburg";
preOverlays = [ devshell.overlays.default ];
shell = { pkgs }: pkgs.devshell.mkShell {
devshell.packages = with pkgs; [
nodejs
nodePackages.typescript
nodePackages.typescript-language-server
nodePackages.vue-language-server
];
};
};
}

View file

@ -2,5 +2,6 @@
"packages": [
"packages/*"
],
"version": "0.0.0"
"version": "0.0.0",
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}

24917
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -10,15 +10,23 @@
"docs:serve": "vitepress serve docs"
},
"devDependencies": {
"@vitejs/plugin-vue-jsx": "^2.0.0",
"lerna": "^3.22.1",
"sass": "^1.54.4",
"typedoc": "^0.22.13",
"typescript": "^4.6.2",
"vitepress": "^1.0.0-alpha.13",
"vue": "^3.2.37"
"@vitejs/plugin-vue-jsx": "^3.1.0",
"lerna": "^8.1.8",
"sass": "^1.75.0",
"typedoc": "^0.26.7",
"typescript": "^5.6.2",
"vitepress": "^1.3.4",
"vue": "^3.5.10"
},
"dependencies": {
"lodash-es": "^4.17.21"
}
},
"workspaces": [
"packages/core",
"packages/heading",
"packages/image",
"packages/paragraph",
"packages/layout",
"packages/standalone"
]
}

File diff suppressed because it is too large Load diff

View file

@ -12,8 +12,8 @@
"test": "echo \"Error: run tests from root\" && exit 1"
},
"directories": {
"lib": "lib",
"test": "__tests__"
"doc": "docs",
"lib": "lib"
},
"files": [
"lib",
@ -38,6 +38,6 @@
"@types/uuid": "^8.3.0",
"@vuedx/typecheck": "^0.6.3",
"@vuedx/typescript-plugin-vue": "^0.6.3",
"vue": "^3.2.31"
"vue": "^3.4.23"
}
}

View file

@ -7,8 +7,8 @@
"license": "GPL-3.0-or-later",
"main": "lib/index.ts",
"directories": {
"lib": "lib",
"test": "__tests__"
"doc": "docs",
"lib": "lib"
},
"files": [
"lib",

View file

@ -7,8 +7,8 @@
"license": "GPL-3.0-or-later",
"main": "lib/index.ts",
"directories": {
"lib": "lib",
"test": "__tests__"
"doc": "docs",
"lib": "lib"
},
"files": [
"lib",

View file

@ -7,8 +7,8 @@
"license": "GPL-3.0-or-later",
"main": "lib/index.ts",
"directories": {
"lib": "lib",
"test": "__tests__"
"doc": "docs",
"lib": "lib"
},
"files": [
"lib",

View file

@ -7,8 +7,8 @@
"license": "GPL-3.0-or-later",
"main": "lib/index.ts",
"directories": {
"lib": "lib",
"test": "__tests__"
"doc": "docs",
"lib": "lib"
},
"files": [
"lib",

View file

@ -12,8 +12,8 @@
"test": "echo \"Error: run tests from root\" && exit 1"
},
"directories": {
"lib": "lib",
"test": "__tests__"
"doc": "docs",
"lib": "lib"
},
"files": [
"lib",

View file

@ -1,8 +0,0 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = [
pkgs.nodejs
pkgs.nodePackages.lerna
];
}

View file

@ -6,10 +6,16 @@
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"lib": [ "esnext", "dom" ],
"plugins": [ { "name": "@vuedx/typescript-plugin-vue" } ],
"lib": [
"esnext",
"dom"
],
"plugins": [
{
"name": "@vuedx/typescript-plugin-vue"
}
],
"resolveJsonModule": true,
// "noErrorTruncation": true,
"allowSyntheticDefaultImports": true,
"paths": {}
}