Kunlun architecture element generation based on Angular schematics 🎬

Overview

Kunlun Logo

A fullstack(NestJS、React) framework for building efficient and scalable applications.

NPM Version Package License NPM Downloads Coverage CircleCI

Description

The Kunlun CLI is a command-line interface tool that helps you to initialize, develop, and your Kunlun application. It assists in multiple ways, including scaffolding the project, serving it in development mode, and building and bundling the application for production distribution. It embodies best-practice architectural patterns to encourage well-structured app. Read more here.

Installation

npm install -g @kunlunjs/schematics
# or
yarn global add @kunlunjs/schematics

Usage

Developing

Install @angular-devkit/schematics-cli to be able to use schematics command

npm i -g @angular-devkit/schematics-cli
# or
yarn global add @angular-devkit/schematics-cli

Now build the schematics and run the schematics.

npm run build

# --dry-run
schematics .:application

# execute schematics
schematics .:application --debug false
# or
schematics .:application --dry-run false
# or
schematics .:application --type nest-prisma-restful --dry-run false

Helpful

Helpful article about Custom Angular Schematics which also applies to Kunlun.

Stay in touch

License

Kunlun is MIT licensed.

Comments
  • feat: ✨ adopt cli pass json string

    feat: ✨ adopt cli pass json string

    PR Checklist

    Please check if your PR fulfills the following requirements:

    • [ ] The commit message follows our guidelines: https://github.com/turing-fe/kunlun-schematics/blob/main/CONTRIBUTING.md
    • [ ] Tests for the changes have been added (for bug fixes / features)
    • [ ] Docs have been added / updated (for bug fixes / features)

    PR Type

    What kind of change does this PR introduce?

    [ ] Bugfix
    [x] Feature
    [ ] Code style update (formatting, local variables)
    [ ] Refactoring (no functional changes, no api changes)
    [ ] Build related changes
    [ ] CI related changes
    [ ] Other... Please describe:
    

    What is the current behavior?

    Issue Number: N/A

    What is the new behavior?

    Does this PR introduce a breaking change?

    [ ] Yes
    [x] No
    

    Other information

    opened by bigfang 0
  • fix: 🐛 fix nest-cli.json

    fix: 🐛 fix nest-cli.json

    PR Checklist

    Please check if your PR fulfills the following requirements:

    • [ ] The commit message follows our guidelines: https://github.com/turing-fe/kunlun-schematics/blob/main/CONTRIBUTING.md
    • [ ] Tests for the changes have been added (for bug fixes / features)
    • [ ] Docs have been added / updated (for bug fixes / features)

    PR Type

    What kind of change does this PR introduce?

    [x] Bugfix
    [ ] Feature
    [ ] Code style update (formatting, local variables)
    [ ] Refactoring (no functional changes, no api changes)
    [ ] Build related changes
    [ ] CI related changes
    [ ] Other... Please describe:
    

    What is the current behavior?

    Issue Number: N/A

    What is the new behavior?

    Does this PR introduce a breaking change?

    [x] Yes
    [ ] No
    

    Other information

    opened by bigfang 0
  • generate module basicly

    generate module basicly

    PR Checklist

    Please check if your PR fulfills the following requirements:

    • [ ] The commit message follows our guidelines: https://github.com/turing-fe/kunlun-schematics/blob/main/CONTRIBUTING.md
    • [ ] Tests for the changes have been added (for bug fixes / features)
    • [ ] Docs have been added / updated (for bug fixes / features)

    PR Type

    What kind of change does this PR introduce?

    [ ] Bugfix
    [x] Feature
    [ ] Code style update (formatting, local variables)
    [ ] Refactoring (no functional changes, no api changes)
    [ ] Build related changes
    [ ] CI related changes
    [ ] Other... Please describe:
    

    What is the current behavior?

    Issue Number: N/A

    What is the new behavior?

    Does this PR introduce a breaking change?

    [x] Yes
    [ ] No
    

    Other information

    opened by bigfang 0
  • 能够新增模块

    能够新增模块

    Is there an existing issue that is already proposing this?

    • [X] I have searched the existing issues

    Is your feature request related to a problem? Please describe it

    用于增加 module

    Describe the solution you'd like

    类似于 nest generate res 命令

    Teachability, documentation, adoption, migration strategy

    根据 kl.config.json ,生成 crud 代码

    What is the motivation / use case for changing the behavior?

    为了方便

    enhancement 
    opened by bigfang 0
  • 增加graphql项目模板

    增加graphql项目模板

    PR Checklist

    Please check if your PR fulfills the following requirements:

    • [x] The commit message follows our guidelines: https://github.com/turing-fe/kunlun-schematics/blob/main/CONTRIBUTING.md
    • [x] Tests for the changes have been added (for bug fixes / features)
    • [x ] Docs have been added / updated (for bug fixes / features)

    PR Type

    What kind of change does this PR introduce?

    [ ] Bugfix
    [x] Feature
    [ ] Code style update (formatting, local variables)
    [ ] Refactoring (no functional changes, no api changes)
    [ ] Build related changes
    [ ] CI related changes
    [ ] Other... Please describe:
    

    What is the current behavior?

    Issue Number: N/A

    What is the new behavior?

    Does this PR introduce a breaking change?

    [ ] Yes
    [x] No
    

    Other information

    opened by bigfang 0
  • feat(taro): create template taro/react

    feat(taro): create template taro/react

    PR Checklist

    Please check if your PR fulfills the following requirements:

    • [x] The commit message follows our guidelines: https://github.com/turing-fe/kunlun-schematics/blob/main/CONTRIBUTING.md
    • [ ] Tests for the changes have been added (for bug fixes / features)
    • [ ] Docs have been added / updated (for bug fixes / features)

    PR Type

    What kind of change does this PR introduce?

    [ ] Bugfix
    [x] Feature
    [ ] Code style update (formatting, local variables)
    [ ] Refactoring (no functional changes, no api changes)
    [ ] Build related changes
    [ ] CI related changes
    [ ] Other... Please describe:
    

    What is the current behavior?

    Issue Number: N/A

    What is the new behavior?

    Does this PR introduce a breaking change?

    [ ] Yes
    [x] No
    

    Other information

    add template of taro-react

    opened by kriswell 0
  • feat: ✨ [WIP]移除通用配置文件,改为统一配置

    feat: ✨ [WIP]移除通用配置文件,改为统一配置

    PR Checklist

    Please check if your PR fulfills the following requirements:

    • [ ] The commit message follows our guidelines: https://github.com/turing-fe/kunlun-schematics/blob/main/CONTRIBUTING.md
    • [ ] Tests for the changes have been added (for bug fixes / features)
    • [ ] Docs have been added / updated (for bug fixes / features)

    PR Type

    What kind of change does this PR introduce?

    [ ] Bugfix
    [ ] Feature
    [ ] Code style update (formatting, local variables)
    [ ] Refactoring (no functional changes, no api changes)
    [ ] Build related changes
    [ ] CI related changes
    [ ] Other... Please describe:
    

    What is the current behavior?

    Issue Number: N/A

    What is the new behavior?

    Does this PR introduce a breaking change?

    [ ] Yes
    [ ] No
    

    Other information

    opened by erguotou520 0
  • refactor: ♻️ refine cli prompt

    refactor: ♻️ refine cli prompt

    PR Checklist

    Please check if your PR fulfills the following requirements:

    • [x] The commit message follows our guidelines: https://github.com/turing-fe/kunlun-schematics/blob/main/CONTRIBUTING.md
    • [x] Tests for the changes have been added (for bug fixes / features)
    • [x] Docs have been added / updated (for bug fixes / features)

    PR Type

    What kind of change does this PR introduce?

    [ ] Bugfix
    [ ] Feature
    [ ] Code style update (formatting, local variables)
    [x] Refactoring (no functional changes, no api changes)
    [ ] Build related changes
    [ ] CI related changes
    [ ] Other... Please describe:
    

    What is the current behavior?

    Issue Number: N/A

    What is the new behavior?

    Does this PR introduce a breaking change?

    [ ] Yes
    [x] No
    

    Other information

    opened by bigfang 0
  • feat: ✨ Add vue schematics

    feat: ✨ Add vue schematics

    PR Checklist

    Please check if your PR fulfills the following requirements:

    • [ ] The commit message follows our guidelines: https://github.com/turing-fe/kunlun-schematics/blob/main/CONTRIBUTING.md
    • [x] Tests for the changes have been added (for bug fixes / features)
    • [x] Docs have been added / updated (for bug fixes / features)

    PR Type

    What kind of change does this PR introduce?

    [ ] Bugfix
    [x] Feature
    [ ] Code style update (formatting, local variables)
    [ ] Refactoring (no functional changes, no api changes)
    [ ] Build related changes
    [ ] CI related changes
    [ ] Other... Please describe:
    

    What is the current behavior?

    Issue Number: N/A

    What is the new behavior?

    Does this PR introduce a breaking change?

    [ ] Yes
    [x] No
    

    Other information

    1. 统一 CircleCI 安装打包脚本为 pnpm
    opened by erguotou520 0
  • chore: 🔧 rename React to react

    chore: 🔧 rename React to react

    PR Checklist

    Please check if your PR fulfills the following requirements:

    • [x] The commit message follows our guidelines: https://github.com/turing-fe/kunlun-schematics/blob/main/CONTRIBUTING.md
    • [x] Tests for the changes have been added (for bug fixes / features)
    • [x] Docs have been added / updated (for bug fixes / features)

    PR Type

    What kind of change does this PR introduce?

    [ ] Bugfix
    [ ] Feature
    [x] Code style update (formatting, local variables)
    [ ] Refactoring (no functional changes, no api changes)
    [ ] Build related changes
    [ ] CI related changes
    [ ] Other... Please describe:
    

    What is the current behavior?

    Issue Number: N/A

    What is the new behavior?

    Does this PR introduce a breaking change?

    [ ] Yes
    [x] No
    

    Other information

    opened by erguotou520 0
  • chore: 🔧 rename React to react

    chore: 🔧 rename React to react

    PR Checklist

    Please check if your PR fulfills the following requirements:

    • [x] The commit message follows our guidelines: https://github.com/turing-fe/kunlun-schematics/blob/main/CONTRIBUTING.md
    • [x] Tests for the changes have been added (for bug fixes / features)
    • [x] Docs have been added / updated (for bug fixes / features)

    PR Type

    What kind of change does this PR introduce?

    [ ] Bugfix
    [ ] Feature
    [x] Code style update (formatting, local variables)
    [ ] Refactoring (no functional changes, no api changes)
    [ ] Build related changes
    [ ] CI related changes
    [ ] Other... Please describe:
    

    What is the current behavior?

    Issue Number: N/A

    What is the new behavior?

    Does this PR introduce a breaking change?

    [ ] Yes
    [x] No
    

    Other information

    opened by erguotou520 0
  • update restful template

    update restful template

    PR Checklist

    Please check if your PR fulfills the following requirements:

    • [ ] The commit message follows our guidelines: https://github.com/turing-fe/kunlun-schematics/blob/main/CONTRIBUTING.md
    • [ ] Tests for the changes have been added (for bug fixes / features)
    • [ ] Docs have been added / updated (for bug fixes / features)

    PR Type

    What kind of change does this PR introduce?

    [ ] Bugfix
    [ ] Feature
    [ ] Code style update (formatting, local variables)
    [ ] Refactoring (no functional changes, no api changes)
    [ ] Build related changes
    [ ] CI related changes
    [ ] Other... Please describe:
    

    What is the current behavior?

    Issue Number: N/A

    What is the new behavior?

    Does this PR introduce a breaking change?

    [ ] Yes
    [ ] No
    

    Other information

    opened by bigfang 0
Releases(0.0.10)
  • 0.0.10(Apr 27, 2022)

  • 0.0.9(Apr 27, 2022)

    • feat: ✨ 引入@kunlunjs/fabric简化配置文件 (c74280b)
    • refactor: ♻️ 删除无用注释 (e239a4d)
    • refactor: ♻️ 使用@kunlunjs/fabric简化eslint等配置 (1cd1200)
    • Merge pull request #11 from turing-fe/feat/adapt-cli (006a322)
    • feat: ✨ adopt cli pass json string (487696a)
    • Merge pull request #10 from turing-fe/fix/fix-cli (35e284c)
    • fix: 🐛 fix nest-cli.json (b408919)
    • Merge pull request #9 from turing-fe/feat/resource (2da2667)
    • fix: 🐛 fix UT (dcda996)
    • chore: 🔧 fix imports (88d5f13)
    • chore: 🔧 generate entity and dto (d2a9c5c)
    • chore: 🔧 refine code (fd0cd9c)
    • feat: ✨ 可以生成resource (23999e0)
    • fix: 🐛 remove useless model (49b3244)
    • Merge pull request #7 from turing-fe/feature/graphql-template (35b6250)
    • chore: 🔧 可以编译通过了 (2960203)
    • feat: ✨ 更新目录结构 (d667840)
    • feat: ✨ init graphql template (ab9a9bd)
    • Merge pull request #6 from turing-fe/feat/taro-template (f6595b5)
    • Merge pull request #5 from turing-fe/feat/configuration-combine (b6c47ec)
    • feat: ✨ add alicloud module (095af75)
    • feat: ✨ [WIP] Add functions for configurations generator (002b41b)
    • feat: ✨ 移除通用配置文件,改为统一配置 (22fdceb)
    • feat: ✨ 移除通用配置文件,改为统一配置 (ceea280)
    • feat: ✨ 增加 passport strategy (194d334)
    • perf: ⚡️ optimize import (c9bf138)
    • feat: ✨ add 'react__nestjs-prisma-graphql' (b64ec4a)
    • types: remove not tracked file (7ce563f)
    • feat(taro): create template taro/react (43edd06)
    • Merge pull request #4 from turing-fe/enhance/prompt (b5f4a5b)
    • refactor: ♻️ refine cli prompt (6ce6b14)
    • feat: ✨ add nextjs boilerplate (8f38b26)
    • Merge pull request #3 from turing-fe/feat/vue3-template (3c76d30)
    • chore: 🔧 减少eslintignore影响范围 (91f401d)
    • feat: ✨ Add vue schematics (38d92f8)
    • Merge pull request #2 from turing-fe/fix/folder-name (052654d)
    • chore: 🔧 rename React to react (778f067)
    • Merge pull request #1 from turing-fe/fix/folder-name (34ea66c)
    • chore: 🔧 rename React to react (4395af9)
    • fix: 🐛 update test suites (2fac9d9)
    • fix: 🐛 package.json main field (92319a0)
    • docs: 📚️ README.md (8de2510)
    • docs: 📚️ CONTRIBUTING.md (93e205a)
    • docs: 📚️ .github (a79f91f)
    Source code(tar.gz)
    Source code(zip)
  • 0.0.8(Feb 15, 2022)

    • fix: 🐛 the type option does not take effect (871dffd)
    • feat: ✨ update 'nest-prisma-restful' template (455b967)
    • feat: ✨ update template (b2da3f8)
    • feat: ✨ update 'react' template (99ab224)
    Source code(tar.gz)
    Source code(zip)
  • 0.0.7(Feb 14, 2022)

  • 0.0.6(Feb 14, 2022)

  • 0.0.5(Feb 14, 2022)

  • 0.0.4(Feb 14, 2022)

Owner
图灵人工智能研究院前端技术团队
图灵人工智能研究院前端技术团队
📓 The UI component explorer. Develop, document, & test React, Vue, Angular, Web Components, Ember, Svelte & more!

Build bulletproof UI components faster Storybook is a development environment for UI components. It allows you to browse a component library, view the

Storybook 75.9k Jan 9, 2023
Write components once, run everywhere. Compiles to Vue, React, Solid, Angular, Svelte, and more.

Write components once, run everywhere. Compiles to: At a glance Mitosis is inspired by many modern frameworks. You'll see components look like React c

Builder.io 7.7k Jan 1, 2023
🌱 React and redux based, lightweight and elm-style framework. (Inspired by elm and choo)

English | 简体中文 dva Lightweight front-end framework based on redux, redux-saga and react-router. (Inspired by elm and choo) Features Easy to learn, eas

null 16.1k Jan 4, 2023
Simple and elegant component-based UI library

Simple and elegant component-based UI library Custom components • Concise syntax • Simple API • Tiny Size Riot brings custom components to all modern

Riot.js 14.7k Jan 4, 2023
A declarative, HTML-based language that makes building web apps fun

A declarative, HTML-based language that makes building web apps fun ?? Docs ∙ Try Online ∙ Contribute ∙ Get Support Intro Marko is HTML re-imagined as

Marko 12k Jan 3, 2023
App development framework based on cocos creator3.1.1

todo: Waiting for English translation cx-cocos App development framework based on cocos creator3.1.1 一个基于cocos creator3.1.1的应用App和游戏开发框架 关键词:cocos cre

null 63 Dec 7, 2022
A basic helper to simplify relations among values, based on WeakRef

transform-once A basic helper to simplify relations among values. Optionally compatible with WeakValue too. import transformOnce from 'transform-once'

Andrea Giammarchi 8 Jan 19, 2022
null 3.9k Dec 30, 2022
基于vue3.0-ts-Element集成的简洁/实用后台模板!《带预览地址》vue-admin;vue+admin;vue-element;vue+element;vue后台管理;vue3.0-admin;vue3.0-element。

一、基于vue3.0+ts+Element通用后台admin模板 二、在线预览地址:http://admin.yknba.cn/ 三、下载使用: 1、克隆代码 通过git将代码克隆到本地;或者使用下载安装包模式进行下载。 2、进入目录 进入项目的根目录:vue3.0-ts-admin 3、安装依

null 64 Dec 16, 2022
🎉 基于 vite 2.0 + vue 3.0 + vue-router 4.0 + vuex 4.0 + element-plus 的后台管理系统vue3-element-admin

vue3-element-admin ?? 基于 Vite 2.0 + Vue3.0 + Vue-Router 4.0 + Vuex 4.0 + element-plus 的后台管理系统 简介 vue3-element-admin 是一个后台前端解决方案,它基于 vue3 和 element-plu

雪月欧巴 84 Nov 28, 2022
JavaScript micro-library: pass in an element and a callback and this will trigger when you click anywhere other than the element

Add a click listener to fire a callback for everywhere on the window except your chosen element. Installation run npm install @lukeboyle/when-clicked-

Boyleing Point 5 May 13, 2021
An example application that uses file-based routing with Angular, Analog, Vite with the Angular Router

Angular, Vite, and File-based routes This is an example application that uses Angular, Analog, and Vite for file-based routing. Routes are places in t

Brandon 9 Sep 25, 2022
Element for Angular

Element for Angular Catalog Documentation Getting Started Contribution Support LICENSE Documentation element-angular Getting Started Install: # instal

饿了么前端 520 Nov 14, 2022
Component-based node server architecture that is dockerized and ready for deployment

Introduction Component based node server architecture that is dockerized and ready for deployment Installation clone the repo and then cd NODE-SERVER

Ahmed Mashhour 2 Jan 24, 2022
io-ts Typed Event Bus for the runtime of your Node.js application. A core for any event-driven architecture based app.

Typed Event Bus Based on io-ts types, this bus provides a handy interface to publish and consume events in the current runtime of the Node.js process.

Konstantin Knyazev 3 May 23, 2022
A 👩‍💻 developer-friendly entity management system for 🕹 games and similarly demanding applications, based on 🛠 ECS architecture.

Miniplex Ecosystem miniplex miniplex-react Introduction Miniplex is an entity management system for games and similarly demanding applications. Instea

Hendrik Mans 253 Dec 31, 2022
Angular Library workspace to creating and testing angular libraries

Library Workspace Run Locally Clone the project https://github.com/sametcelikbicak/library-workspace.git Go to the library project directory cd li

Samet ÇELİKBIÇAK 4 Nov 1, 2022
Sam4Sc - a migration assistant for Angular to SCAM (Single Angular Component Modules) and Standalone Components

Sam4Sc - a migration assistant for Angular to SCAM (Single Angular Component Modules) and Standalone Components

Rainer Hahnekamp 7 Nov 16, 2022
Clarity Angular is a scalable, accessible, customizable, open-source design system built for Angular.

Getting Started Clarity Angular is published as two npm packages: Contains the static styles for building HTML components. Contains the Angular compon

VMware Clarity 145 Dec 29, 2022
Firebase Storage with Angular 14 example: Upload File, Retrieve, Display, Download Url & Delete using @angular/fire AngularFireStorage

Angular 14 File Upload to Firebase Storage example I will show you how to make Angular 14 Firebase Storage: File Upload/Display/Delete Application usi

null 7 Sep 7, 2022