Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds NPM GULP and SASS to this project #372

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ conf/pillar/*/deploy
.env
*.cert*
*.key*
node_modules
frontend/css/style.css
30 changes: 30 additions & 0 deletions docs/dev-setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,36 @@ Next run a basic HTTP server with Python:

Now visit http://localhost:8000/ in your browser.

SASS & GULP (modifying styles on frontend)
-------------

Verify you have Ruby installed on your machine.
If the following command gives you an error, then install ruby.

`ruby -v`
__installing:__ for OSX users with homebrew run `brew install ruby` for Ubuntu run `sudo apt-get install ruby-full`
or you can install ruby by installing Xcode commnand line tools:
`xcode-select --install`

Verify you have Node.js installed on your machine.
If the following command gives you an error, then install node.

`node -v`
__installing:__ download Node.js @ [https://nodejs.org/en/download/](https://nodejs.org/en/download/)

Install SASS with:

`gem install sass`
if you receive a permissions error, then type `sudo gem install sass` which requires your system password

Run the SASS compiler by typing:

`npm run watch:css`

This command "watches" the frontend/sass/style.css file for any changes.
And when the file is saved, adds those changes to frontend/css/style.css



.. _backend-setup:

Expand Down
Loading