Start your Jekyll project with this straightforward, minimalistic and modern boilerplate.
gem install jekyll bundler
bundle install && npm install
(Run both commands one by one if you are on Windows)npm start
.npm rund build
to run a build for production.src
and dist
for better overview._pages
subfolder for better overview.You might have noticed, that there is a _webpack
folder outside the src/assets
directory which contains all your Javascript and SCSS folders and files.
Heres why:
Since we wan't to be able to use node_modules
and won't push them to Git, we needed a solution to develop locally with all the modern tools. But then on the server, we just wanna run jekyll build
everytime we push.
The jekyll build
functionality is also integrated into Cloudcannon, npm
is not.
So, with Mojebo we are using Babel and Webpack to transpile and bundle modern javascript code and SCSS via Webpack and place the output (main.js and main.css) in the src/assets
folder where Jekyll can trigger the changes and put them in the dist
directory.