introduction to node.js, npm and grunt

6
Introduction to node.js, npm and Grunt Soribada Web Development Team

Upload: jaecheol-lee

Post on 16-Jul-2015

74 views

Category:

Technology


5 download

TRANSCRIPT

Introduction to node.js, npm and GruntSoribada Web Development Team

1. Server-side Javascript V8 엔진에서 아이디어를 얻어 2009년 탄생현재 0.12.0 버전

2. HTTP, HTTPS, File System, URL, DNS, Child Process etc

3. Features

1. Event-driven 이벤트가 발생할 때 까지 자원을 소모하며 기다라지 않는다. 이벤트가 발생할 때 자원을 사용한다.

2. non-blocking I/O blocking I/O에 비하여 메모리 점유율이 적고 속도가 빠르다.

4. Showcase

1. node.js 패키지 매니저node.js의 패키지들을 커맨드 라인 인터페이스를 통해 다운로드 받을 수 있음.

2.인기 패키지들 - express - grunt & grunt-cli - karma - bower - coffee script - yo

3. Showcase

1. node.js 패키지 중 하나

2. Grunt = Automation

3. Examples

1. Creating documentation with jsDoc

2. QC javascript code with jshint

3. concat, minify static files

4. build control

4.플러그인 사용법은 각 플러그인의 github를 참고해야하는 것이 함정

5. Showcase

1. Soribada build plugins

1. time-grunt: 태스크 시간 표시

2. load-grunt-tasks: 플러그인들 로드

3. grunt-contrib-clean: 삭제

4. grunt-contrib-copy: 카피

5. grunt-usemin: concat, minify

6. grunt-contrib-uglify: concat, minify

7. grunt-filerev: hashing files

8. grunt-contrib-cssmin: minify css

9. grunt-contrib-htmlmin: minify html

10.grunt-build-control: git commit, push

Thank you