|
@@ -31,8 +31,15 @@ const linkComponents = async (cwd: string) => { |
|
|
const projectCwd = resolve(cwd, '.amanuensis'); |
|
|
const projectCwd = resolve(cwd, '.amanuensis'); |
|
|
const defaultCwd = await useInternalPath('src', 'next'); |
|
|
const defaultCwd = await useInternalPath('src', 'next'); |
|
|
const destCwd = await useInternalPath('.amanuensis', 'next', 'src'); |
|
|
const destCwd = await useInternalPath('.amanuensis', 'next', 'src'); |
|
|
|
|
|
|
|
|
|
|
|
// todo merge package.json |
|
|
|
|
|
|
|
|
const componentsList = [ |
|
|
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 { |
|
|
try { |
|
|