1.0.0 โ€ข Published 5 years ago

static-page-starterkit v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

๐Ÿ›  STATIC PAGE STARTER KIT Ver.1.1.0

๋‹ญ์žก๋Š”๋ฐ ์†Œ์žก๋Š”์นผ์„ ์“ธ ์ˆ˜ ์—†์–ด์„œ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค.(React,Vue ๋“ฑ๋“ฑ..)

์ •์  ํŽ˜์ด์ง€๋ฅผ ๋นจ๋ฆฌ ๊ตฌ์ถ•ํ•˜๊ธฐ ์œ„ํ•œ ์Šคํƒ€ํ„ฐํ‚ท์ž…๋‹ˆ๋‹ค.

๋ฐฐํฌ์šฉ์€ ์•„๋‹ˆ์ง€๋งŒ ๋ˆ„๊ตฌ๋‚˜ ์ž์œ ๋กญ๊ฒŒ ์‚ฌ์šฉ, ๋ณ€์กฐ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

โ—๏ธ TIP

  • ES6 ๋ฌธ๋ฒ•์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • SASS(SCSS)๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ๋กœ์ปฌ์„œ๋ฒ„ ์‚ฌ์šฉ ๋ฐ ๋ธŒ๋ผ์šฐ์ € ์ž๋™๊ฐฑ์‹ ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.(์ƒˆ๋กœ๊ณ ์นจ ์•ˆ๋…•๐Ÿ‘‹)
  • ejs๋ฅผ ์ด์šฉํ•œ html include ๋ฌธ๋ฒ•์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ“ƒ USAGE

1. ํ•ด๋‹น ํŒจํ‚ค์ง€ ๋‹ค์šด๋กœ๋“œ ํ›„, ๋ฃจํŠธ ๋””๋ ‰ํ† ๋ฆฌ๐Ÿ“์—์„œ ์˜์กด์„ฑ ๋ชจ๋“ˆ์„ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

npm install

2. Folder structure (๐Ÿ“src)

  • views : ejs ํ™•์žฅ์ž๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
    • html include๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    • aํƒœ๊ทธ ์‚ฌ์šฉ์‹œ ๋งํฌ์—๋Š” .html ํ™•์žฅ์ž๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
          โŒ <a href="./test.ejs">
          โญ•๏ธ <a href="./test.html">
  • styles : scss๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. sass,scss๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š์œผ์‹œ๋ฉด ํ™•์žฅ์ž๋งŒ scss๋กœ ์‚ฌ์šฉํ•ด์ฃผ์„ธ์š”.
  • js : jsํŒŒ์ผ์„ ์ƒ์„ฑํ•ด์ฃผ์„ธ์š”. es6๋ฌธ๋ฒ• ์‚ฌ์šฉ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.
  • inc : include๋กœ ์‚ฌ์šฉํ•  html ์ปดํฌ๋„ŒํŠธ๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ejs ํ™•์žฅ์ž๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
  • lib : ์™ธ๋ถ€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ js ํŒŒ์ผ
  • assets : ์ด๋ฏธ์ง€,๋™์˜์ƒ ๋“ฑ๋“ฑ

3. npm run gaeng ํ˜น์€ gulp ๋ช…๋ น์–ด๋กœ ๋กœ์ปฌ์„œ๋ฒ„๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

//NPM
npm run gaeng

//YARN
yarn gaeng

//gulp
gulp

4. ๋นŒ๋“œ ๋ช…๋ น์–ด๋Š” ๋”ฐ๋กœ ์—†์Šต๋‹ˆ๋‹ค. ์ž‘์—… ํ›„ dist ํด๋”์˜ ํŒŒ์ผ๋“ค์„ ๋ฐฐํฌ์— ์‚ฌ์šฉํ•ด์ฃผ์„ธ์š”.

HISTORY

DatehistoryVersion
2019-07-19์ตœ์ดˆ ๋ฐฐํฌVer 1.0.0
2019-07-241. ejs ์ถ”๊ฐ€Ver 1.1.0
2. ejs,scss ์ปดํŒŒ์ผ ์—๋Ÿฌ์‹œ notify ์ถ”๊ฐ€

Copyright 2019 . Kyeonggeun Cho All rights reserved