Compare commits

...

2 Commits

Author SHA1 Message Date
S.long ce0e2968a1 update readme 2020-08-28 16:26:06 +07:00
S.long f1aef83a82 add init script sh 2020-08-28 16:21:12 +07:00
2 changed files with 39 additions and 6 deletions

View File

@ -7,12 +7,22 @@ JS Library boilerplate is include with
- Pre commit Prettier
- Eslint
### Start Up
### Get Started
---
- Re init git
- Delete src/sample1.ts , src/sample2.ts
- Delete test/sample1.test.ts, test/sample2.test.ts
- Reconfig package.json , name , description, git url ...
- Re construct example
After View Sample Ready , Please Run
```shell script
bash init.sh
```
This Script Will Reinit Project
- Delete Sample File and SRC and Test
- Clear src/index.ts
- Reinitialize Git
- Delete Example Folder
After Done This , Please reconfig package json
- Name
- Description
- Git Repository Url

23
init.sh Normal file
View File

@ -0,0 +1,23 @@
# Remove Sample in src
rm -rf src/sample*
# Make src/index.ts Empty
echo "" > src/index.ts
# Remove Sample in Test
rm -rf test/*
# Remove Built
rm -rf dist
# Remove Example
rm -rf example
# Remove Self Init Script For Prevent Next time wrong on init
rm -f ./init.sh
# Reinit Git
git init
# Show Warning
echo "Please Goto package.json and change Name , Description, Git Url of this library"