All Projects → ivan-94 → jm-cli

ivan-94 / jm-cli

Licence: MIT License
CLI for build Typescript React App.

Programming Languages

typescript
32286 projects
HTML
75241 projects

Projects that are alternatives of or similar to jm-cli

discord-10man
Discord bot for CS:GO Scrims and Pugs
Stars: ✭ 34 (+161.54%)
Mutual labels:  pug
egg-view-pug
egg view plugin for pug.
Stars: ✭ 24 (+84.62%)
Mutual labels:  pug
kontent-boilerplate-express-apollo
Kontent Boilerplate for development of Express application using Apollo server and GraphQL.
Stars: ✭ 21 (+61.54%)
Mutual labels:  pug
generator-speedseed
Oriented to components, allow create/choice template, multiple configuration with easy maintenance
Stars: ✭ 13 (+0%)
Mutual labels:  pug
typescript-nuxtjs-boilerplate
🍱 Nuxt.js with TypeScript and Run with docker and docker-compose 🐶🦄🔥 visit: https://typescript-nuxtjs-boilerplate.netlify.com/example
Stars: ✭ 51 (+292.31%)
Mutual labels:  pug
meetup-cookbook
Dicas de como organizar um meetup no PUG-PE sem estresse ❤️
Stars: ✭ 36 (+176.92%)
Mutual labels:  pug
quasar-starter-ssr-pwa-jest-cypress
Accelerated starter kit for building a quasar 17 app.
Stars: ✭ 49 (+276.92%)
Mutual labels:  pug
virtual-jade
Compile Jade templates to Hyperscript for Virtual DOM libraries
Stars: ✭ 31 (+138.46%)
Mutual labels:  pug
aurelia-mdc-bridge
Aurelia Mdc Bridge is a collection of wrappers for Material Design Components.
Stars: ✭ 19 (+46.15%)
Mutual labels:  pug
PugNotification
Strongly typed notifications for Swift. You might not need the pug parts.
Stars: ✭ 13 (+0%)
Mutual labels:  pug
pug4py
Use Pug.js within any python framework
Stars: ✭ 17 (+30.77%)
Mutual labels:  pug
wololock.github.io
e.printstacktrace.blog source code
Stars: ✭ 12 (-7.69%)
Mutual labels:  pug
lsxc
Compile Livescript + Pug + React + SASS as a single component
Stars: ✭ 17 (+30.77%)
Mutual labels:  pug
pug-server
🐶 A simple pug server
Stars: ✭ 19 (+46.15%)
Mutual labels:  pug
preview-vscode
A previewer of Markdown and HTML for Visual Studio Code
Stars: ✭ 25 (+92.31%)
Mutual labels:  pug
gulp-boilerplate
Gulp boilerplate
Stars: ✭ 24 (+84.62%)
Mutual labels:  pug
html2pug-website
Convert HTML to Pug
Stars: ✭ 28 (+115.38%)
Mutual labels:  pug
web-generator
👑 Gulp based task runner which creates HTML output from Pug HTML templates
Stars: ✭ 13 (+0%)
Mutual labels:  pug
nestjs-mailer
🌈 A simple implementation example with and without email-templates using mailer module for nest js built on top of nodemailer.
Stars: ✭ 82 (+530.77%)
Mutual labels:  pug
vue-bootstrap-boilerplate
📦 Vue 2/3, Bootstrap 5, Vuex, Vue-Router, Sass/Scss, ESLint, Axios (switch to vue3 branch)
Stars: ✭ 86 (+561.54%)
Mutual labels:  pug

CLI

Getting Started

CLI for build Typescript & React App jm-cli 是 mygzb 前端团队使用的项目运行和构建工具。提供了高性能, 强团队编码规范, 约定大于配置的构建环境. 可以让开发者更专注于业务的开发, 增强项目的可维护性.

安装

yarn global add @gdjiami/cli
# or
npm i -g @gdjiami/cli

jm help

jm-cli 支持在全局模式调用,也支持作为项目的依赖调用。我们推荐后者,因为他和项目是绑定版本的,不会应该版本不兼容而无法运行。

创建项目

jm create my-app

上面的命令将创建一个默认的项目。 项目结构如下:

my-app
├── README.md
├── node_modules
├── package.json
├── yarn.lock
├── global.d.ts
├── tsconfig.json
├── tslint.json
├── .gitignore
├── .env
├── .env.production
├── .env.development
├── public
└── src
    ├── layouts
    |   └── layout.pug
    ├── css
    |   └── ...
    ├── components
    |   └── ...
    ├── containers
    |   └── ...
    ├── admin.pug
    ├── admin.tsx
    ├── index.pug
    └── index.tsx

jm-cli 天然支持多页应用,这里的 admin.pug 和 index.pug 就是两个应用入口。jm-cli 会搜索与它们同名的 Typescript 入口文件。 项目结构的具体详情将在 Folder Structure 中说明。现在可以打开项目目录运行:

cd my-app

NPM Scripts

新创建的项目会内置以下命令

start

在开发服务器中运行,默认运行在 8080 端口,在启动成功后会自动开发默认浏览器.

build

编译生产环境包,资源将输出到 dist 目录

serve

运行生产环境包。这个命令会采用和 start 一样的配置(例如端口和代理配置)来运行服务器,方便测试生产环境包.

analyze

对 webpack 的生产环境包构建进行分析,方便开发者对应用进行拆包优化.

License

jm-cli is open source software licensed as MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].