1.0.1 • Published 3 years ago

@jzhsoft/m2-df2-scaffold v1.0.1

Weekly downloads
5
License
ISC
Repository
-
Last release
3 years ago

M2Df2Scaffold

本库是M2DF2.app框架的脚手架,可以通过相关命令行为初始框架装配不同开发场景的插件。

使用

使用命令 npm i @jzhsoft/m2-df2-scaffold , 安装m2.df2的脚手架

开发APP

ng g @jzhsoft/m2-df2-scaffold:app //安装相关框架核心文件,将框架改变为适合native开发,同时注入native相关的实现类
npm i  //安装app开发所需要的依赖
ionic cordova platform add android/ios  // 安装cordova插件(可以指定android/ios版本)

开发微信公众号

ng g @jzhsoft/m2-df2-scaffold:wx ,会安装wechat开发所需要的依赖,js文件,相关框架核心文件
npm i
修改df-ext里面的运行模式为:RUNMODE.WECHAT

开发钉钉微应用

ng g @jzhsoft/m2-df2-scaffold:dd ,会安装dingtalk开发所需要的依赖,js文件,相关框架核心文件
npm i
修改df-ext里面的运行模式为:RUNMODE.DINGTALK

Code scaffolding

Run ng generate component component-name --project m2-df2-scaffold to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project m2-df2-scaffold.

Note: Don't forget to add --project m2-df2-scaffold or else it will be added to the default project in your angular.json file.

Build

Run ng build m2-df2-scaffold to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build m2-df2-scaffold, go to the dist folder cd dist/m2-df2-scaffold and run npm publish.

Running unit tests

Run ng test m2-df2-scaffold to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

1.0.1

3 years ago

1.0.0

3 years ago

0.0.9

4 years ago

0.0.8

4 years ago