npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mtl-apps

v0.2.0

Published

## 1、环境准备

Downloads

6

Readme

基于 mtl 快速上手 App 开发

1、环境准备

以在 Mac 上开发为例。

  • 全局 Node.js 环境
  • 安装 XCode 开发工具(XCode 配置:Mac OSX下打开Xcode编辑器的Menu -> Preferences -> Locations,然后配置命令行工具选择Xcode。)

2、下载和安装

  1. Install the react-native-cli
$ npm install -g react-native-cli
  1. 初始化应用
# 用友内部开发者可使用 ynpm 加速下载
$ git clone [email protected]:iuap-design/mtl.git
$ cd packages/mtl-apps & npm install
  1. npm run ios 启动应用,需要等待近 5 分钟,可以去泡杯咖啡。启动后会自动打开 CLI 命令行,并打开模拟器。如下:

3、框架能力集成

  1. 基础框架/类库:React Native 、React;
  2. 应用导航方案:react-navigation;
  3. 应用状态管理:redux、react-redux;
  4. 数据管理:Immutable.js、redux-immutable;
  5. 持久化方案:redux-persist、AsyncStorage、redux-persist-immutable(Immutable化状态树的持久化);
  6. 异步方案:redux-saga(网络请求,异步读取本地数据等);
  7. 测试:jest;
  8. 调试工具:reactotron(跟踪sagas、查看应用程序状态、显示log。。。)

4、项目结构说明

src - 
├── api - 应用网络请求相关配置
├── app.js  - React Native部分入口js文件
├── components  - 可复用纯UI组件,也可作elements
├── config  - 应用全局配置
├── constants - 应用全局变量
├── containers  - 容器组件
├── helpers - 全局工具/辅助方法
├── middlewares - 中间件
├── redux - redux目录
├── routes  - 应用导航路由配置
├── sagas - 应用异步任务管理sagas目录
├── screens - 应用组件屏目录,通常是展示型组件
└── services  - 应用内服务模块目录,如应用状态持久化及恢复服务

5、开发文档

TODO...