Skip to content
This repository has been archived by the owner on Jun 23, 2019. It is now read-only.

Commit

Permalink
🔥 Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
motss committed Aug 30, 2018
1 parent bebf37b commit 4165bf1
Show file tree
Hide file tree
Showing 13 changed files with 4,555 additions and 8,310 deletions.
62 changes: 62 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
workflows:
version: 2
node-multi-build:
jobs:
- node-v8
- node-v9
- node-v10

version: 2
jobs:
node-base: &node-base
docker:
- image: node
steps:
- run:
name: Versions
command: node -v && npm version
- checkout
- restore_cache:
keys:
- v{{ .Environment.CIRCLE_BUILD_NUM }}-npm-lock-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
- v{{ .Environment.CIRCLE_BUILD_NUM }}-npm-lock-master-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
- v{{ .Environment.CIRCLE_BUILD_NUM }}-npm-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_JOB }}
- v{{ .Environment.CIRCLE_BUILD_NUM }}-npm-cache-master-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_JOB }}
- run:
name: Install latest NPM
command: npm i -g npm@latest --quiet
- run:
name: Install dependencies
command: npm ci --quiet
- run:
name: Lint
command: npm run lint
- run:
name: Test
command: npm t
- save_cache:
key: v{{ .Environment.CIRCLE_BUILD_NUM }}-npm-lock-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
paths:
- node_modules
- save_cache:
key: v{{ .Environment.CIRCLE_BUILD_NUM }}-npm-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
paths:
- ~/.npm/_cacache

node-v8:
<<: *node-base
docker:
- image: node:8
node-v9:
<<: *node-base
docker:
- image: node:9
node-v10:
<<: *node-base
docker:
- image: node:10

11 changes: 4 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
# dot files
.build/
.DS_Store
.esm-cache
.nyc_output
.tmp/
.vscode
*.env

# debug
npm-debug.log*
yarn-error.log*
*-debug.log*

# folders
./test*/
coverage*/
dist*/
node_modules/

# .js files
*.d.ts*
*.js
*.jsx
*.d.ts*
*.mjs

# Do not ignore
!**/json.d.ts
!gulpfile*.js
6 changes: 2 additions & 4 deletions .jestrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"babelConfig": {
"presets": [
["env", {
"targets": {
"node": "current"
},
"targets": { "node": "current" },
"spec": true,
"modules": false,
"useBuiltIns": true
Expand Down Expand Up @@ -41,7 +39,7 @@
"<rootDir>/src/"
],
"transform": {
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
"^.+\\.tsx?$": "ts-jest"
},
"testMatch": [
"**/src/test*/**/*.spec.(ts|tsx)"
Expand Down
11 changes: 0 additions & 11 deletions .npmignore

This file was deleted.

13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ dist: trusty
node_js:
- v8
- v9
- v10
before_script:
- npm install codecov coveralls
- npm i -g npm@latest codecov coveralls --quiet
- npm ci --quiet
script:
- npm run check
- npm run test
- npm run lint
- npm t
after_success:
- 'cat ./coverage/lcov.info | codecov'
- 'cat ./coverage/lcov.info | coveralls'
- 'cat ./coverage/lcov.info | codecov'
cache:
directories:
- node_modules
20 changes: 0 additions & 20 deletions clean-dir.sh

This file was deleted.

8 changes: 0 additions & 8 deletions gulpfile.js

This file was deleted.

Loading

0 comments on commit 4165bf1

Please sign in to comment.