Code Monkey home page Code Monkey logo

generator-pwa's Introduction

generator-pwa NPM version Build Status

Progressive Webapp generator

Installation

npm install -g yo
npm install -g generator-pwa

Then generate your new project:

yo pwa

This would generate a dir structure like:

app/
|____css
| |____style.css
|____favicon.ico
|____images
| |____touch
| | |____apple-touch-icon.png
| | |____chrome-touch-icon-192x192.png
| | |____icon-128x128.png
| | |____ms-touch-icon-144x144-precomposed.png
|____index.html
|____js
| |____app.js
| |____push.js
|____server.js
|____sw.js

Run

  gulp

For push notification

  npm start

##TODO

  • - Prompt for all manifest.json related fields.

  • - AskFor static-cache-path (automatically pick the required files).

  • - Use serviceworker-cache-polyfill from npm instead.

  • - Use async-await in sw.js.

  • - Add simple push notification.

  • - Prompt for GCM api keys.

  • - Add background sync.

  • - Work on a build system, npm-script or gulp.

  • - Add a gif!

License

MIT © Hemanth.HM

generator-pwa's People

Contributors

gokulkrishh avatar hemanth avatar

Watchers

James Cloos avatar  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.