The source code for my personal website
The best way to run the project is using Docker:
docker build -t gustavkarlsson/gustavkarlsson.se .
docker run -d -p <port>:8080 gustavkarlsson/gustavkarlsson.se where
<port> is the port you want to listen to.
docker stop <container-id> where
<container-id> is the id printed by the run command
This is how you build the project for development:
Install dependencies by running
This project uses Gulp to run automated tasks for development and production builds.
The tasks are as follows:
gulp --production: Build the production ready version of the project (also runs tests)
gulp serve: Compiles preprocessors and boots up development server
gulp serve --open: Same as
gulp serve but will also open up site/app in your default browser
gulp serve --production: Same as
gulp serve but will run all production tasks so you can view the site/app in it's final optimized form
gulp test: Lints all
*.js file in the
source folder using eslint
--debug option to any gulp task displays extra debugging information (ex. data being loaded into your templates)
Packaging and deployment