Run the following command in any directory:
npm install -g commitizen crypto eslint gitmoji-cli gulp-cli jsdoc npm npm-check-updates npx react-dom serve typedoc typescript @types/react-dom
will install all necessary packages globally.
In the project directory, you can run:
The program will read through the package.json
and automatically install all the dependencies.
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Automatically format all the codes (.js
, .jsx
, .ts
, .tsx
, .css
and .md
files).
Initializes a git repo. This command will generate a .git/
folder in the project directory.
Initializes a git repo in git-flow workflow mechanism.
Initializes a git repo enabled with emoji-rich commit messages.
Adds all changed files in the project directory.
triggers gitmoji
and you can add emoji into your commit message.
pushes all local commits to your remote repo.
For example, the following command
git flow feature start pages/about-us
will create a new branch named pages/about-us
based on the develop
branch.
All necessary new feature changes should be committed into this new branch.
After few changes and commits, if you're confident that the new feature is now finished, you can run the following command
git flow feature finish pages/about-us
will merge the branch into the develop
branch and this pages/about-us
will be deleted.
Your local branch will be switched to develop
.