Skip to content

hirohito-protagonist/google-closure-library-app-starter

Repository files navigation

google-closure-library-app-starter

This project is an application skeleton for build web apps with google closure library.


Quick start

Make sure you have Node version >= 6.0, NPM >= 3 and Java >= 8

# clone repo
# --depth 1 removes all but one .git commit history
git clone --depth https://github.com/hirohito-protagonist/google-closure-library-app-starter.git

# change directory to the repo
cd google-closure-library-app-starter

# install with npm
npm install

# start the server
npm start

# The local server connection should be open. 
# By default is http://localhost:8080 so the development link will be 
# http://localhost:8080/src/html/app.html

Getting Started

Dependencies

  • Install latest node and make sure you have at least version 6.x.x for Node and 3.x.x for NPM.
> node -v
v6.11.1

> npm -v
3.10.10
  • Install latest java jdk or jre. It's needed for closure compiler and soy templates.
> java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

Installing

  • fork this repo
  • npm install to install all dependencies

server

npm start

build files

npm run build

unit test

# single run
npm run test
npm test
npm t
# watch mode on files
npm run test:watch

License

MIT