- 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 [email protected]
- due date is 10182017
- 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.
- use JSON data at section
injoongang,history.
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())
publicdeploy - after compile, built it automatically. upload it to Innovation Lab server.(Never modify it)srcworkspace! work in this place!html_head.htmlwhen start every project, have to rewrite it. but All contents relate withgulpfile.js(like seo, meta, title...) Never modify it_header.htmllayout of header_layout.htmllayoutindex.html1. define var,contents and script base project*.html2. if you want to add more page, write baseindex.html
imgjscommon/*.jsroof scriptscript.js1. script for project. when compiling, merge all JS into here. separate multiple JS files for usage
mobilemobile pagesassstyle.scss
- Template Engine Nunjucks
- compile using
gulp-nunjucks - manage layout template
- compile using
- formatting thorugh
gulp-html-beautify
- ES5
- formatting thorugh
gulp-eslint - merge all JS into one through
gulp-concat - using
gulp-uglifyfor Minimization and Obfuscation of code.
- Sass
- using
gulp-sass - using
gulp-autoprefixer