Skip to content

Commit

Permalink
refactor(alita): 生成小程序组件文件交由extractWxCompFiles/extract** 实现,删除无用gene代码
Browse files Browse the repository at this point in the history
  • Loading branch information
ykforerlang committed Dec 10, 2019
1 parent dc6b022 commit bb8e14f
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 292 deletions.
45 changes: 0 additions & 45 deletions src/tran/geneJS.ts

This file was deleted.

53 changes: 0 additions & 53 deletions src/tran/geneJSON.ts

This file was deleted.

137 changes: 0 additions & 137 deletions src/tran/geneWxml.ts

This file was deleted.

44 changes: 0 additions & 44 deletions src/tran/geneWxss.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/tran/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ import funcCompToClassComp from './funcCompToClassComp'
import childrenToTemplate from './childrenToTemplate'
import compPreHandle from './compPreHandle'
import addTempName from './addTempName'
import handleImportExpre from './handleImportExpre'
import geneJS from './geneJS'
import geneWxml from './geneWxml'
import geneWxss from './geneWxss'
import geneJSON from './geneJSON'
import geneAllTemplate from "./geneAllTemplate";
import compOutElementToBlock from './compOutElementToBlock'
import addEventHandler from './addEventHandler'
Expand Down Expand Up @@ -62,8 +57,6 @@ export default function (ast, filepath, isFuncComp, isPageComp, webpackContext)

ast = addTempName(ast, info)

//ast = handleImportExpre(ast, info)

ast = childrenToTemplate(ast, info)

const reactCode = geneReactCode(ast)
Expand All @@ -76,12 +69,6 @@ export default function (ast, filepath, isFuncComp, isPageComp, webpackContext)

ast = geneAllTemplate(ast, info)

//geneWxml(info)
//geneJSON(info)
//geneJS(info)
//geneWxss(info)


// 设置React 组件信息
setRFModuleInfo(filepath, info)

Expand Down

0 comments on commit bb8e14f

Please sign in to comment.