Giter VIP home page Giter VIP logo

chromeplate's Introduction

About

ChromePlate is a base layout for your Chrome apps and extensions.

It comes complete with CSS / JavaScript compressors, an extremely strict JavaScript validator, a load of useful templates and a HTML5 CSS reset.

Packaging your app

To package your app simply run make.

For this to run you will need Java for the compression and NodeJS for the validation.

If you do not have node or you are scared of what the JavaScript validator will show you then run make no-validate instead.

I must warn you, I have made the validator extremely strict. This is because I love beautiful JavaScript and I want other people to write correctly too.

The validator will help you write good clean JavaScript and should spot the odd error too.

Remember to update the manifest with the correct details before packaging

Listing files in the makefile

Every time you add another CSS or JavaScript file just pop into the makefile and add it to either the JavaScript or CSS file list.

So say you had included another JavaScript file, your JavaScript file list would look like this, providing you had not removed the initial main.js file.

jsFiles = ${package}assets/javascript/main.js\
          ${package}assets/javascript/more-javascript.js

Note the backslash at the end of the line, and package variable at the start.

The backslash allows the list to be multiline and the variable is so your files point to the package directory.

There is no need to add already compressed libraries to the list.

The same technique applies to CSS files, just have a look in the makefile and you will see what I mean.

Author

This was pieced together by Oliver Caldwell.

chromeplate's People

Stargazers

 avatar

Watchers

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