Ready set to be used for new projects from Cubik's Team.
- Typescript
- Jest
- TSLint
- Dotenv
- Nodemon
Every time that a new project needs to be created, follow the next steps:
- Copy the url from this git repo.
- Use this url to create a base project in your local machine, setting the name for the new project:
git clone https://github.ibm.com/Cubik/ready-set-TS-Jest-Lint.git $NEW_PROJECT_NAME
- After the project has been clone, get inside the project folder
- Once inside the project remove the
.git
folder with the follow command:
rm -rf .git
- Now your project is not linked with any git repo
- Open the 'packget.json' file and change the information to be related with yours new project, like:
"name": "functional-es6",
"version": "1.0.0",
"description": "",
"main": "index.js",
"author": "",
"license": "ISC",
Removes the dist
folder, runs the lint command and transpile the Typescript to javaScript
Removes the dist
folder
Runs the javaScript file app.js
inside de /dist
folder, using node
preloading the dotenv packet
Runs the jest set of tests, generating the coverage report
Runs the jest set of tests, generating the coverage report with the --watch
flag set
Runs the transpile form .ts file to .js in the watch
mode
Run the javaScript file app.js
inside de /dist
folder, using nodemon
instead of node
, preloading the dotenv packet
Important: To make the development easy, eu should run the commands
npm run watch-ts
andnpm run watch-node
simultaneously in different terminals
Opens the browser with de coverage report from yours last test with jest
Runs the lint on your code
You can fail, but fail fast