Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit dc94029

Browse files
author
Vladimir Budilov
committed
reshuffled dependencies in package.json to make it compatible with Beanstalk
1 parent 68635cb commit dc94029

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ while Elastic Beanstalk gives you the capability of adding backend operations to
5050
* [What is Elastic Beanstalk](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/Welcome.html)
5151
* [What is S3](http://docs.aws.amazon.com/AmazonS3/latest/dev/Welcome.html)
5252

53-
** createResources.sh requires your [aws cli to be configured](http://docs.aws.amazon.com/cli/latest/userguide/controlling-output.html) for JSON output. **
53+
**createResources.sh requires your [aws cli to be configured](http://docs.aws.amazon.com/cli/latest/userguide/controlling-output.html) for JSON output.**
5454

5555
```
5656
# Install the AWS resources and deploy your application to either Elastic Beanstalk or S3
@@ -75,6 +75,11 @@ npm run build; cd dist; aws s3 sync . s3://[BUCKET_NAME]/
7575
# Test your deployed application
7676
curl –I http://[BUCKET_NAME].s3-website-[REGION].amazonaws.com/
7777
```
78+
__*NOTE: You might want to reshuffle some of the "package.json" dependencies and move the ones that belong to devDependencies
79+
for a leaner deployment bundle. At this point of time, AWS Beanstalk requires all of the dependencies,
80+
including the devDependencies to be under the dependencies section. But if you're not using Beanstalk then you can
81+
optimize as you wish.*__
82+
7883
*or*
7984

8085
### _Beanstalk:_ Update, Build and Deploy

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@
4848
"webpack-dev-server": "2.4.2",
4949
"webpack-md5-hash": "0.0.5",
5050
"webpack-merge": "4.1.0",
51-
"extract-text-webpack-plugin": "2.1.0"
52-
53-
},
54-
"devDependencies": {
51+
"extract-text-webpack-plugin": "2.1.0",
5552
"@angular/cli": "1.0.0",
5653
"@angular/compiler-cli": "4.0.0",
5754
"protractor": "5.1.1",
@@ -62,5 +59,9 @@
6259
"jasmine-spec-reporter": "2.5.0",
6360
"@types/jasmine": "2.2.30",
6461
"@types/selenium-webdriver": "2.44.26"
62+
63+
},
64+
"devDependencies": {
65+
6566
}
6667
}

0 commit comments

Comments
 (0)