This is the source code of my personal website http://nkovacevic.com.
- Make sure you have Node.js installed on your system (https://nodejs.org)
- Make sure you have Ruby installed on your system (https://www.ruby-lang.org)
- Install npm packages:
npm install
(might need root privileges) - Install sass ruby package:
gem install sass
(might need root privileges)
- src -> contains source code for the website (jade, sass, javascript)
- res -> contains static assets for the website (images, json files ...)
- xsd -> contains XML Schema definitions used by other applications
- _dist -> contains compiled source code
npm run main
- deletes _dist folder
- initializes new _dist folder
- compiles all source files (jade, uglify, sass, cssmin...)
- starts web server listening at localhost:8080
- watches for source file changes and compiles them on change
npm run build
- deletes _dist folder
- initializes new _dist folder
- compiles all source files (jade, uglify, sass, cssmin...)
- copies compiled files to root folder