Skip to content

Commit 6ccce08

Browse files
committed
Initial commit
0 parents  commit 6ccce08

15 files changed

+4714
-0
lines changed

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 4
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.eslintrc

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"extends": "eslint:recommended",
3+
"parser": "babel-eslint",
4+
"parserOptions": {
5+
"sourceType": "module"
6+
},
7+
"env": {
8+
"es6": true,
9+
"browser": true,
10+
"node": true
11+
},
12+
"rules": {
13+
"quotes": [
14+
"error",
15+
"single"
16+
],
17+
"semi": [
18+
"error",
19+
"always"
20+
]
21+
}
22+
}

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/tmp
5+
/out-tsc
6+
7+
# dependencies
8+
/node_modules
9+
10+
# IDEs and editors
11+
/.idea
12+
.project
13+
.classpath
14+
.c9/
15+
*.launch
16+
.settings/
17+
*.sublime-workspace
18+
19+
# IDE - VSCode
20+
.vscode/*
21+
!.vscode/settings.json
22+
!.vscode/tasks.json
23+
!.vscode/launch.json
24+
!.vscode/extensions.json
25+
26+
# misc
27+
/.sass-cache
28+
/connect.lock
29+
/coverage
30+
/libpeerconnection.log
31+
npm-debug.log
32+
testem.log
33+
/typings
34+
35+
# e2e
36+
/e2e/*.js
37+
/e2e/*.map
38+
39+
# System Files
40+
.DS_Store
41+
Thumbs.db

.travis.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: node_js
2+
node_js:
3+
- '11'
4+
dist: trusty # needs Ubuntu Trusty
5+
# Note: if you switch to sudo: false, you'll need to launch chrome with --no-sandbox.
6+
# See https://github.com/travis-ci/travis-ci/issues/8836
7+
sudo: required
8+
addons:
9+
chrome: stable # have Travis install chrome stable.
10+
cache:
11+
directories:
12+
- node_modules

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# scoped

UNLICENSE

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <http://unlicense.org/>

babel.config.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = (api) => {
2+
api.cache(true);
3+
4+
const presets = [
5+
["@babel/preset-env", {
6+
modules: false
7+
}]
8+
];
9+
10+
return {
11+
presets
12+
};
13+
};

karma.config.js

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
const babel = require('rollup-plugin-babel');
2+
const resolve = require('rollup-plugin-node-resolve');
3+
const commonjs = require('rollup-plugin-commonjs');
4+
5+
const specs = 'test/specs/**/*.js';
6+
7+
module.exports = function(config) {
8+
config.set({
9+
basePath: __dirname,
10+
frameworks: ['mocha', 'chai', 'sinon'],
11+
files: [specs],
12+
preprocessors: {
13+
[specs]: ['rollup']
14+
},
15+
rollupPreprocessor: {
16+
output: {
17+
format: 'esm',
18+
sourcemap: 'inline'
19+
},
20+
plugins: [
21+
resolve(),
22+
babel({
23+
exclude: 'node_modules/**'
24+
}),
25+
commonjs()
26+
]
27+
},
28+
reporters: ['mocha'],
29+
browsers: ['ChromeHeadless'],
30+
autoWatch: false,
31+
singleRun: true
32+
});
33+
}

0 commit comments

Comments
 (0)