Quellcode durchsuchen

Update components linking

Add a mechanism for ordering components in component pages.
master
TheoryOfNekomata vor 1 Jahr
Ursprung
Commit
b4674f7f33
4 geänderte Dateien mit 16 neuen und 2 gelöschten Zeilen
  1. +1
    -1
      .amanuensis/next/src/components/PageLayout.tsx
  2. +1
    -0
      packages/amanuensis/TODO.md
  3. +6
    -0
      packages/amanuensis/amanuensis.d.ts
  4. +8
    -1
      packages/amanuensis/src/commands/refresh.ts

+ 1
- 1
.amanuensis/next/src/components/PageLayout.tsx Datei anzeigen

@@ -1,4 +1,4 @@
import { Preamble, Props, Playground } from '@/components/Amanuensis';
import { Preamble, Props, Playground } from '@tesseract-design/amanuensis-react';

export const PageLayout = () => {
return (


+ 1
- 0
packages/amanuensis/TODO.md Datei anzeigen

@@ -1,3 +1,4 @@
- [ ] Resolve `refresh` command TODOs
- [ ] Integrate components
- [ ] Add `build` command to create static file of the Next app
- [ ] Replace `serve` with `dev`? (for interactive development, have to figure out how to properly manage changes tho)

+ 6
- 0
packages/amanuensis/amanuensis.d.ts Datei anzeigen

@@ -0,0 +1,6 @@
declare module '@tesseract-design/amanuensis-react' {
import { FC } from 'react';
export const Preamble: FC;
export const Props: FC;
export const Playground: FC;
}

+ 8
- 1
packages/amanuensis/src/commands/refresh.ts Datei anzeigen

@@ -31,8 +31,15 @@ const linkComponents = async (cwd: string) => {
const projectCwd = resolve(cwd, '.amanuensis');
const defaultCwd = await useInternalPath('src', 'next');
const destCwd = await useInternalPath('.amanuensis', 'next', 'src');

// todo merge package.json

const componentsList = [
'components/Wrapper.tsx',
'next/src/components/Wrapper.tsx',
'next/src/components/PageLayout.tsx',
'next/src/components/theme.ts',
'next/src/components/postcss.config.js',
'next/src/components/tailwind.config.js',
];

try {


Laden…
Abbrechen
Speichern