Giter Club home page Giter Club logo

api-cloud-template's Introduction

api cloud app项目模板

使用

// 下载脚手架工具
npm i -g @chwech/cli

// 初始化项目
chwech init api-cloud [projectName]

目录结构

|-- root
    |-- css
    |-- feature
    |-- icon
    |-- image
    |-- launch
    |-- lib                     // webpack输出目录
    |-- public                  
    |   |-- index.html          // htmlWebpackPlugin生成html的模板
    |-- res
    |-- script
    |   |-- api.js
    |-- src
    |   |-- pages                // 页面文件夹
    |       |-- index            // 首页
    |       |   |-- main.js      // 约定入口
    |       |   |-- test.vue
    |       |-- test             // 其它页面
    |           |-- main.js
    |           |-- test.vue
    |-- wgt
    |-- .babelrc
    |-- .editorconfig
    |-- .gitignore
    |-- .syncignore
    |-- config.xml
    |-- env.development.js
    |-- env.production.js
    |-- gulpfile.js
    |-- package-lock.json
    |-- package.json
    |-- postcss.config.js
    |-- README.md
    |-- webpack.base.config.js
    |-- webpack.config.js
    |-- webpack.dev.config.js

特性

  • 支持es6以上新特性
  • 支持less、stylus预处理器
  • 支持.vue单文件编写页面
  • autoprefixer自动添加css浏览器前缀
  • 环境变量定义
  • webpack-dev-server 热模块重载
  • 小图片(小于8192字节)base64内联

License

MIT

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.