Logo
Explore Help
Sign In
Karl/Alexa-Couchpotato
1
0
Fork 0
You've already forked Alexa-Couchpotato
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Alexa-Couchpotato/src/index.js

6 lines
73 B
JavaScript
Raw Normal View History

Couch Potato Alexa Skill 1.0
2016-03-27 14:35:30 -04:00
'use strict';
Update the codebase to use ES6 and support Node v4.3 on Lambda (#13) Fixes #6 This required a few changes to the code base. First of all, we need to update our lambda function to use Node v4.3. This can be done in the Lambda console on AWS, and is also done in the default.env file. Next, since Node 4.3 doesn't offer full ES6 support yet, we need to run our source code through babel to transform it to be ES5-friendly. The ES6 source now lives in the src/ directory, and the transformed js is output into a dist/ directory. The dist/ package is what ends up getting uploaded to lambda. One last issue is that node-lambda doesn't work with ES6 either, so we need to make sure it runs against the files in the dist/ directory instead. You can use the test-lambda npm script to do this automatically for you by executing npm run test-lambda in the terminal. This will trigger running babel to transform the js and then running node-lambda against the newly transformed files in dist/.
2016-10-29 22:04:44 -04:00
import app from './lib';
Couch Potato Alexa Skill 1.0
2016-03-27 14:35:30 -04:00
exports.handler = app.lambda();
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 35ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API