Coder Social home page Coder Social logo

colinmorris / song-repetition Goto Github PK

View Code? Open in Web Editor NEW

This project forked from the-pudding/song-repetition

4.0 2.0 3.0 3.4 MB

Are Pop Lyrics Getting More Repetitive?

Home Page: https://pudding.cool/2017/05/song-repetition

License: MIT License

Makefile 0.04% JavaScript 67.28% Python 4.62% CSS 17.47% HTML 10.59%

song-repetition's Introduction

starter

A starter template for projects. Features include:

  • Transpiles ES6 with Babel
  • Stylus for CSS pre-processor
  • Bundles and minifies JavaScript with FuseBox
  • Bundles, minifies, auto-prefixes, and inlines CSS
  • Async font loading (using FOUT)

Dependencies

node

Setup

Create a new project directory and cd into it, then:

curl -Lk http://bit.ly/2bgptna > Makefile; make;

Usage

Development

gulp

Any changes to the src/ folder will trigger live reload.

  • JS: Put JS in src/js/, and take a look at entry.js and graphic.js, it has some basic skeleton stuff setup for you.
  • CSS: Put CSS in src/css/story/. You can put everything in story.styl, or create any new files you want in that directory wich are included automatically. Checkout src/css/base/ for helper variables and functions.
  • HTML: Put HTML in src/html/partials/story/. Be sure to include your partials in src/html/index.hbs.

Deploy

Run gulp dist

This generates a single html file with inlined css, a single js file, and a folder with assets in the dist folder.

To deploy new dev version on github run make github

To deploy live to s3, you must install awscli and configure your settings. Then run the following, replacing year/month/name with your own (eg. 2017/01/nba):

aws s3 sync dist s3://pudding.cool/year/month/name --delete

To force cloudfront to fetch latest html file (replacing id-here with the cloudfront distro id, and year/month/name with your project filepath):

aws cloudfront create-invalidation --distribution-id id-here --paths /year/month/name/

Note: For cloudfront you must add extra configuration

Fonts

WIP

song-repetition's People

Contributors

colinmorris avatar matthewfdaniels avatar

Stargazers

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