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

Commit 8e37f19

Browse files
authored
Merge pull request #81 from dsafio/node-versions-and-tweaks
Drop support for Node.js versions 8 and 9
2 parents 2e304d5 + 53310e5 commit 8e37f19

File tree

3 files changed

+25
-24
lines changed

3 files changed

+25
-24
lines changed

.travis.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
language: node_js
22
node_js:
3-
- "8"
4-
- "9"
53
- "10"
6-
- "11"
4+
- "12"
5+
- "14"
6+
- "node"
77
cache:
88
directories:
99
- "node_modules"
1010
script:
11-
- "npm run lint"
12-
- "npm test"
13-
11+
- "npm run lint"
12+
- "npm test"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"bugs": "https://github.com/dsafio/dsafio/issues",
88
"license": "MIT",
99
"engines": {
10-
"node": ">=8.0.0"
10+
"node": ">=10.0.0"
1111
},
1212
"files": [
1313
"bin",

readme.md

+19-17
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22

33
[![Travis CI](https://travis-ci.org/dsafio/dsafio.svg?branch=master)](https://travis-ci.org/dsafio/dsafio)
44
[![Snyk](https://snyk.io/test/github/dsafio/dsafio/badge.svg)](https://snyk.io/test/github/dsafio/dsafio)
5-
[![Greenkeeper](https://badges.greenkeeper.io/dsafio/dsafio.svg)](https://greenkeeper.io/)
65

76
Practicing tool for coders.
87

98
## Up and Running 🏃
109

11-
It's a [commander](https://github.com/tj/commander.js) powered [Node.js](https://nodejs.org) CLI.
10+
It's a [Commander.js](https://github.com/tj/commander.js) powered [Node.js](https://nodejs.org) CLI.
1211

1312
**Requirements**
1413

15-
You need Node.js to run the CLI. We recommend [Node Version Manager](https://github.com/creationix/nvm) to manage your Node.js environment.
14+
You need Node.js to run the CLI. We recommend [asdf](https://asdf-vm.com) to manage your Node.js environment.
1615

1716
**Install the CLI**
1817

@@ -22,6 +21,8 @@ npm install -g dsafio
2221

2322
## Contributing 👷
2423

24+
Dsafio is a Node.js command-line tool. You'll want to have the development version of the `dsafio` command in your `$PATH`. Besides it, it will feel like a normal Node.js project for you. It's built with [Commander.js](https://github.com/tj/commander.js), tested with [Mocha](https://mochajs.org), [Chai](https://www.chaijs.com) and [Sinon.JS](https://sinonjs.org), with [Prettier](https://prettier.io) as coding standard.
25+
2526
**Development environment**
2627

2728
Depending on how is your `$PATH`, you might need to uninstall `dsafio` as global:
@@ -44,31 +45,32 @@ npm link
4445

4546
`dsafio` command should now be available in your shell.
4647

47-
**Contribution workflow**
48+
**Unlinking the development version**
4849

49-
There are steps that you need to take before being able to start to
50-
contribute:
50+
If you ever need to unlink the global version (eg.: you want to install the production version directly from npm), you will want to unlink the development version first:
5151

52-
1. Fork the repository (if you haven't yet)
53-
1. Clone your fork in your local machine
52+
```
53+
npm unlink
54+
```
5455

55-
Then:
56+
**Conventional Commits**
5657

57-
1. Find an issue to work on in our [issue tracker](https://github.com/dsafio/dsafio/issues)
58-
_If it's a new bug or feature, [create a new one](https://github.com/dsafio/dsafio/issues/new) and describe it in detail_
59-
1. Create a new branch to work on
60-
_`git checkout -b user-page-not-loading`_
61-
1. Commit your work
62-
_One commit per contribution (use `git commit --amend`)_
63-
1. Open a pull request and go through the review process
64-
1. Get your contribution accepted
58+
We use [Conventional Commits](https://www.conventionalcommits.org) in our commit history. It is a specification for commit messages that help us automate versioning processes. Please refer to its website for more information.
6559

6660
## Testing ✅
6761

62+
Test can be run with the following command:
63+
6864
```
6965
npm test
7066
```
7167

68+
It's possible to run them in watch mode:
69+
70+
```
71+
npm run test:watch
72+
```
73+
7274
## Style Guide 🌷
7375

7476
We use [Prettier](https://prettier.io).

0 commit comments

Comments
 (0)