Git Product home page Git Product logo

closure-boilerplate's Introduction

Forked from https://github.com/jankuca/closure-boilerplate.


Google Closure Boilerplate

This boilerplate should be able to work as the base of any Google Closure-based application.

The idea is that you clone this repository, modify the build settings and start working on your app.

Read this blog post to learn more about the resulting environment.

What's included

  • a basic directory structure
  • a lint script
  • a compile script
  • a source map fixing script that fixes wrong file paths
  • an HTML file compile script that extracts JavaScript references
  • a Sublime Text project file

Dependencies

Installation

Do not fork this repository to use it. Fork only if you want to contribute. Thanks.

git clone git://github.com/jankuca/closure-boilerplate project-name
cd project-name
./make.sh

The make.sh bash script will fetch dependencies (Google Closure Library, Google Closure Compiler and Google Closure Templates).

Then, you have two options:

  1. You can reset the repository by running rm -rf .git && git init.
  2. You can keep the history and the remote to be able to merge future boilerplate commits to your application. The make.sh script makes sure the boilerplate remote points to this repository. When there are new commits to the boilerplate, you can merge them to your app by running
git fetch boilerplate
git merge boilerplate/master --no-ff -m 'update closure-boilerplate'

Configuration

The default configuration might not fit your needs. It is likely that you will want to modify the paths in the compile scripts.

The scripts you want to modify are build/lint.sh and build/compile.sh. It is not recommended you modify other scripts.

Usage

The preferred way to run the scripts is from Sublime Text via the Cmd+B keyboard shortcut.

You can also run the script manually:

# Run these commands in the project root directory

# Lint
./build/lint.sh

# Compile templates
./build/soy.sh

# Compile
./build/compile.sh

closure-boilerplate's People

Contributors

jankuca avatar teppeis avatar

Stargazers

 avatar  avatar

Watchers

 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.