diff --git a/.autod.conf.js b/.autod.conf.js index 48e2fd3..b2039bd 100644 --- a/.autod.conf.js +++ b/.autod.conf.js @@ -15,7 +15,6 @@ module.exports = { 'eslint', 'eslint-config-egg', 'supertest', - 'should', ], exclude: [ './test/fixtures', diff --git a/LICENSE b/LICENSE index 8363a1e..5b46802 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ -The MIT License (MIT) +MIT License -Copyright (c) Alibaba Group Holding Limited and other contributors. +Copyright (c) 2017 Alibaba Group Holding Limited and other contributors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 0e5f7d2..be78b26 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ $ npm i egg-schedule --save ```javascript // {app_root}/config/plugin.js exports.schedule = { - package: 'egg-schedule' + package: 'egg-schedule', }; // {app_root}/app/schedule/cleandb.js @@ -127,7 +127,7 @@ Example: // To execute task every 3 hours exports.schedule = { type: 'worker', - cron: '0 0 */3 * * *' + cron: '0 0 */3 * * *', }; ``` @@ -141,7 +141,7 @@ Example: // To execute task every 3 hours exports.schedule = { type: 'worker', - interval: '3h' + interval: '3h', }; ``` @@ -169,7 +169,7 @@ module.exports = agent => { // {app_root}/app/schedule/other.js exports.schedule = { - type: 'custom' + type: 'custom', }; ``` diff --git a/package.json b/package.json index 3e20f0c..4986ab5 100644 --- a/package.json +++ b/package.json @@ -23,17 +23,17 @@ ], "dependencies": { "co": "^4.6.0", - "cron-parser": "^2.3.0", + "cron-parser": "^2.3.1", "humanize-ms": "^1.2.0", "is-type-of": "^1.0.0" }, "devDependencies": { "autod": "^2.7.1", - "egg": "^0.9.0", - "egg-bin": "^2.0.2", - "egg-ci": "^1.1.0", - "egg-mock": "^2.3.1", - "eslint": "^3.14.1", + "egg": "^1.0.0-rc.2", + "egg-bin": "^2.2.3", + "egg-ci": "^1.5.0", + "egg-mock": "^3.1.1", + "eslint": "^3.17.0", "eslint-config-egg": "^3.2.0", "supertest": "^3.0.0" }, @@ -49,7 +49,9 @@ "autod": "autod" }, "ci": { - "version": "6, 7" + "version": "6, 7", + "license": true }, - "author": "dead_horse" + "author": "dead_horse", + "license": "MIT" } diff --git a/test/schedule.test.js b/test/schedule.test.js index fbebfd6..b0bfbad 100644 --- a/test/schedule.test.js +++ b/test/schedule.test.js @@ -5,7 +5,6 @@ const path = require('path'); const fs = require('fs'); const assert = require('assert'); - describe('test/schedule.test.js', () => { let app; afterEach(() => app.close()); @@ -214,7 +213,6 @@ describe('test/schedule.test.js', () => { assert(app.schedules); }); }); - }); function sleep(time) {