
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
nornj-cli-legacy
Advanced tools
The CLI for scaffolding NornJ template projects, and do more things.
npm install -g nornj-cli-legacy
njl init
# 请按上下键选择项目模板
Please select a project template:
> react-mst-universal
react-mst-app
react-mst
react-mobx
other
# 如果选择了other,则可输入任意模板名称
Template Name: anyTemplateName
# 输入新建的项目目录名称
Project Name: projectName
njl add-page [pageName] # 或njl ap
# 请选择生成时要使用的页面模板
Which page template do you want to use?
> default # 增删改查
chart # 图表
form # 表单
empty # 空页面
# 输入新创建的页面名称
Page Name: pageName
njl add-component [componentName] # 或njl ac
# 请选择生成时要使用的组件模板
Which component template do you want to use?
> default # 默认
stateless # 无状态组件
higher-order # 高阶组件
# 输入新创建的组件名称
Component Name: componentName
njl add-store [storeName] # 或njl as
# 请选择生成时要使用的Store模板
Which store template do you want to use?
> default # 默认使用axios
default-fetch # 使用fetch
# 输入新创建的Store名称
Store Name: storeName
| 名称 | 描述 | 模板源码地址 |
|---|---|---|
| react-mst-universal | 基于React+Mobx-state-tree的单页面项目
| https://github.com/joe-sky/nornj-cli/tree/master/templates/react-mst-universal |
| react-mst-app | react-mst-universal的h5版,配置同上 | https://github.com/joe-sky/nornj-cli/tree/master/templates/react-mst-app |
| react-mst | 基于React+Mobx-state-tree的单页面项目
| https://github.com/joe-sky/nornj-cli/tree/master/templates/react-mst |
| react-mobx | 基于React+Mobx的多页面项目 | https://github.com/joe-sky/nornj-cli/tree/master/templates/react-mobx |
| joe-sky/react-mobx-html | 基于React+Mobx的多页面项目(html版) | https://github.com/joe-sky/react-mobx-html |
| joe-sky/react-mobx-ftl | 基于React+Mobx的多页面项目(FreeMarker版) | https://github.com/joe-sky/react-mobx-ftl |
在github上创建一个新的模板项目即可,结构类似于react-mobx-html或react-mobx-ftl。
然后使用以下命令即可下载并初始化:
njl init
# 请按上下键选择项目模板
Please select a project template:
react-mst-universal
react-mst-app
react-mst
react-mobx
> other
# 选择other,然后按照github地址输入"用户(或组织)名/项目名",例如"https://github.com/joe-sky/react-mobx-html"中的"joe-sky/react-mobx-htm"
Template Name: UserName/ProjectName
njl -v
njl upgrade # 更新cli版本到最新版
与npm install相同,区别在于部署在私服上的包会自动从私服安装:
njl install # 或njl i
与npm update相同,区别在于部署在私服上的包会自动从私服更新:
njl update # 或njl up
当网络访问npm比较慢时,可选择使用npm国内镜像来安装。方法为在各命令后添加--cnpm参数:
njl init --cnpm
njl upgrade --cnpm
njl install --cnpm
njl update --cnpm
MIT
FAQs
The CLI for scaffolding NornJ template projects, and do more things
The npm package nornj-cli-legacy receives a total of 1 weekly downloads. As such, nornj-cli-legacy popularity was classified as not popular.
We found that nornj-cli-legacy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.