Giter VIP home page Giter VIP logo

polymerchromeapp's Introduction

Polymer Chrome App

Getting Started

To install the project in your Chrome installation

  • Goto Extensions > Load unpacked extension...
  • and point to a clone of this repo or just drag and drop the folder to the extensions view.

Build

To build the app run the following commands:

npm install -g grunt-cli
npm install
grunt

Dealing with CSP

Chrome Apps have a strict Content Security Policy (CSP) which prevents inline script elements. Using the Vulcanize tool with the --csp flag, we can strip all of the script elements out of our Polymer elements, and place them in an external build.js file.

vulcanize -o build.html index.html --csp

To make this process easier, we've included the grunt-vulcanize task in our Gruntfile. This task will watch for any file changes and re-run the Vulcanize tool for us, making it much faster to develop and test your app. When you run the grunt command the Vulcanize tool will start up and watch for file changes.

Resources

Screenshot

screenshot

polymerchromeapp's People

Contributors

vikasprogrammer avatar robdodson avatar c0d3rm0nk3y avatar

Stargazers

 avatar

Watchers

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