Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.24 KB

README.md

File metadata and controls

33 lines (25 loc) · 1.24 KB

nkg5.github.io

This is the source code of my personal website http://nkovacevic.com.

Preparing environment

  • 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)

Development

Folder structure

  • 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

Build scripts

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