As of 2021-04-01, the Mann website has migrated to Wordpress.
Locomotive site for Mann Library
Wagon is the command line interface for Locomotive and is where developers will spend most of their time when working locally on a Locomotive site. For a more thorough intro to the Locomotive approach and workflow, please review the mann-locomotive README. We'll be here when you get back.
Clone this repo
$ git clone git@github.com:cul-it/mann-wagon.git
Install gems
$ cd <clone>
$ bundle install
Install modules
$ yarn
Serve the site
proxied through Browsersync for live-reload goodness -- watching SCSS, JS, templates
$ yarn start
Visit the Mann website at http://localhost:3000
default browser should automatically launch and request this URL thanks to Browsersync
We'll be using the sample development environment in this example.
See official Locomotive documentation for a guide to installing engine and more details on available options for
sync
anddeploy
commands.
config/deploy.yml
Copy the example configuration
$ cp config/deploy.yml.example config/deploy.yml
Edit host
, handle
, email
and api_key
as applicable for your development environment
$ bundle exec wagon sync development -v
IMPORTANT! Be sure to optimize assets prior to deploying
$ yarn build
$ bundle exec wagon deploy development -v
Copy the example configuration
$ cp config/deploy.yml.example config/deploy.yml
Log in to Locomotive admin interface (https://admin.mannlib.cornell.edu), navigate to the Developers menu option, and copy the Production block that contains the host
, handle
, email
and api_key
Paste the Production block into your config/deploy.yml
IMPORTANT! Be sure to optimize assets prior to deploying
$ yarn build
$ bundle exec wagon deploy production
Via Javascript Standard Style and sass-lint
$ yarn lint
Or lint JS and Sass separately:
$ yarn lint-js $ yarn lint-sass