Skip to content

Commit 51b15af

Browse files
committed
Fix README
1 parent c6d2f35 commit 51b15af

File tree

3 files changed

+28
-21
lines changed

3 files changed

+28
-21
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ CodePipeline automates the build, test, and deploy phases of your release proces
3434

3535
<img src='https://github.com/byaws/aws-s3-codepipeline-deploy/raw/images/codepipeline-works.png' border='0' alt='codepipeline-works' />
3636

37-
## Continuous Deployment with CodePipeline
38-
3937
### Add a Build Specification File to Your Source Repository
4038

4139
Add a `buildspec.yml` file to your source code repository to tell CodeBuild how to do that.
@@ -48,18 +46,18 @@ version: 0.2
4846
phases:
4947
install:
5048
runtime-versions:
51-
nodejs: 12 # Runtime node.js 12
49+
nodejs: lts
5250
commands:
53-
- npm install -g npm@latest # Install npm latest
51+
- npm install -g npm@latest
5452
pre_build:
5553
commands:
56-
- npm install # Install dependencies
54+
- npm install
5755
build:
5856
commands:
59-
- npm run build # Build
57+
- npm run build
6058
post_build:
6159
commands:
62-
- aws s3 sync ./build s3://{ S3_BUCKET } # Upload S3
60+
- aws s3 sync ./[dist folder] s3://[s3 bucket]
6361
```
6462

6563
## What is SNS ?

buildspec.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ version: 0.2
22

33
phases:
44
install:
5-
runtime-versions: # 런타임 nodejs v12으로 설정
6-
nodejs: 12
7-
commands: # npm 버전 업데이트
8-
- npm install -g npm
5+
runtime-versions:
6+
nodejs: lts
7+
commands:
8+
- npm install -g npm@latest
99
pre_build:
10-
commands: # 빌드에 필요한 패키지 설치
10+
commands:
1111
- npm install
1212
build:
13-
commands: # 정적파일로 빌드
13+
commands:
1414
- npm run build
1515
post_build:
16-
commands: # 빌드 후 결과물을 버킷으로 업로드
16+
commands:
1717
- aws s3 sync ./build s3://s3-codepipeline-build-tutorial

package.json

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
{
22
"name": "aws-s3-codepipeline-deploy",
3-
"version": "0.1.0",
3+
"version": "0.0.0",
44
"private": true,
5+
"description": "React + CodePipeline + S3 Deploy",
6+
"author": "AGUMON <ljlm0402@gmail.com>",
7+
"license": "ISC",
8+
"keywords": [
9+
"TypeScript",
10+
"React",
11+
"CodePipeline",
12+
"S3"
13+
],
14+
"scripts": {
15+
"start": "react-scripts start",
16+
"build": "react-scripts build",
17+
"test": "react-scripts test",
18+
"eject": "react-scripts eject"
19+
},
520
"dependencies": {
621
"@testing-library/jest-dom": "^4.2.4",
722
"@testing-library/react": "^9.3.2",
@@ -15,12 +30,6 @@
1530
"react-scripts": "3.3.0",
1631
"typescript": "~3.7.2"
1732
},
18-
"scripts": {
19-
"start": "react-scripts start",
20-
"build": "react-scripts build",
21-
"test": "react-scripts test",
22-
"eject": "react-scripts eject"
23-
},
2433
"eslintConfig": {
2534
"extends": "react-app"
2635
},

0 commit comments

Comments
 (0)