Following softwares are required for running ZiON:
All the softwares listed above should be available in cmd or terminal based on the OS you are using
git clone --recursive -j8 git@github.com:prium/ZiON.git
cd [template name]
rm -rf .git
git init
git add .
git commit -m "Initial commit"
git remote add origin [your project’s git url]
git push -u --force origin master
bower install
npm install
gulp
and your default web browser will open up http://localhost:3000@if ZION_ENV = 'DEBUG' alert("debug mode!"); @endif
#{ZION_ENV}
//todo
Edit assets/scss/_config.scss
and override the available variables. You can find all the available SCSS variables in zcore/assets/scss/_config.scss
todo
Embedded gulp commands in ZiON and their actions are follows:
gulp
: Start the engine and run a server on http://localhost:3000/
gulp compile
: Compiles scss, pug and generate source maps
gulp assets
: Push image, video, audio, fonts etc from source to bin
gulp build
: Build compressed, final template, bin temporary files (todo)
The Skeleton provide standard wrapper for all pages, including default libraries, content blocks (described in section 5), title tag and the overall genetic structure of the output HTML pages.
Located at zcore/pug_modules/skeleton.pug
src/pug_modules
to add your global markups.
Pages are located at src/pages
. A page extends the skeleton and add sections to it self. All contents including asset links and copy text are provided from here.
A page must extend a skeleton (described in section 4).
Any page can access and override the following blocks defined in skeleton:
./core/pug_modules/section
./core/pug_modules/elements
./core/pug_modules/widgets
ZiON is using Media Queries with superpowers.
Default breakpoints for zion, inspired by bootstrap 4:
$mq-breakpoints: ( mobile: 544px, tablet: 768px, desktop: 992px, wide: 1200px );
Read MQ documentation for using mq()
.full-height
Make the section full height for desktop devices
.v-center
Make the inner content centered
If you are using the command line tool for git, use the following commands for day to day workflow. Assuming you already have the git repo up and running correctly.
git checkout master; git pull; git checkout your-branch; git merge your-branch ## Fix conflicts here
git commit -m " commit message"; git push; git checkout master; git pull; git merge your-branch ## Fix conflicts here
git push; git checkout your-branch; git merge master