Skip to content
This repository was archived by the owner on Feb 8, 2020. It is now read-only.

Commit f70952c

Browse files
author
tunnckoCore
committed
fix(boilerplate): update stuff and modernize tests
1 - move tests to test/ folder and use esm in them, 2 - update hela to latest v1, 3 - use hela-preset-tunnckocore, 4 - update much dotfiles TAG: latest
1 parent 0cb905e commit f70952c

19 files changed

+5093
-7246
lines changed

.codeclimate.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ engines:
99
checks:
1010
Similar code:
1111
enabled: false
12+
1213
ratings:
1314
paths:
14-
- src/**
15+
- src/**/*.js
16+
1517
exclude_paths:
16-
- test.js
18+
- src/cli.js
19+
- test/**/*.js
20+
- config/**/*.js

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ insert_final_newline = true
99

1010
[*.md]
1111
trim_trailing_whitespace = false
12-
insert_final_newline = false

.eslintignore

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,26 @@ _gh_pages
44
node_modules
55
jspm_packages
66
bower_components
7-
components
87
vendor
98
build
109
dest
10+
dist
1111
lib-cov
1212
coverage
1313
.nyc_output
1414
nbproject
1515
cache
1616
temp
1717
tmp
18-
benchmark
18+
19+
# npm >=5 lock file, we use Yarn!
20+
package-lock.json
21+
22+
# Typescript v1 declaration files
23+
typings/
24+
25+
# Optional npm cache directory
26+
.npm
1927

2028
# Packages #
2129
# ##########
@@ -27,17 +35,29 @@ benchmark
2735
*.tar
2836
*.zip
2937

38+
# node-waf configuration
39+
.lock-wscript
40+
3041
# OS, Logs and databases #
3142
# #########################
3243
logs
33-
*.pid
34-
*.dat
3544
*.log
45+
npm-debug.log*
46+
npm-debug.log*
47+
yarn-debug.log*
48+
yarn-error.log*
49+
*.dat
3650
*.sql
3751
*.sqlite
3852
*~
3953
~*
4054

55+
# Runtime data
56+
pids
57+
*.pid
58+
*.seed
59+
*.pid.lock
60+
4161
# Editors
4262
*.idea
4363

@@ -48,7 +68,6 @@ Icon?
4868
Thumbs.db
4969
ehthumbs.db
5070
Desktop.ini
51-
npm-debug.log
5271
.directory
5372
._*
5473
lcov.info
@@ -59,12 +78,17 @@ pids
5978
*.seed
6079
*.pid.lock
6180

62-
# Grunt intermediate storage
63-
# see here: http://gruntjs.com/creating-plugins#storing-task-files
64-
.grunt
65-
6681
# Optional npm cache directory
6782
.npm
6883

6984
# Optional REPL history
7085
.node_repl_history
86+
87+
# Optional eslint cache
88+
.eslintcache
89+
90+
# Yarn Integrity file
91+
.yarn-integrity
92+
93+
# dotenv environment variables file
94+
.env

.eslintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"extends": [
33
"standard-tunnckocore"
4-
]
4+
],
5+
"rules": {
6+
"react/react-in-jsx-scope": "off"
7+
}
58
}

.gitignore

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ _gh_pages
44
node_modules
55
jspm_packages
66
bower_components
7-
components
87
vendor
98
build
109
dest
10+
dist
1111
lib-cov
1212
coverage
1313
.nyc_output
@@ -16,6 +16,15 @@ cache
1616
temp
1717
tmp
1818

19+
# npm >=5 lock file, we use Yarn!
20+
package-lock.json
21+
22+
# Typescript v1 declaration files
23+
typings/
24+
25+
# Optional npm cache directory
26+
.npm
27+
1928
# Packages #
2029
# ##########
2130
*.7z
@@ -26,17 +35,29 @@ tmp
2635
*.tar
2736
*.zip
2837

38+
# node-waf configuration
39+
.lock-wscript
40+
2941
# OS, Logs and databases #
3042
# #########################
3143
logs
32-
*.pid
33-
*.dat
3444
*.log
45+
npm-debug.log*
46+
npm-debug.log*
47+
yarn-debug.log*
48+
yarn-error.log*
49+
*.dat
3550
*.sql
3651
*.sqlite
3752
*~
3853
~*
3954

55+
# Runtime data
56+
pids
57+
*.pid
58+
*.seed
59+
*.pid.lock
60+
4061
# Editors
4162
*.idea
4263

@@ -47,24 +68,27 @@ Icon?
4768
Thumbs.db
4869
ehthumbs.db
4970
Desktop.ini
50-
npm-debug.log
5171
.directory
5272
._*
5373
lcov.info
54-
yarn.lock
5574

5675
# Runtime data
5776
pids
5877
*.pid
5978
*.seed
6079
*.pid.lock
6180

62-
# Grunt intermediate storage
63-
# see here: http://gruntjs.com/creating-plugins#storing-task-files
64-
.grunt
65-
6681
# Optional npm cache directory
6782
.npm
6883

6984
# Optional REPL history
7085
.node_repl_history
86+
87+
# Optional eslint cache
88+
.eslintcache
89+
90+
# Yarn Integrity file
91+
.yarn-integrity
92+
93+
# dotenv environment variables file
94+
.env

.helarc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"presets": "tunnckocore",
3+
"tasks": {
4+
"build": [
5+
"hela clean",
6+
"hela build:node"
7+
]
8+
}
9+
}

.npmrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

.nycrc.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
2-
"check-coverage": true,
32
"statements": 100,
43
"functions": 100,
5-
"branches": 98.25,
6-
"lines": 100
4+
"branches": 100,
5+
"lines": 100,
6+
"exclude": [
7+
"dist"
8+
]
79
}

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"tabWidth": 2,
3+
"printWidth": 80,
4+
"semi": false,
5+
"useTabs": false,
6+
"singleQuote": true,
7+
"trailingComma": "es5",
8+
"bracketSpacing": true,
9+
"jsxBracketSameLine": true,
10+
"parser": "babylon"
11+
}

.travis.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
sudo: false
22
language: node_js
33

4+
notifications:
5+
email: false
6+
47
cache:
8+
yarn: true
59
directories:
610
- node_modules
711

8-
notifications:
9-
email: false
10-
1112
node_js:
1213
- '8'
1314
- '6'
1415

16+
os: linux
17+
1518
before_install:
16-
- npm install --global npm@latest
19+
- curl -o- -L https://yarnpkg.com/install.sh | bash
20+
- export PATH=$HOME/.yarn/bin:$PATH
1721

18-
before_script:
19-
- npm prune
22+
script: yarn test
2023

2124
after_success:
22-
- npm run semantic-release
25+
- yarn start release
2326
- bash <(curl -s https://codecov.io/bash)
2427

2528
branches:

0 commit comments

Comments
 (0)