Giter Site home page Giter Site logo

k-cli's Introduction

前端脚手架

项目期望达到的程度

  • 支持三大框架模板(个性可配置化模板)
  • 支持pc,移动端
  • 配套有不同环境的组件

文件目录

    ├── bin
    │   ├── main.js     入口文件
    │   ├── template.js 模板文件集合
    │
    ├── lib
    │   ├── utils       工具处理文件夹
    │   ├── temp        模板文件
    │   ├── create.js 
    │
    ├── package.json    npm包配置文件,里面定义了项目的npm脚本,依赖包等信息

package.json说明

    "bin": {
        "K": "bin/main.js"
    }

    // 当我输入K命令的时候,就会去查找bin目录下的main.js文件

    "dependencies": {
        // chalk改变输出文字的颜色
        "chalk": "^3.0.0",
        "semver": "^7.1.2",
        // commander可以解析用户输入的命令
        "commander": "^4.1.0",
        // 拉取github上的文件
        "download-git-repo": "^3.0.2"
    }

bin/main.js

    /*
        使用Node开发命令行工具所执行的js脚本必须在顶部加入:#!/usr/bin/env node
    */
  • 本地调试,使用(macOS环境)sudo cnpm link,然后输入K即可运行

k-cli's People

Contributors

kisurekeyvick avatar

Watchers

James Cloos avatar  avatar

Forkers

yangyuan02

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.