unicef/etools-t2f

Name: etools-t2f

Owner: unicef

Description: null

Created: 2016-09-30 16:01:52.0

Updated: 2018-03-28 20:03:59.0

Pushed: 2018-05-23 19:52:18.0

Homepage: null

Size: 4425

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

eTools Frontend Template

Installation

Using git, clone to a local directory:

t clone https://github.com/unicef-polymer/etools-frontend-template.git

Assuming node and npm are already installed, make sure bower is also installed, if not run:

m install -g bower

Also install polymer-cli:

m install -g polymer-cli

Install packages:

m install
wer install
Build Application

To build the distribution version:

lp

We will be using a bundled build since we don't support HHTP/2 and server push.

Before the build is created the CSS and images are minified, Javascript is uglifyed, also there are javascript and html hints. If any of these tasks fail, the entire build process fails. So correct your code and try again :)

Run Application

To run the application you can use:

lymer serve
 your app at http://localhost:8080

This command will start the server and serve your files directly from app sources. At this point you do not need to build anything, the files will not be served from build folder.

lymer serve build/bundled
 your app at http://localhost:8080

This command will start the server and use the bundled build (build/bundled folder) to serve the files from. Before you can serve the bundled build you have to generate the build files. Service worker only works in the built app, so test service worker functionality here.

Additional options for gulp tasks

Set -l parameter for any gulp task to activate polymer logs during build process

lp -l

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.