https://github.com/ymc-github/js-lib-git-test-commit
create a dummy commit for testing
https://github.com/ymc-github/js-lib-git-test-commit
commit git test
Last synced: about 2 months ago
JSON representation
create a dummy commit for testing
- Host: GitHub
- URL: https://github.com/ymc-github/js-lib-git-test-commit
- Owner: YMC-GitHub
- License: mit
- Created: 2020-02-01T15:22:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-10T13:36:10.000Z (over 6 years ago)
- Last Synced: 2025-01-07T23:46:08.290Z (over 1 year ago)
- Topics: commit, git, test
- Language: JavaScript
- Homepage:
- Size: 123 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README










# git-test-commit
## desc
create a dummy commit for testing
## how to use for production?
### install
```sh
#npm install git-test-commit --save-dev
npm install https://github.com/YMC-GitHub/js-lib-git-test-commit.git --save-dev
```
### usage
```sh
const gitDummyCommit = require('git-test-commit');
gitDummyCommit('unicorns');
//=> created a commit with message "unicorns"
```
## how to use for developer?
### install
```sh
#npm install git-test-commit --save-dev
npm install https://github.com/YMC-GitHub/js-lib-git-test-commit.git --save-dev
```
### config
01.set the dir to save the source code ? [config](./config/dir.map.config.js#L3-#L3)
02.set the dir to save the build ouput code by rollup ? [config](./config/dir.map.config.js#L7-#L7)
03.set the lib name ? [config](./build/rollup.bas.config.js#L10-#L10)
04.set the banner start year ? [config](./build/rollup.bas.config.js#L14-#L14)
05.set npm package 's main,module,unpkg key?
```js
{
//...
"main": "lib/git-test-commit.common.js",
"module": "lib/git-test-commit.esm.js",
"unpkg": "lib/git-test-commit.min.js",
//...
}
```
...
### usage
```sh
#dev
npm run dev
#build
npm run build
#release
npm run release
#lint
npm run lint
npm run lint:no-fix
#format
npm run beautify
#test
npm run test
npm run test:unit
npm run test:coverage
#changelog
npm run changelog
```
## Author
yemiancheng
## License
MIT