각 스텝별로 package.json 파일 생성
@7ef05dadb40293fe2f1c6ce39a0369ae358df237
--- README.md
+++ README.md
... | ... | @@ -47,15 +47,15 @@ |
| 47 | 47 |
$ git clone https://github.com/eu81273/gulp-step-by-step.git |
| 48 | 48 |
``` |
| 49 | 49 |
|
| 50 |
-clone 받은 저장소로 이동한 후, 미리 package.json 파일에 설정해둔 디펜던시들을 설치합니다. |
|
| 50 |
+clone 받은 저장소의 원하는 예제가 위치한 폴더로 이동한 후, package.json 파일에 설정된 디펜던시들을 설치합니다. |
|
| 51 |
+디펜던시 설치가 완료된 후 각 예제의 설명을 따라 gulp 를 실행하면 예제의 결과를 확인해 볼 수 있습니다. |
|
| 51 | 52 |
|
| 52 | 53 |
```bash |
| 53 | 54 |
$ cd gulp-step-by-step |
| 55 |
+$ cd step01_hello_world |
|
| 54 | 56 |
$ npm install |
| 57 |
+$ gulp hello |
|
| 55 | 58 |
``` |
| 56 |
- |
|
| 57 |
-이제 각 스텝 디렉토리로 이동해서 gulp 를 실행하면 각 예제의 결과를 확인해 볼 수 있습니다. |
|
| 58 |
- |
|
| 59 | 59 |
|
| 60 | 60 |
- [Step 01. 가장 단순한 기본 형태](https://github.com/eu81273/gulp-step-by-step/tree/master/step01_hello_world) |
| 61 | 61 |
- [Step 02. 기본 Task 설정하기](https://github.com/eu81273/gulp-step-by-step/tree/master/step02_default_task) |
+++ step01_hello_world/package.json
... | ... | @@ -0,0 +1,21 @@ |
| 1 | +{ | |
| 2 | + "name": "gulp-step-by-step", | |
| 3 | + "version": "1.0.0", | |
| 4 | + "description": "gulp.js 를 시작하기 위한 간단한 예제들과 설명", | |
| 5 | + "main": "index.js", | |
| 6 | + "scripts": { | |
| 7 | + "test": "echo \"Error: no test specified\" && exit 1" | |
| 8 | + }, | |
| 9 | + "repository": { | |
| 10 | + "type": "git", | |
| 11 | + "url": "git+https://github.com/eu81273/gulp-step-by-step.git" | |
| 12 | + }, | |
| 13 | + "author": "AHN JAE-HA", | |
| 14 | + "license": "MIT", | |
| 15 | + "bugs": { | |
| 16 | + "url": "https://github.com/eu81273/gulp-step-by-step/issues" | |
| 17 | + }, | |
| 18 | + "devDependencies": { | |
| 19 | + "gulp": "^3.9.0" | |
| 20 | + } | |
| 21 | +} |
+++ step02_default_task/package.json
... | ... | @@ -0,0 +1,21 @@ |
| 1 | +{ | |
| 2 | + "name": "gulp-step-by-step", | |
| 3 | + "version": "1.0.0", | |
| 4 | + "description": "gulp.js 를 시작하기 위한 간단한 예제들과 설명", | |
| 5 | + "main": "index.js", | |
| 6 | + "scripts": { | |
| 7 | + "test": "echo \"Error: no test specified\" && exit 1" | |
| 8 | + }, | |
| 9 | + "repository": { | |
| 10 | + "type": "git", | |
| 11 | + "url": "git+https://github.com/eu81273/gulp-step-by-step.git" | |
| 12 | + }, | |
| 13 | + "author": "AHN JAE-HA", | |
| 14 | + "license": "MIT", | |
| 15 | + "bugs": { | |
| 16 | + "url": "https://github.com/eu81273/gulp-step-by-step/issues" | |
| 17 | + }, | |
| 18 | + "devDependencies": { | |
| 19 | + "gulp": "^3.9.0" | |
| 20 | + } | |
| 21 | +} |
+++ step03_series/package.json
... | ... | @@ -0,0 +1,21 @@ |
| 1 | +{ | |
| 2 | + "name": "gulp-step-by-step", | |
| 3 | + "version": "1.0.0", | |
| 4 | + "description": "gulp.js 를 시작하기 위한 간단한 예제들과 설명", | |
| 5 | + "main": "index.js", | |
| 6 | + "scripts": { | |
| 7 | + "test": "echo \"Error: no test specified\" && exit 1" | |
| 8 | + }, | |
| 9 | + "repository": { | |
| 10 | + "type": "git", | |
| 11 | + "url": "git+https://github.com/eu81273/gulp-step-by-step.git" | |
| 12 | + }, | |
| 13 | + "author": "AHN JAE-HA", | |
| 14 | + "license": "MIT", | |
| 15 | + "bugs": { | |
| 16 | + "url": "https://github.com/eu81273/gulp-step-by-step/issues" | |
| 17 | + }, | |
| 18 | + "devDependencies": { | |
| 19 | + "gulp": "^3.9.0" | |
| 20 | + } | |
| 21 | +} |
+++ step04_uglify/package.json
... | ... | @@ -0,0 +1,22 @@ |
| 1 | +{ | |
| 2 | + "name": "gulp-step-by-step", | |
| 3 | + "version": "1.0.0", | |
| 4 | + "description": "gulp.js 를 시작하기 위한 간단한 예제들과 설명", | |
| 5 | + "main": "index.js", | |
| 6 | + "scripts": { | |
| 7 | + "test": "echo \"Error: no test specified\" && exit 1" | |
| 8 | + }, | |
| 9 | + "repository": { | |
| 10 | + "type": "git", | |
| 11 | + "url": "git+https://github.com/eu81273/gulp-step-by-step.git" | |
| 12 | + }, | |
| 13 | + "author": "AHN JAE-HA", | |
| 14 | + "license": "MIT", | |
| 15 | + "bugs": { | |
| 16 | + "url": "https://github.com/eu81273/gulp-step-by-step/issues" | |
| 17 | + }, | |
| 18 | + "devDependencies": { | |
| 19 | + "gulp": "^3.9.0", | |
| 20 | + "gulp-uglify": "^1.4.0" | |
| 21 | + } | |
| 22 | +} |
+++ step05_watch/package.json
... | ... | @@ -0,0 +1,22 @@ |
| 1 | +{ | |
| 2 | + "name": "gulp-step-by-step", | |
| 3 | + "version": "1.0.0", | |
| 4 | + "description": "gulp.js 를 시작하기 위한 간단한 예제들과 설명", | |
| 5 | + "main": "index.js", | |
| 6 | + "scripts": { | |
| 7 | + "test": "echo \"Error: no test specified\" && exit 1" | |
| 8 | + }, | |
| 9 | + "repository": { | |
| 10 | + "type": "git", | |
| 11 | + "url": "git+https://github.com/eu81273/gulp-step-by-step.git" | |
| 12 | + }, | |
| 13 | + "author": "AHN JAE-HA", | |
| 14 | + "license": "MIT", | |
| 15 | + "bugs": { | |
| 16 | + "url": "https://github.com/eu81273/gulp-step-by-step/issues" | |
| 17 | + }, | |
| 18 | + "devDependencies": { | |
| 19 | + "gulp": "^3.9.0", | |
| 20 | + "gulp-uglify": "^1.4.0" | |
| 21 | + } | |
| 22 | +} |
+++ step06_concat/package.json
... | ... | @@ -0,0 +1,23 @@ |
| 1 | +{ | |
| 2 | + "name": "gulp-step-by-step", | |
| 3 | + "version": "1.0.0", | |
| 4 | + "description": "gulp.js 를 시작하기 위한 간단한 예제들과 설명", | |
| 5 | + "main": "index.js", | |
| 6 | + "scripts": { | |
| 7 | + "test": "echo \"Error: no test specified\" && exit 1" | |
| 8 | + }, | |
| 9 | + "repository": { | |
| 10 | + "type": "git", | |
| 11 | + "url": "git+https://github.com/eu81273/gulp-step-by-step.git" | |
| 12 | + }, | |
| 13 | + "author": "AHN JAE-HA", | |
| 14 | + "license": "MIT", | |
| 15 | + "bugs": { | |
| 16 | + "url": "https://github.com/eu81273/gulp-step-by-step/issues" | |
| 17 | + }, | |
| 18 | + "devDependencies": { | |
| 19 | + "gulp": "^3.9.0", | |
| 20 | + "gulp-concat": "^2.6.0", | |
| 21 | + "gulp-uglify": "^1.4.0" | |
| 22 | + } | |
| 23 | +} |
+++ step07_css_minify/package.json
... | ... | @@ -0,0 +1,24 @@ |
| 1 | +{ | |
| 2 | + "name": "gulp-step-by-step", | |
| 3 | + "version": "1.0.0", | |
| 4 | + "description": "gulp.js 를 시작하기 위한 간단한 예제들과 설명", | |
| 5 | + "main": "index.js", | |
| 6 | + "scripts": { | |
| 7 | + "test": "echo \"Error: no test specified\" && exit 1" | |
| 8 | + }, | |
| 9 | + "repository": { | |
| 10 | + "type": "git", | |
| 11 | + "url": "git+https://github.com/eu81273/gulp-step-by-step.git" | |
| 12 | + }, | |
| 13 | + "author": "AHN JAE-HA", | |
| 14 | + "license": "MIT", | |
| 15 | + "bugs": { | |
| 16 | + "url": "https://github.com/eu81273/gulp-step-by-step/issues" | |
| 17 | + }, | |
| 18 | + "devDependencies": { | |
| 19 | + "gulp": "^3.9.0", | |
| 20 | + "gulp-concat": "^2.6.0", | |
| 21 | + "gulp-minify-css": "^1.2.1", | |
| 22 | + "gulp-uglify": "^1.4.0" | |
| 23 | + } | |
| 24 | +} |
--- package.json
+++ step08_browser_sync/package.json
... | ... | @@ -0,0 +1,26 @@ |
| 1 | +{ | |
| 2 | + "name": "gulp-step-by-step", | |
| 3 | + "version": "1.0.0", | |
| 4 | + "description": "gulp.js 를 시작하기 위한 간단한 예제들과 설명", | |
| 5 | + "main": "index.js", | |
| 6 | + "scripts": { | |
| 7 | + "test": "echo \"Error: no test specified\" && exit 1" | |
| 8 | + }, | |
| 9 | + "repository": { | |
| 10 | + "type": "git", | |
| 11 | + "url": "git+https://github.com/eu81273/gulp-step-by-step.git" | |
| 12 | + }, | |
| 13 | + "author": "AHN JAE-HA", | |
| 14 | + "license": "MIT", | |
| 15 | + "bugs": { | |
| 16 | + "url": "https://github.com/eu81273/gulp-step-by-step/issues" | |
| 17 | + }, | |
| 18 | + "devDependencies": { | |
| 19 | + "browser-sync": "^2.9.11", | |
| 20 | + "gulp": "^3.9.0", | |
| 21 | + "gulp-concat": "^2.6.0", | |
| 22 | + "gulp-minify-css": "^1.2.1", | |
| 23 | + "gulp-minify-html": "^1.0.4", | |
| 24 | + "gulp-uglify": "^1.4.0" | |
| 25 | + } | |
| 26 | +} |
--- package.json
+++ step09_browserify/package.json
... | ... | @@ -0,0 +1,29 @@ |
| 1 | +{ | |
| 2 | + "name": "gulp-step-by-step", | |
| 3 | + "version": "1.0.0", | |
| 4 | + "description": "gulp.js 를 시작하기 위한 간단한 예제들과 설명", | |
| 5 | + "main": "index.js", | |
| 6 | + "scripts": { | |
| 7 | + "test": "echo \"Error: no test specified\" && exit 1" | |
| 8 | + }, | |
| 9 | + "repository": { | |
| 10 | + "type": "git", | |
| 11 | + "url": "git+https://github.com/eu81273/gulp-step-by-step.git" | |
| 12 | + }, | |
| 13 | + "author": "AHN JAE-HA", | |
| 14 | + "license": "MIT", | |
| 15 | + "bugs": { | |
| 16 | + "url": "https://github.com/eu81273/gulp-step-by-step/issues" | |
| 17 | + }, | |
| 18 | + "devDependencies": { | |
| 19 | + "browser-sync": "^2.9.11", | |
| 20 | + "browserify": "^11.2.0", | |
| 21 | + "gulp": "^3.9.0", | |
| 22 | + "gulp-concat": "^2.6.0", | |
| 23 | + "gulp-minify-css": "^1.2.1", | |
| 24 | + "gulp-minify-html": "^1.0.4", | |
| 25 | + "gulp-uglify": "^1.4.0", | |
| 26 | + "vinyl-buffer": "^1.0.0", | |
| 27 | + "vinyl-source-stream": "^1.1.0" | |
| 28 | + } | |
| 29 | +} |
--- package.json
+++ step10_sourcemaps/package.json
... | ... | @@ -0,0 +1,30 @@ |
| 1 | +{ | |
| 2 | + "name": "gulp-step-by-step", | |
| 3 | + "version": "1.0.0", | |
| 4 | + "description": "gulp.js 를 시작하기 위한 간단한 예제들과 설명", | |
| 5 | + "main": "index.js", | |
| 6 | + "scripts": { | |
| 7 | + "test": "echo \"Error: no test specified\" && exit 1" | |
| 8 | + }, | |
| 9 | + "repository": { | |
| 10 | + "type": "git", | |
| 11 | + "url": "git+https://github.com/eu81273/gulp-step-by-step.git" | |
| 12 | + }, | |
| 13 | + "author": "AHN JAE-HA", | |
| 14 | + "license": "MIT", | |
| 15 | + "bugs": { | |
| 16 | + "url": "https://github.com/eu81273/gulp-step-by-step/issues" | |
| 17 | + }, | |
| 18 | + "devDependencies": { | |
| 19 | + "browser-sync": "^2.9.11", | |
| 20 | + "browserify": "^11.2.0", | |
| 21 | + "gulp": "^3.9.0", | |
| 22 | + "gulp-concat": "^2.6.0", | |
| 23 | + "gulp-minify-css": "^1.2.1", | |
| 24 | + "gulp-minify-html": "^1.0.4", | |
| 25 | + "gulp-sourcemaps": "^1.6.0", | |
| 26 | + "gulp-uglify": "^1.4.0", | |
| 27 | + "vinyl-buffer": "^1.0.0", | |
| 28 | + "vinyl-source-stream": "^1.1.0" | |
| 29 | + } | |
| 30 | +} |
--- package.json
+++ step11_incremental_build/package.json
... | ... | @@ -0,0 +1,33 @@ |
| 1 | +{ | |
| 2 | + "name": "gulp-step-by-step", | |
| 3 | + "version": "1.0.0", | |
| 4 | + "description": "gulp.js 를 시작하기 위한 간단한 예제들과 설명", | |
| 5 | + "main": "index.js", | |
| 6 | + "scripts": { | |
| 7 | + "test": "echo \"Error: no test specified\" && exit 1" | |
| 8 | + }, | |
| 9 | + "repository": { | |
| 10 | + "type": "git", | |
| 11 | + "url": "git+https://github.com/eu81273/gulp-step-by-step.git" | |
| 12 | + }, | |
| 13 | + "author": "AHN JAE-HA", | |
| 14 | + "license": "MIT", | |
| 15 | + "bugs": { | |
| 16 | + "url": "https://github.com/eu81273/gulp-step-by-step/issues" | |
| 17 | + }, | |
| 18 | + "devDependencies": { | |
| 19 | + "browser-sync": "^2.9.11", | |
| 20 | + "browserify": "^11.2.0", | |
| 21 | + "gulp": "^3.9.0", | |
| 22 | + "gulp-cached": "^1.1.0", | |
| 23 | + "gulp-concat": "^2.6.0", | |
| 24 | + "gulp-minify-css": "^1.2.1", | |
| 25 | + "gulp-minify-html": "^1.0.4", | |
| 26 | + "gulp-newer": "^1.1.0", | |
| 27 | + "gulp-remember": "^0.3.0", | |
| 28 | + "gulp-sourcemaps": "^1.6.0", | |
| 29 | + "gulp-uglify": "^1.4.0", | |
| 30 | + "vinyl-buffer": "^1.0.0", | |
| 31 | + "vinyl-source-stream": "^1.1.0" | |
| 32 | + } | |
| 33 | +} |
--- package.json
+++ step12_plumber/package.json
... | ... | @@ -0,0 +1,34 @@ |
| 1 | +{ | |
| 2 | + "name": "gulp-step-by-step", | |
| 3 | + "version": "1.0.0", | |
| 4 | + "description": "gulp.js 를 시작하기 위한 간단한 예제들과 설명", | |
| 5 | + "main": "index.js", | |
| 6 | + "scripts": { | |
| 7 | + "test": "echo \"Error: no test specified\" && exit 1" | |
| 8 | + }, | |
| 9 | + "repository": { | |
| 10 | + "type": "git", | |
| 11 | + "url": "git+https://github.com/eu81273/gulp-step-by-step.git" | |
| 12 | + }, | |
| 13 | + "author": "AHN JAE-HA", | |
| 14 | + "license": "MIT", | |
| 15 | + "bugs": { | |
| 16 | + "url": "https://github.com/eu81273/gulp-step-by-step/issues" | |
| 17 | + }, | |
| 18 | + "devDependencies": { | |
| 19 | + "browser-sync": "^2.9.11", | |
| 20 | + "browserify": "^11.2.0", | |
| 21 | + "gulp": "^3.9.0", | |
| 22 | + "gulp-cached": "^1.1.0", | |
| 23 | + "gulp-concat": "^2.6.0", | |
| 24 | + "gulp-minify-css": "^1.2.1", | |
| 25 | + "gulp-minify-html": "^1.0.4", | |
| 26 | + "gulp-newer": "^1.1.0", | |
| 27 | + "gulp-plumber": "^1.0.1", | |
| 28 | + "gulp-remember": "^0.3.0", | |
| 29 | + "gulp-sourcemaps": "^1.6.0", | |
| 30 | + "gulp-uglify": "^1.4.0", | |
| 31 | + "vinyl-buffer": "^1.0.0", | |
| 32 | + "vinyl-source-stream": "^1.1.0" | |
| 33 | + } | |
| 34 | +} |
--- package.json
+++ step13_run_sequence/package.json
... | ... | @@ -16,11 +16,9 @@ |
| 16 | 16 |
"url": "https://github.com/eu81273/gulp-step-by-step/issues" |
| 17 | 17 |
}, |
| 18 | 18 |
"devDependencies": {
|
| 19 |
- "autoprefixer": "^5.2.0", |
|
| 20 | 19 |
"browser-sync": "^2.9.11", |
| 21 | 20 |
"browserify": "^11.2.0", |
| 22 | 21 |
"gulp": "^3.9.0", |
| 23 |
- "gulp-autoprefixer": "^3.1.0", |
|
| 24 | 22 |
"gulp-cached": "^1.1.0", |
| 25 | 23 |
"gulp-concat": "^2.6.0", |
| 26 | 24 |
"gulp-minify-css": "^1.2.1", |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?