Skip to content

Commit

Permalink
[T] add basic depoy script
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 14, 2018
1 parent 6cdf940 commit cc72e50
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -43,5 +43,7 @@ testem.log
Thumbs.db
apps/
examples/node_modules/
deploy/node_modules/
.rpt2_cache/
docs/mooa
examples/dist
14 changes: 14 additions & 0 deletions deploy/package.json
@@ -0,0 +1,14 @@
{
"name": "mooa-example-deploy",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Phodal Huang",
"license": "MIT",
"dependencies": {
"serverless-finch": "^1.4.0"
}
}
13 changes: 13 additions & 0 deletions deploy/serverless.yml
@@ -0,0 +1,13 @@
service: mooa-example-deploy

plugins:
- serverless-finch

provider:
name: aws
runtime: nodejs6.10

custom:
client:
distributionFolder: ../examples/dist
bucketName: mooa.pho.im
28 changes: 28 additions & 0 deletions deploy/yarn.lock
@@ -0,0 +1,28 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


async@^1.5.2:
version "1.5.2"
resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"

bluebird@^3.0.6:
version "3.5.1"
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9"

lodash@^4.2.1:
version "4.17.5"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"

mime@^1.2.11:
version "1.6.0"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"

serverless-finch@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/serverless-finch/-/serverless-finch-1.4.0.tgz#3a45f6b69739ca2888baab4d98c8cbd23502fbd4"
dependencies:
async "^1.5.2"
bluebird "^3.0.6"
lodash "^4.2.1"
mime "^1.2.11"

0 comments on commit cc72e50

Please sign in to comment.