https://github.com/eggheadio/egghead-styles
Hold the master stylesheet for all of egghead
https://github.com/eggheadio/egghead-styles
Last synced: 10 months ago
JSON representation
Hold the master stylesheet for all of egghead
- Host: GitHub
- URL: https://github.com/eggheadio/egghead-styles
- Owner: eggheadio
- Created: 2016-02-11T16:53:58.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-05T18:53:56.000Z (about 10 years ago)
- Last Synced: 2025-08-09T05:25:15.531Z (10 months ago)
- Language: CSS
- Size: 1.88 MB
- Stars: 0
- Watchers: 10
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# egghead-styles
Holds the master stylesheet for all of egghead. Clone into the same directory as `egghead-systems` and `egghead-rails`
## First things first
Setup all required dependencies. Run: `npm i && bundle install`
## How to publish
Before you can publish to NPM or RubyGems, you must first authenticate with each service.
### Log into NPM and RubyGems
Perform the following commands within the `egghead-styles` directory and login to NPM with your egghead account that has publishing privileges. Contact an egghead admin for publishing access if needed.
* `npm login`
* `gem push` (this will produce a "Please specify a gem name on the command line" error, ignore it)
### Building the packages
The `deploy` script is responsible for bumping versions and publishing to NPM/RubyGems. There are two flags which enable this:
* `./deploy -b, --bump `
* `./deploy -p, --publish`
For instance, to provide a patch bump and publish, use `./deploy -b patch -p`
## Local Development
`egghead-styles` has the same setup as `egghead-rails` in that `egghead-systems` references both from the same root directory. By default, the Gemfile points to `egghead-styles'` repository and will pull the gem from Github if it cannot find a substitute. This isn't conducive for local development as it would require redeploying the gem for every change.
For local development we want rails to see live changes to the egghead-styles app. To do this, change the `@import "egghead-styles"` statement in `application.css.scss` to:
`@import "/egghead-styles/app/assets/stylesheets/egghead-styles";`
Be sure to update to the latest `egghead-systems` and reload the VM. Vagrant will mount `egghead-styles` to the root of the VM at `/egghead-styles`. Changes to the local copy will now reflect in development. Run `foreman start` as usual.
*!IMPORTANT* Do not forget to change this line back after completing your work as it will break production.