This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* text=auto eol=lf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
env: { | |
commonjs: true, | |
es6: true, | |
node: true | |
}, | |
extends: ['formidable/configurations/es6-node', 'prettier'], | |
parserOptions: { | |
ecmaVersion: 2018 | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.0' | |
volumes: | |
node_modules: | |
services: | |
app: | |
image: node:8-alpine | |
command: yarn run test-app | |
working_dir: '/app' | |
environment: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:6.6 | |
# add node modules folder to path and set global node path | |
ENV NODE_PATH /opt/node_modules | |
ENV PATH /opt/node_modules/.bin:$PATH | |
# copy dependency file for npm into the container --> everytime (to update possible dependencies) | |
ADD package.json /opt/package.json | |
# rm old node_modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AWS from 'aws-sdk'; | |
const sns = new AWS.SNS(); | |
export const promisePublish = params => sns | |
.publish({ | |
Message: JSON.stringify(params.message), | |
TopicArn: params.topicArn | |
}) | |
.promise(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AWS from 'aws-sdk'; | |
const lambda = new AWS.Lambda(); | |
const createAsyncInvokeParams = ( | |
{ | |
functionName, | |
payload | |
} | |
) => ({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webpack = require('webpack'); | |
var path = require('path'); | |
var commonsPlugin = new webpack.optimize.CommonsChunkPlugin('common.js'); | |
var ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
var extractCSS = new ExtractTextPlugin("css/[name].css"); | |
var extractSCSS = new ExtractTextPlugin("css/[name].scss"); | |
module.exports = { | |
context: __dirname + '/assets', | |
entry: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function befe | |
{ | |
export $( cat .env | xargs ) && $@ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function($, window, document, undefined) { | |
var pluginName = "name me": | |
$.fn[pluginName] = function (method) { | |
var dataName = "plugin_" + pluginName; | |
return this.each(function() { | |
var localData = $.data(this, dataName); | |
if (undefined === $.data(this, dataName)) { | |
var options = $.extend({}, $.fn[pluginName]["defaults"], method); | |
$.data(this, dataName, plugin(this, options)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem 'pry' | |
gem "scoped_attr_accessor", github: "dbrady/scoped_attr_accessor", branch: "master" |
NewerOlder