Skip to content

Commit

Permalink
feat: remove debug deps (#32)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced a new GitHub Actions workflow for continuous integration
and release management.
  
- **Bug Fixes**
- Removed outdated configuration files to streamline project setup and
dependency management.

- **Documentation**
- Updated README files to reflect changes in CI services and added a
contributors section.

- **Chores**
- Removed unnecessary dependencies and simplified scripts in the
`package.json` file.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
fengmk2 authored Sep 28, 2024
1 parent 75e4787 commit e897d48
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 114 deletions.
20 changes: 0 additions & 20 deletions .autod.conf.js

This file was deleted.

4 changes: 0 additions & 4 deletions .gitattributes

This file was deleted.

24 changes: 0 additions & 24 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
Job:
name: Node.js
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
with:
os: 'ubuntu-latest, windows-latest, macos-latest'
version: '14, 16, 18, 20, 22'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Release
on:
push:
branches: [ master ]

jobs:
release:
name: Node.js
uses: eggjs/github-actions/.github/workflows/node-release.yml@master
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

22 changes: 9 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
# egg-logrotator

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![CI](https://github.com/eggjs/egg-logrotator/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eggjs/egg-logrotator/actions/workflows/nodejs.yml)
[![Test coverage](https://img.shields.io/codecov/c/github/eggjs/egg-logrotator.svg?style=flat-square)](https://codecov.io/gh/eggjs/egg-logrotator)
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/egg-logrotator.svg?style=flat-square
[npm-url]: https://npmjs.org/package/egg-logrotator
[travis-image]: https://img.shields.io/travis/eggjs/egg-logrotator.svg?style=flat-square
[travis-url]: https://travis-ci.org/eggjs/egg-logrotator
[codecov-image]: https://img.shields.io/codecov/c/github/eggjs/egg-logrotator.svg?style=flat-square
[codecov-url]: https://codecov.io/github/eggjs/egg-logrotator?branch=master
[david-image]: https://img.shields.io/david/eggjs/egg-logrotator.svg?style=flat-square
[david-url]: https://david-dm.org/eggjs/egg-logrotator
[snyk-image]: https://snyk.io/test/npm/egg-logrotator/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/egg-logrotator
[download-image]: https://img.shields.io/npm/dm/egg-logrotator.svg?style=flat-square
[download-url]: https://npmjs.org/package/egg-logrotator

Expand All @@ -25,7 +15,7 @@ LogRotator for egg. Rotate all file of `app.loggers` by default
## Install

```bash
$ npm i egg-logrotator
npm i egg-logrotator
```

## Usage
Expand Down Expand Up @@ -121,3 +111,9 @@ Please open an issue [here](https://github.com/eggjs/egg/issues).
## License

[MIT](https://github.com/eggjs/egg-logrotator/blob/master/LICENSE)

## Contributors

[![Contributors](https://contrib.rocks/image?repo=eggjs/egg-logrotator)](https://github.com/eggjs/egg-logrotator/graphs/contributors)

Made with [contributors-img](https://contrib.rocks).
19 changes: 7 additions & 12 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
# egg-logrotator

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![CI](https://github.com/eggjs/egg-logrotator/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eggjs/egg-logrotator/actions/workflows/nodejs.yml)
[![Test coverage](https://img.shields.io/codecov/c/github/eggjs/egg-logrotator.svg?style=flat-square)](https://codecov.io/gh/eggjs/egg-logrotator)
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/egg-logrotator.svg?style=flat-square
[npm-url]: https://npmjs.org/package/egg-logrotator
[travis-image]: https://img.shields.io/travis/eggjs/egg-logrotator.svg?style=flat-square
[travis-url]: https://travis-ci.org/eggjs/egg-logrotator
[codecov-image]: https://img.shields.io/codecov/c/github/eggjs/egg-logrotator.svg?style=flat-square
[codecov-url]: https://codecov.io/github/eggjs/egg-logrotator?branch=master
[david-image]: https://img.shields.io/david/eggjs/egg-logrotator.svg?style=flat-square
[david-url]: https://david-dm.org/eggjs/egg-logrotator
[snyk-image]: https://snyk.io/test/npm/egg-logrotator/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/egg-logrotator
[download-image]: https://img.shields.io/npm/dm/egg-logrotator.svg?style=flat-square
[download-url]: https://npmjs.org/package/egg-logrotator

Expand Down Expand Up @@ -115,3 +105,8 @@ Please open an issue [here](https://github.com/eggjs/egg/issues).

[MIT](https://github.com/eggjs/egg-logrotator/blob/master/LICENSE)

## Contributors

[![Contributors](https://contrib.rocks/image?repo=eggjs/egg-logrotator)](https://github.com/eggjs/egg-logrotator/graphs/contributors)

Made with [contributors-img](https://contrib.rocks).
2 changes: 1 addition & 1 deletion app/lib/day_rotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const path = require('path');
const moment = require('moment');
const fs = require('mz/fs');
const debug = require('debug')('egg-logrotator:day_rotator');
const debug = require('util').debuglog('egg-logrotator:day_rotator');
const Rotator = require('./rotator');
const utils = require('../../utils');

Expand Down
2 changes: 1 addition & 1 deletion app/lib/hour_rotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const moment = require('moment');
const fs = require('mz/fs');
const path = require('path');
const debug = require('debug')('egg-logrotator:hour_rotator');
const debug = require('util').debuglog('egg-logrotator:hour_rotator');
const Rotator = require('./rotator');


Expand Down
2 changes: 1 addition & 1 deletion app/lib/rotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const assert = require('assert');
const fs = require('mz/fs');
const debug = require('debug')('egg-logrotator:rotator');
const debug = require('util').debuglog('egg-logrotator:rotator');


class Rotator {
Expand Down
2 changes: 1 addition & 1 deletion app/lib/size_rotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const fs = require('mz/fs');
const path = require('path');
const debug = require('debug')('egg-logrotator:size_rotator');
const debug = require('util').debuglog('egg-logrotator:size_rotator');
const Rotator = require('./rotator');


Expand Down
24 changes: 4 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,16 @@
"app.js"
],
"dependencies": {
"debug": "^4.1.1",
"moment": "^2.24.0",
"mz": "^2.7.0"
},
"devDependencies": {
"autod": "^3.1.0",
"egg": "^2.0.0",
"egg-bin": "^4.13.0",
"egg-ci": "^1.11.0",
"egg-logger": "^2.4.1",
"egg-mock": "^3.22.2",
"eslint": "^5.16.0",
"eslint-config-egg": "^7.3.1",
"eslint": "8",
"eslint-config-egg": "12",
"glob": "^7.1.3",
"mz-modules": "^2.1.0",
"pedding": "1"
Expand All @@ -45,23 +42,10 @@
},
"scripts": {
"lint": "eslint .",
"pkgfiles": "egg-bin pkgfiles",
"test": "npm run lint -- --fix && npm run pkgfiles && npm run test-local",
"test": "npm run lint -- --fix && npm run test-local",
"test-local": "egg-bin test",
"cov": "egg-bin cov",
"ci": "npm run lint && npm run pkgfiles -- --check && npm run cov",
"autod": "autod"
},
"ci": {
"type": "travis",
"os": {
"travis": "linux, osx, windows"
},
"nyc": true,
"version": "8, 10",
"license": {
"year": 2016
}
"ci": "npm run lint && npm run cov"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit e897d48

Please sign in to comment.