Pull requests & contributions welcome! This document outlines the steps you need to take to develop this package locally and contribute changes. This project was bootstrapped with TSDX.
The simple steps of contributing to any GitHub project are as follows:
- Fork the repository
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push -u origin my-new-feature
- Create a Pull Request!
To keep your fork of in sync with this repository, follow this guide.
- Git
- Node.js (8.0.0+)
- Yarn
- Text Editor with EditorConfig & Prettier support. (We recommend Visual Studio Code)
Run these commands inside the Terminal (PowerShell/Command Prompt for Windows).
Git: You should see the version number:
$ git version
git version 2.18.0
Node.js: You should see the version number:
$ node -v
v10.16.0
Yarn: You should see the version number:
$ yarn -v
1.16.0
First, you should clone the repository.
$ git clone https://github.com/pinjhollist/next-with-analytics.git
Cloning into 'next-with-analytics'...
remote: Enumerating objects: 61, done.
remote: Counting objects: 100% (61/61), done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 61 (delta 22), reused 51 (delta 13), pack-reused 0
Unpacking objects: 100% (61/61), done.
After these repository has been cloned, cd
into the repository:
$ cd next-with-analytics
Install the project's dependencies. Note that we use Yarn, not npm:
$ yarn
Below is a list of commands you will probably find useful.
Runs the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for you convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab.
Your library will be rebuilt if you make edits.
Bundles the package to the dist
folder.
The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).
Runs the test watcher (Jest) in an interactive mode. By default, runs tests related to files changed since the last commit.