The MinnPost super-fly style guide, specifically focused on interactive and news applications made by the MinnData team.
This repository should serve as both a code repository to be included in projects as well as a web page for reference and demo purposes.
The demo is publically viewable at code.minnpost.com/minnpost-styles.
Install with bower install minnpost-styles
. See the main demo page for library use.
Note that all styles are within the .minnpost-styles
prefix, as our projects are usually embedded in an existing site.
All commands are assumed to on the command line, often called the Terminal, unless otherwise noted. The following will install technologies needed for the other steps and will only needed to be run once on your computer so there is a good chance you already have these technologies on your computer.
- Install Git.
- On a Mac, install Homebrew, then do:
brew install git
- On a Mac, install Homebrew, then do:
- Install NodeJS.
- On a Mac, do:
brew install node
- On a Mac, do:
- Install Grunt:
npm install -g grunt-cli
- Install Bower:
npm install -g bower
- Install Ruby, though it is probably already installed on your system.
- Install Bundler:
gem install bundler
Get the code for this project and install the necessary dependency libraries and packages.
- Check out this code with Git:
git clone https://github.com/MinnPost/minnpost-styles.git
- Go into the project directory:
cd minnpost-styles
- Install NodeJS packages:
npm install
- Install Bower components:
bower install
- Install Ruby gems: 'bundle install'
- On a Mac you will probably have to do:
sudo bundle install
- On a Mac you will probably have to do:
- Run:
grunt server
- This will run a local webserver for development and you can view the application in your web browser at http://localhost:8833.
- The server runs
grunt watch
which will rebuild the applicaiton when files have been modified.
To build or compile all the assets together and create a new version in the dist/
folder.
- Update verson in
bower.json
- Update verson in
package.json
- Run:
grunt
- Commit changes and push up to Github, including the
gh-pages
branch
For our own purposes, there are some versions up on S3. It is not suggested to use these as S3 is not a CDN. What is in the dist
folder will be found in the following folder:
https://s3.amazonaws.com/data.minnpost/projects/minnpost-styles/X.X.X/
For instance:
https://s3.amazonaws.com/data.minnpost/projects/minnpost-styles/0.0.2/minnpost-styles.min.css
The Grunt process has a method to upload this to S3: grunt deploy
Some code and inspiration taken from other, awesome libraries.