Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
brantburnett committed Feb 22, 2018
0 parents commit b5940ab
Show file tree
Hide file tree
Showing 33 changed files with 7,474 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"presets": [
["env", {
"targets": {
"node": "6.9"
}
}]
],
"plugins": [
"transform-runtime"
],
"sourceMaps": true,
"retainLines": true
}
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.git*
.editorconfig
.travis.yml
node_modules/
/scripts
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.js]
max_line_length = 80

[*.json]
indent_size = 2
max_line_length = null

[*.{yaml,yml}]
indent_size = 2
max_line_length = null
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
test/**/!(*.test.js)
dist
13 changes: 13 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
parser: babel-eslint
plugins:
- babel
extends:
- eslint:recommended
- google
env:
es6: true
node: true
parserOptions:
sourceType: module
rules:
no-console: "off"
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
64 changes: 64 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# Distribution dir
/dist
12 changes: 12 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
**/*.js.map
app/
.git*
.eslint*
.babelrc
gulpfile.js
beer-sample/
Dockerfile
.dockerignore
.editorconfig
.travis.yml
/scripts
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
sudo: required
language: node_js
node_js:
- node
services:
- docker
before_script:
- scripts/set_version.sh
script:
- npm run-script lint
- npm run-script build
- docker build -t btburnett3/couchbase-index-manager:${TRAVIS_BUILD_NUMBER} .
deploy:
- provider: script
script: scripts/docker_push.sh
on:
tags: true
- provider: npm
email: bburnett@centeredgesoftware.com
api_key:
secure: WaLhM7/6Kti9B671UpoYyAE+Z4tw/LyiEJq2cWaqW771qY2OM5uXlcKZHSJaszbDscKmsOJJtoM1YQ1nrOjDWyAeviaJBFkoMKPVYHH6ZMiB6RIlyFSvWoEFGO5IHQwSg4H1EXXT6FdMG8VdnZhhlVdFT1oKk16fKxRxp2b4Tuv2A4l43mezn6IV/NJ15FbFCtw/t5eWMn5tqUMCx9X5X8wP7nUDXHUiv1+erfUr7tgXO0gZmmlDgaZeFnfmTqPmC9Cd1BVF6fEpeYljqDIyoiCJz1XGBrHxXwCr6Nxqz7wb81/yBsp6tvhtfUcUwDgS+B3CKi3KlbK8e5stBVPfA0+/VagjjXFtbmqKTZAxmxSSd1HP4g/4Cwe8cIIF93i7GEWGwBPB8C6VMSaC0OFr+gwmlTFDCZ15uz9bw3amDdkSHQFVn8YTW8Hr9irBpsIaf80azMNCtXz2beBpEZ+Yblx1DwuCO7q/8HcLunhV6FWr1Was/Y6Z6ILIummaYVpIQHPD5Qh+cRSUd/Q/jiAWsWv/0lYaw0KhAxNquoRhQo2guyz+r84pisQ9AZDU4Jd8MRa08qTjxOlrY+0nNWJp4j1dc0J1QO/ADG/gdu/z3/KwkzWCsqtF6fWdQGzU1EkEjPs1P071NcU0mFTYJso8HTEQo1dfEDdeduFKeSPg6PA=
on:
tags: true
cache:
directories:
- node_modules
30 changes: 30 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Sync",
"program": "${workspaceFolder}/dist/cli.js",
"runtimeArgs": ["--nolazy"],
"args": [
"-p",
"password",
"sync",
"beer-sample",
"./example/beer-sample"
],
"console": "integratedTerminal",
"sourceMaps": true,
"smartStep": true,
"outFiles": ["${workspaceRoot}/dist/**/*.js"],
"skipFiles": [
"${workspaceRoot}/node_modules/**/*.js",
"<node_internals>/**/*.js"
]
}
]
}
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"dist/**": true,
"node_modules/**": true
}
}
21 changes: 21 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "gulp",
"task": "build",
"problemMatcher": [
"$pester"
]
},
{
"type": "gulp",
"task": "watch",
"problemMatcher": [
"$pester"
]
}
]
}
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:8-alpine as build

WORKDIR /app
COPY package*.json ./
RUN npm install
COPY ./ ./
RUN npm run-script lint && \
npm run-script build

FROM node:8-alpine
LABEL maintainer=bburnett@centeredgesoftware.com
WORKDIR /app
COPY --from=build /app ./
ENTRYPOINT ["/app/bin/couchbase-index-manager"]
Loading

0 comments on commit b5940ab

Please sign in to comment.