Skip to content

Commit 11a5614

Browse files
committed
add contributing + dev build sections
1 parent 5e2b11e commit 11a5614

File tree

1 file changed

+58
-3
lines changed

1 file changed

+58
-3
lines changed

README.md

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
[![Dependencies](https://david-dm.org/chrisweb/waveform-visualizer/status.svg)](https://david-dm.org/chrisweb/waveform-visualizer)
2-
[![Dependencies](https://david-dm.org/chrisweb/waveform-visualizer/dev-status.png)](https://david-dm.org/chrisweb/waveform-visualizer)
1+
32
[![npm version](https://img.shields.io/npm/v/waveform-visualizer.svg?style=flat)](https://www.npmjs.com/package/waveform-visualizer)
43
[![GitHub license](https://img.shields.io/github/license/chrisweb/waveform-visualizer)](https://github.com/chrisweb/waveform-visualizer/blob/master/LICENSE)
54

@@ -15,6 +14,62 @@ Waveform created using data that got generated using the [waveform data generato
1514

1615
Check out the [simple waveform example](/examples/simple-waveform/README.md)
1716

17+
## development: build
18+
19+
install the latest nodejs (if you haven't already) [nodejs](https://nodejs.org)
20+
21+
install or update to the latest git version [git scm downloads](https://git-scm.com/downloads) (During installation at the step "choosing the default editor used by Git", if like me you are using visual studio code you might want to chose the new option "use visual studio code as Git's default editor") (also if like me you are on windows, at the step "adjusting your PATH environment", ensure the second radio button option is selected "git from the line and also from 3rd-party software" to ensure git is added to the windows PATH, which will allow you to use git with any command line tool like windows powershell for example)
22+
23+
git clone this repository to get a local copy
24+
25+
`git clone git@github.com:chrisweb/waveform-visualizer.git`
26+
27+
open your favorite command line tool and go to the root directory of this repository
28+
29+
update npm to latest version
30+
31+
`npm install npm@latest -g`
32+
33+
install the dependencies
34+
35+
`npm i`
36+
37+
to build the distributions, use the following command:
38+
39+
`npm run build`
40+
41+
in development you can use watch to have the build getting rebuild every time you edit code / save one of the typescript files
42+
43+
## development: watch
44+
45+
`npm run watch`
46+
47+
## development: linting
48+
49+
to lint the typescript files
50+
51+
`npm run lint`
52+
53+
## changelog
54+
55+
3.0.0 removed UMD support, this and future versions will be ESM only
56+
57+
## contributing (help / PRs appreciated 😊)
58+
59+
you should first open a ticket and explain what fix or improvement you want to provide on the [github issues page](https://github.com/chrisweb/waveform-visualizer/issues) of this project (remember the github ticket number you will need it for the commit message later on)
60+
61+
go the [github page of this project](https://github.com/chrisweb/waveform-visualizer) and hit the fork button
62+
63+
follow the instructions in the previous section ["development: build"](#development-build), but instead of cloning this projects repository, clone your own fork of the project
64+
65+
`git clone git@github.com:YOUR_USERNAME/waveform-visualizer.git`
66+
67+
when you are done coding, commit your local changes (if your commit is related to a ticket start your commit message with the "#TICKER_NUMBER", this will "link" the commit to the ticket)
68+
69+
`git commit -m "#TICKER_NUMBER commit message"`
70+
71+
now open your forks github URL in your browser and hit the pull request button
72+
1873
## license
1974

20-
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
75+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

0 commit comments

Comments
 (0)