Skip to content

Polymer Static Application is a boilerplate based on Polymer Starter Kit and Metalsmith.

License

Notifications You must be signed in to change notification settings

StartPolymer/polymer-static-app

Repository files navigation

Polymer Static App

Polymer Static Web Application boilerplate based on Polymer Starter Kit and Metalsmith.

DEMO

Features

Installation

Tools on Ubuntu

# Add Ruby repository
sudo add-apt-repository -y ppa:brightbox/ruby-ng
# Script to install NodeSource repository
curl -sL https://deb.nodesource.com/setup | sudo bash -
# Install Git, Node.js and Ruby
sudo apt-get install -y git nodejs ruby2.2
# Install Bower, Gulp and NPM
sudo npm install -g bower gulp npm
# Install Sass
sudo gem install sass

Usage

Fork this repository

Syncing a fork of a repository to keep it up-to-date with the upstream repository.

or

Clone this repository to separate branch psa

git clone https://github.com/StartPolymer/polymer-static-app.git <my-repo-name>
cd <my-repo-name>
git branch -m psa
git checkout -b master
git remote rename origin psa
git remote add origin https://github.com/<user>/<my-repo-name>.git
git push -u origin master

How to use Git

Install dependencies

bower install && npm install

Check out the variables

Serve to local and external URL

http://localhost:9000 and http://<Your IP>:9000

gulp serve

Build and serve the output from the dist build

gulp serve:dist

Build the app

gulp

Deploy 🎉

Deploy to GitHub Pages

First you need to be sure you have a gh-pages branch. If you don't have one, you can do the following:

git checkout --orphan gh-pages
git rm -rf .
touch README.md
git add README.md
git commit -m "Init gh-pages"
git push --set-upstream origin gh-pages
git checkout master
gulp deploy:gh

Tools

PageSpeed Insights

gulp pagespeed

Contributing 👍

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Make your changes
  4. Run the tests, adding new ones for your own code if necessary
  5. Commit your changes (git commit -am 'Added some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

Copyright (c) 2015 Start Polymer (http://startpolymer.org)

About

Polymer Static Application is a boilerplate based on Polymer Starter Kit and Metalsmith.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published