Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.72 KB

File metadata and controls

30 lines (20 loc) · 1.72 KB

Dev Setup

  1. git clone git@github.com:frig-js/frig.git
  2. git clone git@github.com:frig-js/frigging-bootstrap.git
  3. git clone git@github.com:frig-js/frigging-examples.git
  4. npm install + npm link: cd frigging-bootstrap && npm install && npm link && cd ../frig && npm install && npm link && cd ../frigging-examples && npm install && npm link frig && npm link frigging-bootstrap
  5. Install mkdocs from http://www.mkdocs.org/

Running the examples (for debugging)

  1. Run mkdocs serve from this repo
  2. Run npm start from the frigging-examples repo
  3. Go to http://localhost:8080/webpack-dev-server/ to view examples
  4. Go to http://localhost:8000/ to view docs

Npm Link

It is useful to npm link frig + frigging-bootstrap to frigging-examples if you are working on it so that both frig and frigging-bootstrap can be developed using the examples.

Notes on Webpack

Never run webpack directly as it will generate a bunch of files in the examples and release directories (webpack-dev-server is cool though, it doesn't save anything to disk).

If you do accidentally run webpack you can get rid of all the files it generates by running git clean -f -X

Releasing a new version of Frig

npm version is the official way to compile a release. Npm will not publish a new version to npm and bower and push an updated copy of the docs. See https://docs.npmjs.com/cli/version

If you just need to update the docs without releasing a new version you can run ./scripts/publish_docs.sh

DO NOT compile a release if you want your pull request to be accepted. If you do compile a release you will need to remove it and re-submit your pull request. This is to prevent the Git repo from becoming massive and/or crazy-slow to download.