This repository has been archived by the owner on Jul 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
107,781 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
service_name: travis-pro | ||
repo_token: CSOjgBaAO1GyLNwxHtMeoUWxu9kd1sUDs |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"plugins": [], | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"ecmaVersion": 6, | ||
"jsx": true | ||
} | ||
}, | ||
"ecmaFeatures": { | ||
"ecmaVersion": 6 | ||
}, | ||
"rules": { | ||
"jsx-quotes": ["error", "prefer-double"], | ||
"indent": ["error", 2], | ||
"quotes": ["error", "single"], | ||
"semi": ["warn", "always"], | ||
"comma-dangle": ["warn", "always"], | ||
"comma-spacing": "warn", | ||
"array-bracket-spacing": "warn", | ||
"object-curly-spacing": ["error", "always"], | ||
"eqeqeq": "warn", | ||
"no-cond-assign": ["warn", "always"], | ||
"no-unused-vars": "warn", | ||
"no-console": "warn", | ||
"brace-style": ["warn", "1tbs"], | ||
"strict": ["error", "safe"] | ||
}, | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es6": true, | ||
"node": true, | ||
"mocha": true | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"plugins": [], | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"ecmaVersion": 6, | ||
"jsx": true | ||
} | ||
}, | ||
"ecmaFeatures": { | ||
"ecmaVersion": 6 | ||
}, | ||
"rules": { | ||
"jsx-quotes": ["error", "prefer-double"], | ||
"indent": ["error", 2], | ||
"quotes": ["error", "single"], | ||
"semi": ["warn", "always"], | ||
"comma-dangle": ["warn", "always"], | ||
"comma-spacing": "warn", | ||
"array-bracket-spacing": "warn", | ||
"object-curly-spacing": ["error", "always"], | ||
"eqeqeq": "warn", | ||
"no-cond-assign": ["warn", "always"], | ||
"no-unused-vars": "warn", | ||
"no-console": "warn", | ||
"brace-style": ["warn", "1tbs"], | ||
"strict": ["error", "safe"] | ||
}, | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es6": true, | ||
"node": true | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
language: node_js | ||
node_js: | ||
- '9' | ||
- '8' | ||
- '6' | ||
env: | ||
- CXX=g++-4.8 | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-4.8 | ||
|
||
notifications: | ||
irc: | ||
channels: | ||
- "irc.freenode.org#periodicjs" | ||
template: | ||
- "Build by %{author} :" | ||
- "Git Info: %{branch} - %{commit} with the message %{commit_message}" | ||
- "Travis states: %{message}" | ||
- "Build Details: %{build_url}" | ||
- "Change View: %{compare_url}" | ||
- "result = %{result}" | ||
- "elapsed time... %{duration}" | ||
use_notice: true | ||
skip_join: false | ||
|
||
before_script: | ||
- npm install | ||
|
||
install: | ||
- npm install grunt-cli istanbul -g | ||
|
||
branches: | ||
only: | ||
- master | ||
- devel | ||
git: | ||
submodules: false | ||
|
||
script: | ||
- npm set progress=false && grunt test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
'use strict'; | ||
const path = require('path'); | ||
const testPaths = 'test/**/*.js'; | ||
|
||
module.exports = function (grunt) { | ||
grunt.initConfig({ | ||
mocha_istanbul: { | ||
coveralls: { | ||
src: testPaths, // multiple folders also works | ||
options: { | ||
coverageFolder: 'coverage', // will check both coverage folders and merge the coverage results | ||
coverage:true, // this will make the grunt.event.on('coverage') event listener to be triggered | ||
check: { | ||
lines: 5, | ||
branches: 5, | ||
functions: 5, | ||
statements: 5, | ||
}, | ||
// root: './lib', // define where the cover task should consider the root of libraries that are covered by tests | ||
reportFormats: ['cobertura','lcovonly'], | ||
} | ||
} | ||
}, | ||
istanbul_check_coverage: { | ||
default: { | ||
options: { | ||
coverageFolder: 'coverage', // will check both coverage folders and merge the coverage results | ||
check: { | ||
lines: 80, | ||
branches: 80, | ||
functions: 80, | ||
statements: 80, | ||
}, | ||
}, | ||
}, | ||
}, | ||
coveralls: { | ||
// Options relevant to all targets | ||
options: { | ||
// When true, grunt-coveralls will only print a warning rather than | ||
// an error, to prevent CI builds from failing unnecessarily (e.g. if | ||
// coveralls.io is down). Optional, defaults to false. | ||
force: false, | ||
excludes: ['**/bin/**'] | ||
}, | ||
|
||
all: { | ||
// LCOV coverage file (can be string, glob or array) | ||
src: 'coverage/*.info', | ||
options: { | ||
// Any options for just this target | ||
}, | ||
}, | ||
}, | ||
simplemocha: { | ||
options: { | ||
globals: ['should', 'navigator','x'], | ||
timeout: 3000, | ||
ignoreLeaks: true, | ||
ui: 'bdd', | ||
reporter: 'spec', | ||
}, | ||
all: { | ||
src: testPaths, | ||
}, | ||
}, | ||
jsdoc: { | ||
dist: { | ||
src: ['lib/*.js', ], | ||
options: { | ||
destination: 'doc/html', | ||
}, | ||
}, | ||
}, | ||
browserify: { | ||
dist: { | ||
files: [{ | ||
expand: true, | ||
cwd: __dirname, | ||
src: ['./index.js'], | ||
dest: 'bin' | ||
}], | ||
options: { | ||
transform: [ | ||
["babelify", { | ||
presets: ["es2015","es2016","es2017","react"], | ||
//plugins: ["proxy"] | ||
}] | ||
] | ||
} | ||
} | ||
} | ||
}); | ||
|
||
// Loading dependencies | ||
for (var key in grunt.file.readJSON('package.json').devDependencies) { | ||
if (key.indexOf('grunt') === 0 && key !== 'grunt') { | ||
grunt.loadNpmTasks(key); | ||
} | ||
} | ||
grunt.registerTask('doc', 'jsdoc'); | ||
grunt.registerTask('test', 'mocha_istanbul'); | ||
}; |
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
Oops, something went wrong.