Socket
Socket
Sign inDemoInstall

martian-cli

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

martian-cli

Martian Cli 初始化框架项目工具


Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 19 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc