- this template purpose to manage source and contribute co-working.
- automate your build process
- take all your projects html,js,css, concatenate them and minify them
- automatically inject dependencies into your html files
- listen to file changes and run tasks when a file changes
- everytime you add a js file, you need to add include it to your html files. this can be automated
- everytime you save a JavaScript file you want to run eslint on it, to warn for errors
- everytime you save es5, you want it to be automatically converted into a javascript file, and have that javascript file included to your html files
- deleting files automatically
- if you have any question, contact lee.jungwoo1@joongang.co.kr
- At first, after
git clone
, set up on local. - please read it all of this document.
- separate section _brand.html, _institute.html, _april.html, _igarten.html
- separate scss files for the section (ex. _institute.scss, _institute-slider.scss)
- also separate js files for the section
- use relative paths/link
- use script for insert video URL
npm install
- buid :
gulp build
- build from ./src, export to ./public
- server :
gulp serve
- after build, start server through BrowserSync
- console show access URL
- browsersync watching all files, rebuild it and browsing it default browser(browserSync.stream())
public
deploy - after compile, built it automatically. upload it to Innovation Lab server.(Never modify it)src
workspace! work in this place!html
_head.html
when start every project, have to rewrite it. but All contents relate withgulpfile.js
(like seo, meta, title...) Never modify it_header.html
layout of header_layout.html
layoutindex.html
1. define var,contents and script base project*.html
2. if you want to add more page, write baseindex.html
img
js
common/*.js
roof scriptscript.js
1. script for project. when compiling, merge all JS into here. separate multiple JS files for usage
mobile
mobile pagesass
style.scss
- Template Engine Nunjucks
- compile using
gulp-nunjucks
- manage layout template
- compile using
- formattiong thorugh
gulp-html-beautify
- ES5
- formatting thorugh
gulp-eslint
- merge all JS into one through
gulp-concat
- using
gulp-uglify
for Minimization and Obfuscation of code.
- Sass
- using
gulp-sass
- using
gulp-autoprefixer