This file contains 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:10.16-alpine | |
WORKDIR /opt/app | |
ARG NODE_ENV=production | |
ARG NODE_PATH=./lib | |
ARG NPM_TOKEN | |
ARG REVISION | |
ARG VERSION |
This file contains 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
{ | |
"name": "moleculer-event-testing", | |
"version": "0.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "jest --watch some-process.service.spec.js" | |
}, | |
"keywords": [], | |
"author": "Sid Wood", |
This file contains 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:7.10-alpine | |
RUN mkdir -p /opt/app | |
WORKDIR /opt/app | |
COPY ./package.json /opt/app | |
RUN apk add --update --no-cache tini &&\ | |
apk add --virtual .build-dependencies make gcc g++ python &&\ | |
npm install --production &&\ |
This file contains 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
#!/usr/bin/env bash | |
# | |
# Constants | |
# | |
# DOWNLOAD_PATH=vendor/selenium | |
DOWNLOAD_PATH=node_modules/protractor/selenium | |
CD_VERSION=2.10 |
This file contains 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
// plugins/products-api/test/products.test.js | |
'use strict'; | |
var Lab = require('lab'); | |
var Hapi = require('hapi'); | |
var productsApi = require('../index'); | |
var dataStore = require('../../store'); |
This file contains 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
// client/test/support/matchers.js | |
beforeEach(function() { | |
this.addMatchers({ | |
toRespondTo: function(method) { | |
return void 0 !== this.actual[method]; | |
} | |
}); | |
}); |
This file contains 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
# ISO 3166-1 alpha-2 subset | |
# Removed the following | |
# - BV: Bouvet Island (uninhabited) | |
# - IO: British Indian Ocean Territory (no civilian population) | |
# - TF: French Southern Territories (no permanent population) | |
# - HM: Heard Island and McDonald Islands (uninhabited) | |
# config/initializers/countries.rb | |
COUNTRIES = { |
This file contains 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
# features/step_definitions/search_steps.rb | |
When /^I search for "([^"]*)"$/ do |search_term| | |
search_catalogue_with search_term, :using_direct_model_access | |
end | |
# features/support/search_support.rb | |
module SearchSupport | |
class SearchAutomator |
This file contains 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
= Dan Kubb's Ruby Style Guide | |
You may not like all rules presented here, but they work very well for | |
me and have helped producing high quality code. Everyone is free to | |
code however they want, write and follow their own style guides, but | |
when you contribute to my code, please follow these rules: | |
== Formatting: |
This file contains 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
%w{rubygems sinatra haml sass dm-core}.each {|lib| require lib} | |
configure :production, :staging do | |
require 'dm-postgres-adapter' # for heroku | |
end | |
configure :development do | |
DataMapper.auto_upgrade! | |
end |