Giter Site home page Giter Site logo

jquery-cli's Introduction

jquery 官网

官网为了对爬虫友好,不合适做单页面,也不大适合用 react,vue 这样的框架。

本脚手架已经支持使用 ES6,sass、,模块化,热加载,eslint 等功能

Build Setup

# 安装依赖
npm install

# 开发的时候在本地启localhost:8866,并开始热加载
npm run dev

# production的发布时打包
npm run build

# 本地启动http服务查看dist

npm server

目录结构

./
├── .babelrc                          // babel的配置文件
├── .eslintignore                     // eslint的配置文件
├── .eslintrc.js                      //eslint 语法规则
├── .gitignore
├── README.md
├── build
│   ├── webpack.base.js
│   ├── webpack.dev.js            // 开发环境的webpack配置文件
│   └── webpack.prod.js           // 线上环境的webpack配置文件
├── package.json
├── postcss.config.js
├── src                                     // src 文件夹
│   ├── components
│   │   ├── footer.html
│   │   └── header.html
│   ├── images
│   │   └── logo.svg
│   ├── pages                               // 页面文件夹
│   │   └── home
│   │       ├── index.html
│   │       ├── index.js
│   │       └── index.scss
│   ├── style
│   │   ├── common
│   │   │   ├── mixins.scss
│   │   │   ├── reset.scss
│   │   │   └── var.scss
│   ├── page.config.js                   // 页面的配置文件
│   └── utils
└── yarn.lock

开发流程

如果增加新页面,只需两步,不需要改 webpack 等配置文件

  1. 在 pages 中新增一个文件夹
  2. 在 page.config.js 中添加这个页面的信息即可

比如

  {
    name: 'home',
    html: 'home/index.html',
    jsEntry: 'home/index.js'
  }

jquery-cli's People

Contributors

no-later-cn avatar

Stargazers

 avatar

Watchers

 avatar

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.