Skip to content

Commit

Permalink
制定目录规范
Browse files Browse the repository at this point in the history
  • Loading branch information
meepobrother committed May 4, 2019
1 parent 169fb0b commit 29c2a37
Show file tree
Hide file tree
Showing 65 changed files with 674 additions and 524 deletions.
1 change: 0 additions & 1 deletion addon/nger-addon/readme.md

This file was deleted.

23 changes: 23 additions & 0 deletions addon/nger-install/admin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { NgModule } from 'nger-core';
import pages, { NgerInstallPage } from './template';
import incs from './inc';
import { NgerInstallTypeorm } from './typeorm';

@NgModule({
declarations: [
// 模板
...pages,
// 控制器
...incs
],
providers: [],
bootstrap: [
// 默认跳转页面
NgerInstallPage
],
imports: [
// 数据库
NgerInstallTypeorm
]
})
export class NgerInstallAdminModule { }
23 changes: 23 additions & 0 deletions addon/nger-install/app.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { NgModule } from 'nger-core';
import pages, { NgerInstallPage } from './template';
import incs from './inc';
import { NgerInstallTypeorm } from './typeorm';

@NgModule({
declarations: [
// 模板
...pages,
// 控制器
...incs
],
providers: [],
bootstrap: [
// 默认跳转页面
NgerInstallPage
],
imports: [
// 数据库
NgerInstallTypeorm
]
})
export class NgerInstallAppModule { }
6 changes: 4 additions & 2 deletions addon/nger-install/inc/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { NgerInstallController } from './install'


export default [];
export default [
NgerInstallController
];
8 changes: 8 additions & 0 deletions addon/nger-install/inc/install.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Controller } from 'nger-core'
import { NgerInstallService } from './services/install'
@Controller({
path: '/'
})
export class NgerInstallController {
constructor(public service: NgerInstallService){}
}
4 changes: 4 additions & 0 deletions addon/nger-install/inc/services/install.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { Injectable } from 'nger-core'

@Injectable()
export class NgerInstallService { }
27 changes: 4 additions & 23 deletions addon/nger-install/index.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
import { NgModule } from 'nger-core';
import pages, { NgerInstallPage } from './template';
import incs from './inc';
import { NgerInstallTypeorm } from './typeorm';

@NgModule({
declarations: [
// 模板
...pages,
// 控制器
...incs
],
providers: [],
bootstrap: [
// 默认跳转页面
NgerInstallPage
],
imports: [
// 数据库
NgerInstallTypeorm
]
})
export class NgerInstallModule { }
export * from './admin'
export * from './app'
export * from './pc'
export * from './server'
15 changes: 14 additions & 1 deletion addon/nger-install/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
{
"name": "nger-install"
"name": "nger-install",
"description": "系统安装",
"version": "1.0",
"author": {
"email": "1037483576@qq.com",
"name": "nger"
},
"nger": {
"server": "./server",
"admin": "./admin",
"app": "./app",
"pc": "./pc"
},
"icon": "./icon.png"
}
23 changes: 23 additions & 0 deletions addon/nger-install/pc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { NgModule } from 'nger-core';
import pages, { NgerInstallPage } from './template';
import incs from './inc';
import { NgerInstallTypeorm } from './typeorm';

@NgModule({
declarations: [
// 模板
...pages,
// 控制器
...incs
],
providers: [],
bootstrap: [
// 默认跳转页面
NgerInstallPage
],
imports: [
// 数据库
NgerInstallTypeorm
]
})
export class NgerInstallPcModule { }
50 changes: 33 additions & 17 deletions addon/nger-install/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,40 @@
## 源码
- [x] `addon`
- [x] `ims-install`
- [ ] `inc` 控制器,服务端
- [ ] `template` 模板
- [ ] `typeorm` 数据库
- [ ] `index.ts` 模块入口
- [ ] `package.json` 插件描述
- [x] `inc` 控制器,服务端
- [x] `template` 模板
- [x] `typeorm` 数据库
- [x] `index.ts` 导出模块
- [x] `server.ts` 服务端
- [x] `pc.ts` pc端
- [x] `app.ts` app端
- [x] `admin` 管理端
- [x] `package.json` 模块详情
- [x] `name`: 模块名,
- [x] `description`: 模块描述
- [x] `version`: 模块版本号,
- [x] `author` 模块作者
- [x] `email`: 作者邮箱,
- [x] `name`: 作者名称
- [x] nger: 入口信息
- [x] `server`: 制定服务端入口,
- [x] `admin`: 制定管理端入口,
- [x] `app`: 制定移动端入口,
- [x] `pc`: 制定pc端入口
- [x] icon: 模块图标

## 编译后
- [x] `addon`
- [x] `ims-install`
- [ ] `pc` pc网站
- [ ] `admin` 管理
- [ ] `ttapp` 字节跳动
- [ ] `aliapp` 支付宝
- [ ] `weapp` 微信小程序
- [ ] `wechat` 微信浏览器
- [ ] `h5` 手机网站
- [ ] `ios` ios端
- [ ] `android` 安卓端
- [ ] `index.js` // 插件,可安装卸载更新
- [ ] `server.js` // 可独立运行,nger start addon/ims-install/server.js -p 4200
- [ ] `package.json` // 插件描述
- [x] `pc` pc网站
- [x] `admin` 管理
- [x] `ttapp` 字节跳动
- [x] `aliapp` 支付宝
- [x] `weapp` 微信小程序
- [x] `wechat` 微信浏览器
- [x] `h5` 手机网站
- [x] `ios` ios端
- [x] `android` 安卓端
- [x] `index.js` // 插件,可安装卸载更新
- [x] `server.js` // 可独立运行,nger start addon/ims-install/server.js -p 4200
- [x] `package.json` // 插件描述
23 changes: 23 additions & 0 deletions addon/nger-install/server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { NgModule } from 'nger-core';
import pages, { NgerInstallPage } from './template';
import incs from './inc';
import { NgerInstallTypeorm } from './typeorm';

@NgModule({
declarations: [
// 模板
...pages,
// 控制器
...incs
],
providers: [],
bootstrap: [
// 默认跳转页面
NgerInstallPage
],
imports: [
// 数据库
NgerInstallTypeorm
]
})
export class NgerInstallServerModule { }
3 changes: 3 additions & 0 deletions addon/nger-install/template/install/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h2{
font-size: 14px;
}
7 changes: 5 additions & 2 deletions addon/nger-install/template/install/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ import { Page } from 'nger-core';
@Page({
path: '/install',
title: 'nger系统安装',
styleUrls: [
"./index.scss"
],
type: ['pc']
})
export class NgerInstallPage {

title: string;
render() {
return <div>
<h2 className="title">欢迎使用Nger平台</h2>
<h2 className="title">{this.title || '欢迎使用Nger平台'}</h2>
<div className="step1">
<h4 className="title">管理员</h4>
<input type="text" placeholder="站长用户名" />
Expand Down
22 changes: 22 additions & 0 deletions addon/nger-install/template/minstall/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Page } from 'nger-core';
import { View, Swiper, SwiperItem } from 'nger-ui';

@Page({
path: '/app/install',
title: 'nger系统安装',
type: ['app']
})
export class NgerInstallPage {
title: string;
show: boolean;
items: { title: string }[] = [];
render() {
return <View
style={{ height: '10px', width: '100px' }}
>
<Swiper className="">
{this.items.map(itme => <SwiperItem>{itme.title}</SwiperItem>)}
</Swiper>
</View>
}
}
2 changes: 0 additions & 2 deletions addon/nger-starter/readme.md

This file was deleted.

Empty file removed addon/nger-todo/admin.ts
Empty file.
Empty file removed addon/nger-todo/app.ts
Empty file.
Empty file removed addon/nger-todo/pc.ts
Empty file.
1 change: 0 additions & 1 deletion addon/nger-todo/readme.md

This file was deleted.

Empty file removed addon/nger-todo/server.ts
Empty file.
4 changes: 0 additions & 4 deletions addon/nger-todo/template/admin/components/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions addon/nger-todo/template/admin/task-edit/index.scss

This file was deleted.

14 changes: 0 additions & 14 deletions addon/nger-todo/template/admin/task-edit/index.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions addon/nger-todo/template/admin/task-list/index.controller.ts

This file was deleted.

3 changes: 0 additions & 3 deletions addon/nger-todo/template/admin/task-list/index.scss

This file was deleted.

12 changes: 0 additions & 12 deletions addon/nger-todo/template/admin/task-list/index.tsx

This file was deleted.

19 changes: 19 additions & 0 deletions lerna-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
0 silly argv { _: [ 'create' ],
0 silly argv lernaVersion: '3.13.1',
0 silly argv '$0': 'lerna',
0 silly argv name: 'nger-compiler-client' }
1 notice cli v3.13.1
2 verbose rootPath /Volumes/imeepos/nger
3 error Error: canceled
3 error at Interface.<anonymous> (/usr/local/lib/node_modules/lerna/node_modules/read/lib/read.js:66:13)
3 error at Interface.emit (events.js:189:13)
3 error at Interface._ttyWrite (readline.js:783:16)
3 error at ReadStream.onkeypress (readline.js:168:10)
3 error at ReadStream.emit (events.js:189:13)
3 error at emitKeys (internal/readline.js:424:14)
3 error at emitKeys.next (<anonymous>)
3 error at ReadStream.onData (readline.js:1022:36)
3 error at ReadStream.emit (events.js:189:13)
3 error at addChunk (_stream_readable.js:284:12)
3 error at readableAddChunk (_stream_readable.js:265:11)
3 error at ReadStream.Readable.push (_stream_readable.js:220:10)
10 changes: 9 additions & 1 deletion packages/nger-compiler-client/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# `nger-compiler-client`

> 客户端编译
> TODO: description
## Usage

```
const ngerCompilerClient = require('nger-compiler-client');
// TODO: DEMONSTRATE API
```
7 changes: 7 additions & 0 deletions packages/nger-compiler-client/__tests__/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { createPlatformFactory, NgModule } from 'nger-core'
import ngerPlatformNode from 'nger-platform-node'
import providers from '../lib'
@NgModule()
export class NgerCompilerTestModule { }
createPlatformFactory(ngerPlatformNode, 'test', providers)([]).bootstrapModule(NgerCompilerTestModule)

This file was deleted.

Loading

0 comments on commit 29c2a37

Please sign in to comment.