Skip to content

Commit

Permalink
Merge branch 'develop' of /Users/sstone1/git/Concerto-Connector-Web i…
Browse files Browse the repository at this point in the history
…nto develop
  • Loading branch information
Simon Stone committed Jan 5, 2017
2 parents 1dd8ce2 + d4be5b4 commit 62967ee
Show file tree
Hide file tree
Showing 24 changed files with 1,559 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/concerto-connector-web/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

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

[*.md]
trim_trailing_whitespace = false
5 changes: 5 additions & 0 deletions packages/concerto-connector-web/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
coverage
dist
go
node_modules
out
48 changes: 48 additions & 0 deletions packages/concerto-connector-web/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
env:
es6: true
node: true
mocha: true
extends: 'eslint:recommended'
parserOptions:
ecmaVersion: 2015
sourceType:
- script
rules:
indent:
- error
- 4
linebreak-style:
- error
- unix
quotes:
- error
- single
semi:
- error
- always
no-unused-vars:
- error
- args: none
no-console: off
curly: error
eqeqeq: error
no-throw-literal: error
strict: error
no-var: error
dot-notation: error
no-tabs: error
no-trailing-spaces: error
no-use-before-define: error
no-useless-call: error
no-with: error
operator-linebreak: error
require-jsdoc:
- error
- require:
ClassDeclaration: true
MethodDefinition: true
FunctionDeclaration: true
valid-jsdoc:
- error
- requireReturn: false
yoda: error
48 changes: 48 additions & 0 deletions packages/concerto-connector-web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# 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

# node-waf configuration
.lock-wscript

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

# Dependency directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

# JSDoc
out

# Mac files.
**/.DS_Store

*.swp

# Build generated files should be ignored by git, but not by npm.
index.d.ts
10 changes: 10 additions & 0 deletions packages/concerto-connector-web/.istanbul.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
instrumentation:
excludes:
- out/**
- scripts/**
check:
global:
statements: 100
branches: 100
lines: 100
function: 100
48 changes: 48 additions & 0 deletions packages/concerto-connector-web/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# 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

# node-waf configuration
.lock-wscript

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

# Dependency directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

# JSDoc
out

# Mac files.
**/.DS_Store

*.swp

# Build generated files should be ignored by git, but not by npm.
# index.d.ts
9 changes: 9 additions & 0 deletions packages/concerto-connector-web/.tern-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ecmaVersion": 6,
"libs": [
"chai"
],
"plugins": {
"node": {}
}
}
23 changes: 23 additions & 0 deletions packages/concerto-connector-web/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: node_js
node_js:
- '4'
- '6'
dist: trusty
before_install: |
set -ev
npm install -g npm
npm config set @ibm:registry https://npm-registry.whitewater.ibm.com
npm config set //npm-registry.whitewater.ibm.com/:_authToken ${NPM_TOKEN}
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
script: |
set -ev
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
npm test
deploy:
provider: script
script: ./scripts/deploy.sh
skip_cleanup: true
on:
all_branches: true
8 changes: 8 additions & 0 deletions packages/concerto-connector-web/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
IBM Confidential
OCO Source Materials
IBM Concerto - Blockchain Solution Framework
Copyright IBM Corp. 2016

The source code for this program is not published or otherwise
divested of its trade secrets, irrespective of what has
been deposited with the U.S. Copyright Office.
2 changes: 2 additions & 0 deletions packages/concerto-connector-web/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Concerto-Connector-Web
Concerto client specific code.
9 changes: 9 additions & 0 deletions packages/concerto-connector-web/header.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* IBM Confidential
* OCO Source Materials
* IBM Concerto - Blockchain Solution Framework
* Copyright IBM Corp. 2016
* The source code for this program is not published or otherwise
* divested of its trade secrets, irrespective of what has
* been deposited with the U.S. Copyright Office.
*/
25 changes: 25 additions & 0 deletions packages/concerto-connector-web/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* IBM Confidential
* OCO Source Materials
* IBM Concerto - Blockchain Solution Framework
* Copyright IBM Corp. 2016
* The source code for this program is not published or otherwise
* divested of its trade secrets, irrespective of what has
* been deposited with the U.S. Copyright Office.
*/

'use strict';

/**
* IBM Concerto module. IBM Concerto is a framework for creating
* blockchain backed digital networks and exchanging assets between participants
* via processing transactions.
* <p>
* Applications interact with the framework by instantiating the {@link Concerto}
* class.
* </p>
* <p><a href="diagrams/concerto.svg"><img src="diagrams/concerto.svg" style="width:100%;"/></a></p>
* @module ibm-concerto
*/

module.exports = require('./lib/webconnectionmanager');
35 changes: 35 additions & 0 deletions packages/concerto-connector-web/jsdoc.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"tags": {
"allowUnknownTags": true,
"dictionaries": ["jsdoc","closure"]
},
"source": {
"includePattern": ".+\\.js(doc|x)?$",
"include": [
"./lib"
]
},
"plugins": [],
"templates": {
"logoFile": "",
"cleverLinks": false,
"monospaceLinks": false,
"dateFormat": "ddd MMM Do YYYY",
"outputSourceFiles": true,
"outputSourcePath": true,
"systemName": "IBM Concerto",
"footer": "",
"copyright": "Copyright IBM Corp. 2016",
"navType": "vertical",
"theme": "spacelab",
"linenums": true,
"collapseSymbols": false,
"inverseNav": true,
"protocol": "html://",
"methodHeadingReturns": false
},
"markdown": {
"parser": "gfm",
"hardwrap": true
}
}
97 changes: 97 additions & 0 deletions packages/concerto-connector-web/karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/*
* IBM Confidential
* OCO Source Materials
* IBM Concerto - Blockchain Solution Framework
* Copyright IBM Corp. 2016
* The source code for this program is not published or otherwise
* divested of its trade secrets, irrespective of what has
* been deposited with the U.S. Copyright Office.
*/

'use strict';

// Karma configuration
// Generated on Fri Nov 18 2016 16:08:11 GMT+0000 (GMT)

module.exports = function(config) {
config.set({

// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',


// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha', 'browserify'],


// list of files / patterns to load in the browser
files: [
'test/**/*.js'
],


// list of files to exclude
exclude: [],


// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'test/**/*.js': ['browserify']
},


// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['spec', 'coverage'],


// web server port
port: 9876,


// enable / disable colors in the output (reporters and logs)
colors: true,


// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,


// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,


// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Chrome'],


// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,

// Concurrency level
// how many browser should be started simultaneous
concurrency: Infinity,

browserify: {
debug: true,
transform: ['brfs', 'browserify-istanbul']
},

coverageReporter: {
check: {
global: {
statements: 100,
branches: 100,
functions: 100,
lines: 100,
}
}
}
});
};
Loading

0 comments on commit 62967ee

Please sign in to comment.