Skip to content

Commit

Permalink
refactor: clean up meta (#1894)
Browse files Browse the repository at this point in the history
* refactor: clean up meta

* chore: clean up
  • Loading branch information
zombieJ committed Sep 14, 2023
1 parent a42dfb2 commit bf55a95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/features/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ export default (api: IApi) => {
initialValue: JSON.parse(JSON.stringify(metaFiles)),
});

api.writeTmpFile({
noPluginDir: true,
path: 'dumi/meta/index.ts',
tplPath: winPath(join(TEMPLATES_DIR, 'meta.ts.tpl')),
context: {
metaFiles: parsedMetaFiles,
},
});
// api.writeTmpFile({
// noPluginDir: true,
// path: 'dumi/meta/index.ts',
// tplPath: winPath(join(TEMPLATES_DIR, 'meta.ts.tpl')),
// context: {
// metaFiles: parsedMetaFiles,
// },
// });

api.writeTmpFile({
noPluginDir: true,
Expand Down
2 changes: 1 addition & 1 deletion src/templates/ContextWrapper.ts.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef } from 'react';
import { useOutlet, history } from 'dumi';
import { warning } from 'rc-util';
import { SiteContext, type ISiteContext } from '{{{contextPath}}}';
import { components } from '../meta';
import { components } from '../meta/atoms';
import { getDemoById } from '../meta/demos';
import { locales } from '../locales/config';
{{{defaultExport}}}
Expand Down

0 comments on commit bf55a95

Please sign in to comment.