-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
2,212 additions
and
9,452 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,57 @@ | ||
## CSVx.js project installation guide | ||
# Installation guide | ||
|
||
You just cloned CSVx.js : git clone https://github.com/LCluber/CSVx.js.git | ||
## Clone the project : | ||
|
||
### Install nodejs : | ||
- Windows and OSX : **https://nodejs.org/en/** | ||
- Linux : run | ||
- **curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -** | ||
- **sudo apt-get install -y nodejs** | ||
```bash | ||
$ git clone https://github.com/DWTechs/CSVx.js.git | ||
``` | ||
|
||
## Launch with docker | ||
|
||
### build image : | ||
```bash | ||
$ cd CSVx.js/ | ||
$ docker-compose up -d | ||
``` | ||
|
||
### build lib : | ||
```bash | ||
$ cd CSVx.js/ | ||
$ docker-compose run csvx | ||
``` | ||
|
||
OR | ||
|
||
### Install grunt : | ||
- Run **npm update -g npm** to update npm | ||
- Run **npm install -g grunt-cli** | ||
## Install project dependencies : | ||
|
||
```bash | ||
$ cd CSVx.js/ | ||
$ npm i | ||
``` | ||
|
||
### Install typescript : | ||
- Run **npm install -g typescript** | ||
# Workflow | ||
|
||
- create a branch following [these instructions](https://lcluber.github.io/LeadDevToolkit/docs/git/branch.html) | ||
|
||
### Install project dependencies | ||
- Run **npm install** in your project directory | ||
- build the library : | ||
|
||
```bash | ||
$ npm run build | ||
``` | ||
|
||
### Workflow | ||
- Run **grunt** to serve the website and start develop. (http://localhost:3000/) | ||
- Run **grunt build** to build the library in development mode and serve the website. | ||
- Run **grunt build** to build the library in production mode and serve the website. | ||
- Use **grunt --help** to see the list of tasks. | ||
- test the library : | ||
|
||
```bash | ||
$ npm run test | ||
``` | ||
|
||
- commit your work following [conventional commits rules](https://lcluber.github.io/LeadDevToolkit/docs/git/commit.html) : | ||
|
||
|
||
## Folders | ||
|
||
- scripts/ | ||
- dist/ | ||
- src/ | ||
- tests/ | ||
|
||
- Set node environment if needed : | ||
- Run **export NODE_ENV=development** | ||
- Or **export NODE_ENV=production** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.