create-aomex 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-aomex",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "repository": "git@github.com:aomex/create-aomex.git",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,9 +14,13 @@ rules:
14
14
  '@typescript-eslint/no-unsafe-return': 'error'
15
15
 
16
16
  '@typescript-eslint/await-thenable': 'error'
17
- # Number String Object
18
- '@typescript-eslint/ban-types': 'error'
19
- '@typescript-eslint/ban-ts-comments': 'error'
17
+ # Number String Object Boolean BigInt Symbol
18
+ '@typescript-eslint/no-wrapper-object-types': 'error'
19
+ # Function
20
+ '@typescript-eslint/no-unsafe-function-type': 'error'
21
+ # no @ts-ignore @ts-nocheck @ts-check
22
+ # yes @ts-expect-error: WITH_YOUR_DESCRIPTION
23
+ '@typescript-eslint/ban-ts-comments': ['error', { 'ts-expect-error': 'allow-with-description' }]
20
24
  '@typescript-eslint/no-duplicate-type-constituents': 'error'
21
25
  '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error'
22
26
  # foo?.bar!
@@ -1,3 +1,8 @@
1
1
  {
2
- "recommendations": ["esbenp.prettier-vscode", "Prisma.prisma"]
2
+ "recommendations": [
3
+ "esbenp.prettier-vscode",
4
+ "Prisma.prisma",
5
+ "dbaeumer.vscode-eslint",
6
+ "ms-azuretools.vscode-docker"
7
+ ]
3
8
  }
@@ -4,15 +4,14 @@ import { schedule } from '@aomex/cron';
4
4
 
5
5
  export const commander = new Commander();
6
6
 
7
- // npx aomex cron:start
8
7
  commander.create('schedule', {
9
8
  mount: [
9
+ // schedule({
10
+ // second: '*/15',
11
+ // }),
10
12
  schedule({
11
- second: '*/5',
12
- }),
13
- schedule({
14
- second: '*/8',
15
- args: ['--user', 'aomex.js'],
13
+ minute: '*/2',
14
+ args: ['--user', 'Boss'],
16
15
  }),
17
16
  options({
18
17
  user: rule.string().default('World'),
@@ -22,21 +21,7 @@ commander.create('schedule', {
22
21
  const { user } = ctx.options;
23
22
  console.log(`Hello ${user}`);
24
23
  await new Promise((resolve) => {
25
- setTimeout(resolve, 2_000);
26
- });
27
- },
28
- });
29
-
30
- commander.create('long:schedule', {
31
- mount: [
32
- schedule({
33
- second: '*/10',
34
- concurrent: Infinity,
35
- }),
36
- ],
37
- action: async () => {
38
- await new Promise((resolve) => {
39
- setTimeout(resolve, 15_000);
24
+ setTimeout(resolve, 5_000);
40
25
  });
41
26
  },
42
27
  });