This is an archive. Repo moved to https://github.com/NUSComputingDev/freshmen.nuscomputing.com
Production site: http://freshmen.nuscomputing.com/
Staging site: https://meebleforp.com/projects/fop/
This repo contains the source code to build the SoC FOP 2016 website. The site is largely static, written in Jade and SASS with Bootstrap, a touch of JavaScript with jQuery and built with Gulp. Pull requests welcome!
To build:
- Make sure you have node and npm installed
- Clone this repo
- Install dependencies -
npm install
- Copy the example config file and edit it -
cp config.json.example config.json
- Build with gulp -
gulp build --env [your environment]
(eg.gulp build --env local
)
To develop:
- Follow steps 1 - 4 from above
- Start the local dev server by running
gulp serve
. Your browser will automatically open uphttp://localhost:3000
, where you should see the site being served locally - Get cracking! Any changes made to any of the source files should automatically trigger browser reload courtesy of BrowserSync
Variables to be passed to the templates. Required variable:
baseUrl
- base URL to the site, to be used for all links and local resources. URL should include protocol. For local development this is set tohttp://localhost:3000
Folder relative to the project root to write the built files to. Include the suffix -build
(eg. production-build
), which will be ignored by git.
Copies a .htaccess
file into the root folder that removes the .html
suffix
from all URLs. Only works with Apache.
Reloads BrowserSync when the build is done. Used for local development builds.
Minifies resources (currently only CSS via SASS). Used for production builds.
Generate source maps for the CSS