Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
basic data science tools
Browse files Browse the repository at this point in the history
  • Loading branch information
yawetse committed Jan 7, 2018
1 parent 8bb8ea8 commit d8c2452
Show file tree
Hide file tree
Showing 48 changed files with 107,781 additions and 9 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: CSOjgBaAO1GyLNwxHtMeoUWxu9kd1sUDs
36 changes: 36 additions & 0 deletions .eslintrc
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
}
}
35 changes: 35 additions & 0 deletions .eslintrc.json
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
}
}
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
44 changes: 44 additions & 0 deletions .travis.yml
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
103 changes: 103 additions & 0 deletions Gruntfile.js
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');
};
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
Data Science Helpers for JavaScript

use //npm i --python=/usr/bin/python
//node --experimental-modules data_preprocessing_template.mjs

0 comments on commit d8c2452

Please sign in to comment.