Coder Social home page Coder Social logo

naruse-elem's Introduction

Naruse

しろは なるせ(shiroha naruse) 白羽 鸣濑是一名鸟白岛上的巫女,经常站在海岸边眺望大海。

Naruse是一个在小程序内支持使用 react 开发,同时在小程序内部支持 热更新 的解决方案 特性

🔥 原生react开发体验(生命周期,多组件开发,你想要的都有)

🚀 热更新代码(无需等待小程序繁琐的审核!)

🧱 完善的配套开发工具(webpack插件, 类型提示...)

安装依赖

pnpm

快速体验

# 编译最新版本代码
pnpm build
# alipay
pnpm demo:alipay
# 修改 /demo/demo-alipay/advert/index.tsx 动态刷新效果
# 使用淘宝或者支付宝开发者小程序打开 /demo/demo-alipay 即可

开发相关

因为 naruse 可能会经常涉及到多个库之间依赖运行,例如:naruse-webpack-runner 与 naruse-alipay 与 react-like-hooks 同时运行的情况,所以推荐使用 concurrently 运行多个开发

例子:

# 以 naruse-webpack-runner 的 demo 与 naruse-alipay 为例
pnpm concurrently --kill-others-on-fail "pnpm --filter naruse-webpack-runner dev:demo" "pnpm --filter naruse-alipay dev"

新增版本

naruse 需要新增版本时,需要使用 changeset 来管理版本号,具体使用方法可以参考 changeset

# 1. 新增版本更新内容,根据修改内容选择不同的更迭版本
# 如果有多次修改则需要多次执行
pnpm changeset add

# 2. 生成版本号
pnpm changeset version

# 3. 重新打包
pnpm build

# 4. 合并到主分支

naruse-elem's People

Contributors

barrierml avatar gaooly avatar byte-n avatar ding2650 avatar wutengqing avatar pangxiaodun avatar qingyan71 avatar wsafight avatar smallspongebob avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.