next-stag

2.0.1 • Public • Published

next-stag (A progressive staging cli for building SSR web project)


First, create project folder:

mkdir & cd your-project

Installing


Via npm:

npm install next-stag -g
next-stag init

or

npx next-stag init

Enter your project name and cdn directory as follow tips:

✔ 请输入项目名称:  … za-bank
? 请选择CDN存放目录:  › - Use arrow-keys. Return to submit.
❯   bank
    life
    zati
    care

Wait a moment, auto fetch the origin project and invoke npm install

⠋ 正在拉取种子项目...
✔ 拉取完成!

⠋ 开始安装node_modules模块
...
...
...
audited 2178 packages in 13.268s
found 11 vulnerabilities (4 low, 1 moderate, 6 high)
✔ 模块安装完成!
✔ 项目初始化完成,请执行 npm run start 进入开发!感谢使用 ^_^
✔ 注意!!!启动项目之前,请联系运维同事确认该项目部署区域,确认国际化内容接口走broker还是内网api,然后修改deploy.config.js内的i18nHost。

Well done ! Let's coding


更新日志

  • 1.0.6

    修复国际化资源文件生成导致的git冲突问题

  • 1.0.7

    修复国际化初始化的一些问题

  • 1.0.8

    调整获取国际化文案接口的项目名称为package.json的项目名称

  • 1.0.9

    优化CDN配置参数,修复已知问题

  • 1.0.10

    取消国际化进程阻塞启动流程

  • 2.0.0

    next.js版本架构升级,优化国际化、本地降低方案、打包方式等

Readme

Keywords

Package Sidebar

Install

npm i next-stag

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

2.58 MB

Total Files

243

Last publish

Collaborators

  • yangjd