functional-lib uses the following devDependencies. Instructions on how to use them are linked below.
Dependency | Documentation |
---|---|
Webpack | webpack.js.org/ |
Typescript | typescriptlang.org/ |
Babel | babeljs.io/ |
Karma | karma-runner.github.io/ |
Jasmine | jasmine.github.io/ |
Tslint | palantir.github.io/tslint/ |
Open your favorite Terminal and run these commands get started:
git clone https://github.com/MRDNZ/functional-lib.git
cd functional-lib
npm install
/yarn install
The code that supports this library can be found in the projects folder ./src
.
The tests that can be found in the projects folder ./test
. Use the following command to run the test suites.
$ npm test
To see the examples in action run these commands one after another:
$ npm run build-prod
$ npm run examples
It is also possible to manually run code snippets by using ts-node
in your terminal or any other code runner in your editor.
To release a new version of the library please make sure you follow these steps strictly!
- Update version in the
package.json
according to semantic versioning. - Commit changes to repo, this will launch the tests by a pre-commit hook.
Once the repo is up to date you can publish a new package for npm by running:
$ npm publish