A TypeScript template created by DmmD GM.
# Verification
git -v
# Verification
node -v
# Installation
npm install -g prettier
sudo npm install -g prettier
# Verification
prettier -v
# Installation
npm install -g typescript
sudo npm install -g typescript
# Verification
tsc -v
-
Create a new repository from this template.
-
Clone the new repository to your desktop:
git clone your-repository-url your-project/
- Change your current working directory to your project:
cd your-project/
- Set up your project:
./scripts/setup.sh
scripts/build.sh
Formats and statically analyzes your TypeScript files in the src/
directory before compiling them into JavaScript files.
scripts/format.sh
Formats and statically analyzes your entire project, which includes non-TypeScript files such as package.json
or README.md
.
scripts/publish.sh <message>
Publishes your code to Github with the message attached.
scripts/setup.sh
Installs necessary npm packages and formats the project automatically.