0.1.7 • Published 7 years ago

martian-cli v0.1.7

Weekly downloads
10
License
GPL-3.0+
Repository
github
Last release
7 years ago

npm npm GitHub release GitHub issues Node Version

Martian Template

Frame template for weex-framevue-frame .

Install

$ npm install -g martian-cli

Usage

init weex

Usage: martian init:weex [projectName]

一、 项目结构

weex-frame
├── android (android项目)
│       
├── ios (ios项目代码)
│
├── src (weex模块)
│      ├── api (api模块)
│      ├── components (组件模块) 
│      ├── constants (常量配置)   
│      ├── utils (工具模块)   
│      └── views (视图模块)  
│
└── dist (build输出模块)
       ├── weex (native使用jsbundle)
       └── web (web使用jsbundle) 

二、 项目启动

// 1、 安装weexpack
npm install -g weexpack
// 2、 安装依赖
npm install
// 3、 启动serve
./start
// 4、设置调试环境
// 调试本地serve
npm run init serve
// 调试assets或者jsbundle文件
npm run init local

1、 android 启动

  • 打开andorid studio
  • File -> New -> Import Project -> {{name}}/android -> 启动

或者:

weexpack run android

2、 iOS 启动

  • cd ios
  • pod install (未安装pod,请先安装)
  • open WeexFrame.xcworkspace

或者:

weexpack run ios

3、 h5 启动方式

或者:

weexpack run web

init vue

Usage: martian init:vue [projectName]

一、 项目结构

vue-frame
│
├── build (webpack 打包配置)
│       
├── config (环境配置)
│
├── test (测试模块)
│
└── src (主业务)
    │
    ├── api (api模块)
    ├── assets (api模块)
    ├── components(组件模块) 
    ├── pages (界面)
    ├── router (路由)
    ├── store (vuex)
    └── utils (工具模块)   

二、 项目启动

npm run dev
0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago