Code Monkey home page Code Monkey logo

pwa-manifest-generator's Introduction

pwa-manifest-generator Build Status

This is utilized to generated manifest.json file for a progressive web application. And this is inspired by pwa-manifest-webpack-plugin.

Install

npm install -g pwa-manifest-generator

Config

const pluginPwa = require('pwa-manifest-generator')

module.exports = {
  entry: path.resolve(__dirname, './main.js'),
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'bundle.js'
  },
  plugins: [
    new pluginPwa({
      name: 'test',
      description: 'test the plugin',
      icon: {
          src: path.resolve('example/icon.jpg'),
          sizes: [144, 192]
      }
    })
  ]
}

This will generate the manifest.json file:

{
  "name": "pwa-manifest-generator",
  "version": "0.1.3",
  "description": "A webpack plugin to generate manifest.json file for a progressive web application.",
  "main": "index.js",
  "directories": {
    "example": "example"
  },
  "scripts": {
    "test": "webpack --config ./example/webpack.config.js"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/neal1991/pwa-manifest-generator.git"
  },
  "keywords": [
    "pwa",
    "webpack",
    "plugin"
  ],
  "author": "neal1991",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/neal1991/pwa-manifest-generator/issues"
  },
  "homepage": "https://github.com/neal1991/pwa-manifest-generator#readme",
  "dependencies": {
    "mime": "^1.3.6",
    "webpack": "^2.5.1",
    "jimp": "^0.2.27
  }
}

You can access the example folder for an example. In the example folder, there is a webpack.config.js,you can run npm run test to generate the manifest.json file.

LICENSE

MIT

pwa-manifest-generator's People

Contributors

madneal avatar

Stargazers

 avatar Sibelius Seraphini avatar  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.