Skip to content

Commit

Permalink
fix: success in deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-lemon committed Jul 18, 2019
1 parent 4b7ba72 commit 85e6a9e
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 7 deletions.
10 changes: 9 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,13 @@
"es2015",
"stage-2"
],
"plugins": []
"plugins": [
[
"transform-runtime",
{
"polyfill": false,
"regenerator": true
}
]
]
}
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dist/*
env/*
2 changes: 1 addition & 1 deletion env/lemon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ default_env: &default_env
LC: 1 # line-coloring
TS: 1 # time-stamp in line
NAME: 'lemon'
SRC: './src/'
SLACK_PUBLIC: 'AQICAHgbY0Vh/KmEbJAIGCzYw7lo21MbERr8nDmrLayPi0EuxgFZMJda8JVWOdKIuxYbbRMPAAAArzCBrAYJKoZIhvcNAQcGoIGeMIGbAgEAMIGVBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDIBCSXmt5AmMA/atMgIBEIBo43N3BLfCJgjn4N4EXiVQcu1jIMdTh3B/428v7bIhFNYt9b69lKnLVWSjtGxs1mn5Ka+ngxZUlsE3Y/9utFbjUvC7tvsxwISYDoNFBOZCauyuSIk51G2Z3357iqoXxLaQnRr6GVGS13A='

#-----------------------------------
# local development configuration.
local:
<<: *default_env
STAGE: 'local'
SRC: './src/'

#-----------------------------------
# development server
Expand Down
1 change: 1 addition & 0 deletions env/none.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ default_env: &default_env
local:
<<: *default_env
STAGE: 'local'
SRC: './src/'

#-----------------------------------
# development server
Expand Down
2 changes: 1 addition & 1 deletion env/ssocio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ default_env: &default_env
LC: 1 # line-coloring
TS: 1 # time-stamp in line
NAME: 'ssocio'
SRC: './src/'
SLACK_PUBLIC: 'AQICAHixEHf7isdNQBbkxpofjAClbUEdI/Y6QQovlgFxV0cfRAF+FHEoDRV35GnfKVRptzG1AAAAkTCBjgYJKoZIhvcNAQcGoIGAMH4CAQAweQYJKoZIhvcNAQcBMB4GCWCGSAFlAwQBLjARBAx5BZAik3j59qOhBZcCARCATA6T1tI/R1nXo44Qfy7itfLJxsnFfaIGpLyBCGGvGO4E9SlOC7aG9mHWYvkl7v5HyGc019HbfKdpiigFo4R/26gyaiMWICuxp+SRbf4='

#-----------------------------------
# local development configuration.
local:
<<: *default_env
STAGE: 'local'
SRC: './src/'

#-----------------------------------
# development server
Expand Down
2 changes: 1 addition & 1 deletion handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const $env = process.env; //NOTE! - serverless
process.env.TZ = 'Asia/Seoul';

//! TARGET SOURCE FOLDER.
const SRC = $env.SRC || './src/';
const SRC = $env.SRC || './dist/';

//! PREPARE RUNNING SCOPE.
const $scope = {
Expand Down
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ const express = (env) => {
*
* @param {*} env environment config like `process.env`
*/
const handler = (env) => {
const SRC = (env && env.SRC) || './dist/';
const $handler = require(`${SRC}handler`);
const handler = () => {
const $handler = require('./handler');
return $handler;
};

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"license": "MIT",
"dependencies": {
"aws-sdk": "^2.456.0",
"babel-runtime": "^6.22.0",
"https": "^1.0.0",
"lodash": "^4.17.14",
"request": "^2.88.0",
Expand All @@ -49,6 +50,7 @@
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^10.0.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-preset-es2015": "^6.24.1",
Expand Down

0 comments on commit 85e6a9e

Please sign in to comment.