Skip to content

Commit f032f19

Browse files
authored
Merge pull request loiane#40 from loiane/third-edition
Third edition
2 parents 208b757 + d4c49da commit f032f19

File tree

503 files changed

+20605
-5331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

503 files changed

+20605
-5331
lines changed

.babelrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"presets": ["env"],
3+
"plugins": [
4+
"add-module-exports",
5+
"transform-es2015-modules-umd"
6+
]
7+
}

.bithoundrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"ignore": [
3+
"**/.vscode/**",
4+
"**/node_modules/**",
5+
"**/dist/**",
6+
"**/examples/**"
7+
],
8+
"test": [
9+
"**/test/**"
10+
],
11+
"critics": {
12+
"lint": {
13+
"engine": "eslint"
14+
},
15+
"wc": {
16+
"limit": 1000
17+
}
18+
}
19+
}

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = LF
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.eslintrc.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es6": true,
6+
"node": true
7+
},
8+
"globals": {
9+
"expect": true,
10+
"it": true,
11+
"describe": true,
12+
"beforeEach": true,
13+
"afterEach": true,
14+
"document": false,
15+
"navigator": false,
16+
"window": false
17+
},
18+
"parser": "babel-eslint",
19+
"extends": "airbnb-base",
20+
"rules": {
21+
"class-methods-use-this": 0,
22+
"no-plusplus": 0,
23+
"arrow-parens": 0,
24+
"no-console": 0,
25+
"import/prefer-default-export": 0,
26+
"comma-dangle": 0,
27+
"no-underscore-dangle": 0,
28+
"no-param-reassign": 0,
29+
"no-return-assign": 0,
30+
"no-restricted-globals": 0,
31+
"no-multi-assign": 0,
32+
"prefer-destructuring": ["error", {"object": true, "array": false}]
33+
}
34+
}

.firebaserc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "javascript-ds-algorithms-book"
4+
}
5+
}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
*.log
33
node_modules
44
coverage
5+
.nyc_output
6+
coverage.lcov
7+
mochawesome-report/*
8+
dist/js/*
9+
dist/ts/*
10+
snippet.js

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: node_js
2+
node_js:
3+
- node
4+
before_script:
5+
- npm install -g --silent firebase-tools
6+
install:
7+
- npm install
8+
script:
9+
- npm run go
10+
after_success:
11+
- npm run coverage
12+
- test $TRAVIS_BRANCH = "third-edition" && firebase deploy --token $FIREBASE_TOKEN --non-interactive
13+
notifications:
14+
email:
15+
on_failure: change
16+
on_success: change

.vscode/launch.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "chrome",
9+
"request": "launch",
10+
"name": "Chrome",
11+
"url": "http://127.0.0.1:8887/examples",
12+
"webRoot": "${workspaceRoot}"
13+
},
14+
{
15+
"type": "node",
16+
"request": "launch",
17+
"name": "Mocha JS",
18+
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
19+
"args": [
20+
"-u",
21+
"tdd",
22+
"--timeout",
23+
"999999",
24+
"--compilers",
25+
"js:babel-core/register",
26+
"--colors",
27+
"${workspaceRoot}/test/js/**/*.spec.js"
28+
],
29+
"internalConsoleOptions": "openOnSessionStart"
30+
},
31+
{
32+
"type": "node",
33+
"request": "launch",
34+
"name": "Mocha TS",
35+
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
36+
"args": [
37+
"-u",
38+
"tdd",
39+
"--timeout",
40+
"999999",
41+
"-r",
42+
"ts-node/register",
43+
"--colors",
44+
"${workspaceRoot}/test/ts/**/**/*.spec.ts"
45+
],
46+
"protocol": "auto",
47+
"internalConsoleOptions": "openOnSessionStart"
48+
}
49+
]
50+
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib"
3+
}

.vscode/tasks.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "go",
9+
"group": {
10+
"kind": "build",
11+
"isDefault": true
12+
}
13+
},
14+
{
15+
"type": "npm",
16+
"script": "dev",
17+
"group": {
18+
"kind": "test",
19+
"isDefault": true
20+
}
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)