Skip to content

Commit

Permalink
add wechat
Browse files Browse the repository at this point in the history
  • Loading branch information
meepobrother committed May 4, 2019
1 parent 7395b8c commit 75004b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/nger-compiler-preact/lib/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const root = process.cwd();
import { FILE_SYSTEM } from 'nger-core'
import { componentTransformerFactory } from './transformer_factorys/component'
export const preactTask: Task = async (file: string, opt: string, injector: Injector) => {
if (file.endsWith('.ts') || file.endsWith('.tsx')) {
if (file.endsWith('.ts') || file.endsWith('.tsx') || file.endsWith('.html')) {
const metadata = metadataCache.get(file);
const fs = injector.get(FILE_SYSTEM)
const babel = injector.get(NgerCompilerBabel)
Expand All @@ -36,7 +36,7 @@ export const preactTask: Task = async (file: string, opt: string, injector: Inje
}
}
}
if (hasHandlerFileCache.has(file)) {} else {
if (hasHandlerFileCache.has(file)) { } else {
const code = babel.compile(file, {});
const controllerPath = join(root, '.temp', `${noExtPath}.js`);
fs.writeFileSync(controllerPath, code)
Expand Down
7 changes: 5 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,8 @@ nger start [-p 4200]
- [ ] nger start 启动框架
- [ ] nger publish nger-demo 发布模块

## 资助
<p><img width="220" src="./docs/WechatIMG95.jpeg"></p>
## 联系or资助
<p>
<img width="220" src="./docs/WechatIMG95.jpeg">
<img width="220" src="./wechat.png">
</p>
Binary file added wechat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 75004b9

Please sign in to comment.