Skip to content

stanford-earth/matson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matson

Matson is a custom Stanford theme for Stanford Earth.

Developing with Matson

To get started developing in this theme, make sure npm is installed and you've run 'npm install' in this theme directory. Note that usually the project runs this step for the theme, but in this case you must do this manually.

Run 'grunt' to make sure gulp is installed and available.

Run 'grunt devmode' to watch files, process scss to css and perform other tasks.

Adding new files

If you add a partial "src/scss/components/_newfile.scss" you should add it to the @import list in components.scss

Remember that each new scss file to be processed needs to be added specifically to the gruntfile at the root of the theme folder.

Troubleshooting Problems

If you get an error like this (possibly on a linux machine): Fatal error: watch /your/directories/Earth/se3_blt/docroot/themes/custom/matson/css ENOSPC It is running out of space or thinks it is.

Try running: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

The system has a limit to how many files can be watched by a user. You can run out of watches pretty quickly if you have Grunt running with other programs like Dropbox. This command increases the maximum amount of watches a user can have.