项目作者: cycjimmy

项目描述 :
Pwa webpack starter for webpack, gulp, es6/7, sass, css-modules, pug, offline plugin...
高级语言: JavaScript
项目地址: git://github.com/cycjimmy/pwa-webpack-starter.git
创建时间: 2016-07-13T09:58:56Z
项目社区:https://github.com/cycjimmy/pwa-webpack-starter

开源协议:MIT License

下载


Pwa Webpack Starter

Build Status

Personal front-end solutions for progressive web app

Rename from “gulp-temp” (a gulp template starter)

Front-end automation solutions for webApp

Based on

webpack2, gulp, babel, sass, pug, offline plugin and lots of awesome modules and plugins

Installation

  1. $ npm install
  2. # or
  3. $ yarn install

Main directory structure

  1. pwa-webpack-starter
  2. ├─app/ # Project entry folder
  3. └─...
  4. ├─gulp/ # Gulp tasks folder
  5. └─...
  6. ├─mock/ # Mock data entry folder
  7. ├─api/
  8. └─webSocket/
  9. ├─static/ # Static folder
  10. ├─icons/ # Svg icons entry folder (raw)
  11. ├─logos/ # Logos for Manifest
  12. ├─images/ # Pictures folder
  13. ├──icons/ # Svg icons folder (processed)
  14. └──... # Other pictures
  15. ├─view/ # Static pug template folder
  16. └──...
  17. ├─favicon.ico # Icon file
  18. └─manifest.json # Manifest file
  19. ├─webpack/ # Webpack configuration folder
  20. └─... # Webpack configuration files
  21. ├─gulpfile.js # Gulp file entry
  22. └─...

Main Tasks

  1. # Run in development
  2. $ npm start
  3. # Build for production
  4. $ npm run build
  5. # svg icon
  6. $ npm run svg
  7. # deploy to gh-pages
  8. $ npm run deploy