Commit 25293037 authored by kim bo min's avatar kim bo min

Initial commit

parents
Pipeline #1791 canceled with stages

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

{
"presets": ["es2015"]
}
\ No newline at end of file
{
"liveServer.settings.port": 5501
}
\ No newline at end of file
### 프리아이브 GULP SETTING
## package.json
# npm i --save-dev gulp
gulp 설치
# npm i --save-dev babel-core babel-preset-es2015
javascript ES6 문법 사용을 위한 babel 설치
# npm i --save-dev gulp-concat
.src('file 경로') 의 파일들을 네이밍과 함께 병합한다.
# npm i --save-dev gulp-file-include
html 을 include 하여 공통부분 유지보수하는데 쉽게한다.
# npm i --save-dev gulp-sass
sass 사용
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; }
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-size: 10px; height: 100%; }
a { text-decoration: none; color: inherit; }
button { padding: 0; margin: 0; background-color: transparent; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; }
li { list-style: none; margin: 0; padding: 0; }
.btn { margin: 0; padding: 0; background-color: transparent; padding: 3px 5px; border: 1px #ccc solid; height: 30px; }
.btn__round { border-radius: 10px; }
/*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLC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FDLEVBQ1QsT0FBTyxFQUFFLENBQUMsRUFDVixnQkFBZ0IsRUFBRSxXQUFXLEVBQzdCLE9BQU8sRUFBRSxPQUFPLEVBQ2hCLE1BQU0sRUFBRSxjQUFjLEVBQ3RCLE1BQU0sRUFBRSxJQUFJLEdBSWI7O0FBSEUsQUFBRCxXQUFRLENBQUMsRUFDUCxhQUFhLEVBQUUsSUFBSSxHQUNwQiJ9 */
This diff is collapsed.
'use strict';
import gulp from 'gulp';
import gutil from 'gulp-util';
import server from 'gulp-server-livereload';
import fileinclude from 'gulp-file-include';
import scss from 'gulp-sass';
import sourcemaps from 'gulp-sourcemaps';
const DIR = {
SRC: 'src',
DIST: 'dist',
}
const SRC = {
CSS: `${DIR.SRC}/scss/**/*.scss`,
INCLUDE: `${DIR.SRC}/includes/**/*.html`,
HTML: `${DIR.SRC}/html/**/*.html`,
}
const DIST = {
CSS: `${DIR.DIST}/css/`,
HTML: `${DIR.DIST}/pages/`,
}
gulp.task('server', () => {
gulp.src(`./`)
.pipe(server({
livereload: true,
open: true,
// defaultFile: '/dist/pages/index.html'
}))
})
gulp.task('html:watch', () => {
return gulp.src([`${SRC.HTML}`])
.pipe(fileinclude({
prefix: '@@',
basepath: '@file'
}))
.pipe(gulp.dest(`${DIST.HTML}`));
})
// compile scss into css
const scssOptions = {
/**
* outputStyle (Type: String, Default: nested)
* CSS의 컴파일 결과 코드스타일 지정
* Values: nested, expanded, compact, compressed
*/
outputStyle: 'compact',
/**
* indentType (Type: String, Default: space)
* 컴파일 된 CSS의 "들여쓰기"의 타입
* Values: space, tab
*/
indentType: 'tab',
/**
* indentWidth (Type: Integer, Default: 2)
* 컴파일 된 CSS의 "들여쓰기" 의 갯수
*/
indentWidth: 1,
/**
* precision (Type: Integer, Default: 5)
* 컴파일 된 CSS의 소수점 자리수.
*/
precision: 6,
/**
* sourceComments (Type: Boolean, Default: false)
* 컴파일 된 CSS에 원본소스의 위치와 줄수 주셕표시.
*/
sourceComments: false,
}
gulp.task('scss:compile', () => {
return gulp.src(`${DIR.SRC}/scss/index.scss`)
.pipe(sourcemaps.init())
.pipe(scss(scssOptions).on('error', scss.logError))
.pipe(sourcemaps.write())
.pipe(gulp.dest(`${DIST.CSS}`))
})
gulp.task('watch', () => {
let watcher = {
html: gulp.watch(SRC.HTML, gulp.series(['html:watch'])),
include: gulp.watch(SRC.INCLUDE, gulp.series(['html:watch'])),
css: gulp.watch(SRC.CSS, gulp.series(['scss:compile']))
}
let notify = (event) => {
gutil.log('File', gutil.colors.yellow(event.path), 'was', gutil.colors.magenta(event.type));
};
for(let key in watcher) {
watcher[key].on('change', notify);
}
})
gulp.task('default', gulp.parallel('server', 'watch'));
../acorn/bin/acorn
\ No newline at end of file
../atob/bin/atob.js
\ No newline at end of file
../babel/lib/cli.js
\ No newline at end of file
../babel/lib/cli.js
\ No newline at end of file
../babel/lib/cli.js
\ No newline at end of file
../babylon/bin/babylon.js
\ No newline at end of file
../color-support/bin.js
\ No newline at end of file
../gulg/bin/run.js
\ No newline at end of file
../gulp/bin/gulp.js
\ No newline at end of file
../he/bin/he
\ No newline at end of file
../html-minifier/cli.js
\ No newline at end of file
../in-publish/in-install.js
\ No newline at end of file
../in-publish/in-publish.js
\ No newline at end of file
../jsesc/bin/jsesc
\ No newline at end of file
../json5/lib/cli.js
\ No newline at end of file
../gulp-server-livereload/bin/livereload.js
\ No newline at end of file
../loose-envify/cli.js
\ No newline at end of file
../mkdirp/bin/cmd.js
\ No newline at end of file
../node-gyp/bin/node-gyp.js
\ No newline at end of file
../node-sass/bin/node-sass
\ No newline at end of file
../nopt/bin/nopt.js
\ No newline at end of file
../in-publish/not-in-install.js
\ No newline at end of file
../in-publish/not-in-publish.js
\ No newline at end of file
../prettyjson/bin/prettyjson
\ No newline at end of file
../regjsparser/bin/parser
\ No newline at end of file
../rimraf/bin.js
\ No newline at end of file
../sass-graph/bin/sassgraph
\ No newline at end of file
../semver/bin/semver
\ No newline at end of file
../sshpk/bin/sshpk-conv
\ No newline at end of file