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

Commit

Permalink
fix(boilerplate): update stuff and modernize tests
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tunnckoCore committed Oct 6, 2017
1 parent 0cb905e commit f70952c
Show file tree
Hide file tree
Showing 19 changed files with 5,093 additions and 7,246 deletions.
8 changes: 6 additions & 2 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ engines:
checks:
Similar code:
enabled: false

ratings:
paths:
- src/**
- src/**/*.js

exclude_paths:
- test.js
- src/cli.js
- test/**/*.js
- config/**/*.js
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
insert_final_newline = false
42 changes: 33 additions & 9 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,26 @@ _gh_pages
node_modules
jspm_packages
bower_components
components
vendor
build
dest
dist
lib-cov
coverage
.nyc_output
nbproject
cache
temp
tmp
benchmark

# npm >=5 lock file, we use Yarn!
package-lock.json

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Packages #
# ##########
Expand All @@ -27,17 +35,29 @@ benchmark
*.tar
*.zip

# node-waf configuration
.lock-wscript

# OS, Logs and databases #
# #########################
logs
*.pid
*.dat
*.log
npm-debug.log*
npm-debug.log*
yarn-debug.log*
yarn-error.log*
*.dat
*.sql
*.sqlite
*~
~*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Editors
*.idea

Expand All @@ -48,7 +68,6 @@ Icon?
Thumbs.db
ehthumbs.db
Desktop.ini
npm-debug.log
.directory
._*
lcov.info
Expand All @@ -59,12 +78,17 @@ pids
*.seed
*.pid.lock

# Grunt intermediate storage
# see here: http://gruntjs.com/creating-plugins#storing-task-files
.grunt

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

# Optional eslint cache
.eslintcache

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": [
"standard-tunnckocore"
]
],
"rules": {
"react/react-in-jsx-scope": "off"
}
}
42 changes: 33 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ _gh_pages
node_modules
jspm_packages
bower_components
components
vendor
build
dest
dist
lib-cov
coverage
.nyc_output
Expand All @@ -16,6 +16,15 @@ cache
temp
tmp

# npm >=5 lock file, we use Yarn!
package-lock.json

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Packages #
# ##########
*.7z
Expand All @@ -26,17 +35,29 @@ tmp
*.tar
*.zip

# node-waf configuration
.lock-wscript

# OS, Logs and databases #
# #########################
logs
*.pid
*.dat
*.log
npm-debug.log*
npm-debug.log*
yarn-debug.log*
yarn-error.log*
*.dat
*.sql
*.sqlite
*~
~*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Editors
*.idea

Expand All @@ -47,24 +68,27 @@ Icon?
Thumbs.db
ehthumbs.db
Desktop.ini
npm-debug.log
.directory
._*
lcov.info
yarn.lock

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Grunt intermediate storage
# see here: http://gruntjs.com/creating-plugins#storing-task-files
.grunt

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

# Optional eslint cache
.eslintcache

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
9 changes: 9 additions & 0 deletions .helarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"presets": "tunnckocore",
"tasks": {
"build": [
"hela clean",
"hela build:node"
]
}
}
5 changes: 0 additions & 5 deletions .npmrc

This file was deleted.

8 changes: 5 additions & 3 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"check-coverage": true,
"statements": 100,
"functions": 100,
"branches": 98.25,
"lines": 100
"branches": 100,
"lines": 100,
"exclude": [
"dist"
]
}
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"tabWidth": 2,
"printWidth": 80,
"semi": false,
"useTabs": false,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": true,
"parser": "babylon"
}
17 changes: 10 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
sudo: false
language: node_js

notifications:
email: false

cache:
yarn: true
directories:
- node_modules

notifications:
email: false

node_js:
- '8'
- '6'

os: linux

before_install:
- npm install --global npm@latest
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH

before_script:
- npm prune
script: yarn test

after_success:
- npm run semantic-release
- yarn start release
- bash <(curl -s https://codecov.io/bash)

branches:
Expand Down
Loading

0 comments on commit f70952c

Please sign in to comment.