@learnpack/learnpack 4.0.9 → 4.0.12
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +25 -10
- package/lib/commands/audit.d.ts +6 -6
- package/lib/commands/audit.js +327 -327
- package/lib/commands/build.d.ts +11 -0
- package/lib/commands/build.js +160 -0
- package/lib/commands/clean.d.ts +8 -8
- package/lib/commands/clean.js +22 -22
- package/lib/commands/download.d.ts +13 -13
- package/lib/commands/download.js +52 -52
- package/lib/commands/init.d.ts +9 -9
- package/lib/commands/init.js +127 -127
- package/lib/commands/login.d.ts +14 -14
- package/lib/commands/login.js +34 -34
- package/lib/commands/logout.d.ts +14 -14
- package/lib/commands/logout.js +34 -34
- package/lib/commands/publish.d.ts +14 -14
- package/lib/commands/publish.js +79 -79
- package/lib/commands/start.d.ts +7 -7
- package/lib/commands/start.js +252 -250
- package/lib/commands/test.d.ts +6 -6
- package/lib/commands/test.js +62 -62
- package/lib/index.d.ts +1 -1
- package/lib/index.js +4 -4
- package/lib/managers/config/allowed_files.d.ts +5 -5
- package/lib/managers/config/allowed_files.js +30 -30
- package/lib/managers/config/defaults.d.ts +47 -48
- package/lib/managers/config/defaults.js +51 -51
- package/lib/managers/config/exercise.d.ts +36 -36
- package/lib/managers/config/exercise.js +243 -236
- package/lib/managers/config/index.d.ts +3 -3
- package/lib/managers/config/index.js +464 -459
- package/lib/managers/file.d.ts +14 -14
- package/lib/managers/file.js +190 -184
- package/lib/managers/gitpod.d.ts +3 -3
- package/lib/managers/gitpod.js +67 -67
- package/lib/managers/server/index.d.ts +5 -6
- package/lib/managers/server/index.js +58 -58
- package/lib/managers/server/routes.d.ts +4 -4
- package/lib/managers/server/routes.js +228 -220
- package/lib/managers/session.d.ts +3 -3
- package/lib/managers/session.js +125 -125
- package/lib/managers/socket.d.ts +3 -3
- package/lib/managers/socket.js +188 -186
- package/lib/managers/telemetry.d.ts +74 -74
- package/lib/managers/telemetry.js +215 -214
- package/lib/managers/test.js +84 -84
- package/lib/models/action.d.ts +2 -2
- package/lib/models/action.js +2 -2
- package/lib/models/audit.d.ts +15 -15
- package/lib/models/audit.js +2 -2
- package/lib/models/config-manager.d.ts +21 -21
- package/lib/models/config-manager.js +2 -2
- package/lib/models/config.d.ts +86 -86
- package/lib/models/config.js +2 -2
- package/lib/models/counter.d.ts +11 -11
- package/lib/models/counter.js +2 -2
- package/lib/models/errors.d.ts +15 -15
- package/lib/models/errors.js +2 -2
- package/lib/models/exercise-obj.d.ts +29 -30
- package/lib/models/exercise-obj.js +2 -2
- package/lib/models/file.d.ts +5 -5
- package/lib/models/file.js +2 -2
- package/lib/models/findings.d.ts +17 -17
- package/lib/models/findings.js +2 -2
- package/lib/models/flags.d.ts +10 -10
- package/lib/models/flags.js +2 -2
- package/lib/models/front-matter.d.ts +11 -11
- package/lib/models/front-matter.js +2 -2
- package/lib/models/gitpod-data.d.ts +16 -16
- package/lib/models/gitpod-data.js +2 -2
- package/lib/models/language.d.ts +4 -4
- package/lib/models/language.js +2 -2
- package/lib/models/package.d.ts +7 -7
- package/lib/models/package.js +2 -2
- package/lib/models/plugin-config.d.ts +16 -16
- package/lib/models/plugin-config.js +2 -2
- package/lib/models/session.d.ts +31 -31
- package/lib/models/session.js +2 -2
- package/lib/models/socket.d.ts +37 -37
- package/lib/models/socket.js +2 -2
- package/lib/models/status.d.ts +1 -1
- package/lib/models/status.js +2 -2
- package/lib/models/success-types.d.ts +1 -1
- package/lib/models/success-types.js +2 -2
- package/lib/plugin/command/compile.d.ts +6 -6
- package/lib/plugin/command/compile.js +18 -18
- package/lib/plugin/command/test.d.ts +6 -6
- package/lib/plugin/command/test.js +25 -25
- package/lib/plugin/index.d.ts +27 -27
- package/lib/plugin/index.js +7 -7
- package/lib/plugin/plugin.d.ts +8 -8
- package/lib/plugin/plugin.js +68 -68
- package/lib/plugin/utils.d.ts +16 -16
- package/lib/plugin/utils.js +58 -58
- package/lib/ui/download.d.ts +5 -5
- package/lib/ui/download.js +62 -61
- package/lib/utils/BaseCommand.d.ts +8 -8
- package/lib/utils/BaseCommand.js +41 -41
- package/lib/utils/SessionCommand.d.ts +10 -10
- package/lib/utils/SessionCommand.js +43 -43
- package/lib/utils/api.d.ts +14 -14
- package/lib/utils/api.js +255 -255
- package/lib/utils/audit.d.ts +16 -16
- package/lib/utils/audit.js +303 -303
- package/lib/utils/checkNotInstalled.d.ts +8 -8
- package/lib/utils/checkNotInstalled.js +185 -181
- package/lib/utils/console.d.ts +12 -12
- package/lib/utils/console.js +19 -19
- package/lib/utils/errors.d.ts +17 -17
- package/lib/utils/errors.js +107 -100
- package/lib/utils/exercisesQueue.d.ts +9 -9
- package/lib/utils/exercisesQueue.js +38 -38
- package/lib/utils/fileQueue.d.ts +43 -43
- package/lib/utils/fileQueue.js +169 -169
- package/lib/utils/misc.d.ts +1 -1
- package/lib/utils/misc.js +24 -23
- package/lib/utils/osOperations.d.ts +5 -5
- package/lib/utils/osOperations.js +72 -72
- package/lib/utils/validators.d.ts +5 -5
- package/lib/utils/validators.js +16 -17
- package/lib/utils/watcher.d.ts +2 -2
- package/lib/utils/watcher.js +25 -25
- package/oclif.manifest.json +1 -1
- package/package.json +6 -4
- package/src/commands/build.ts +181 -0
- package/src/managers/config/index.ts +5 -0
- package/src/managers/server/routes.ts +11 -1
- package/src/managers/session.ts +1 -1
package/README.md
CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @learnpack/learnpack
|
|
21
21
|
$ learnpack COMMAND
|
22
22
|
running command...
|
23
23
|
$ learnpack (-v|--version|version)
|
24
|
-
@learnpack/learnpack/4.0.
|
24
|
+
@learnpack/learnpack/4.0.12 win32-x64 node-v20.16.0
|
25
25
|
$ learnpack --help [COMMAND]
|
26
26
|
USAGE
|
27
27
|
$ learnpack COMMAND
|
@@ -33,6 +33,7 @@ USAGE
|
|
33
33
|
|
34
34
|
<!-- commands -->
|
35
35
|
* [`learnpack audit`](#learnpack-audit)
|
36
|
+
* [`learnpack build`](#learnpack-build)
|
36
37
|
* [`learnpack clean`](#learnpack-clean)
|
37
38
|
* [`learnpack download [PACKAGE]`](#learnpack-download-package)
|
38
39
|
* [`learnpack help [COMMAND]`](#learnpack-help-command)
|
@@ -74,7 +75,21 @@ DESCRIPTION
|
|
74
75
|
12. If there is a file within the exercises folder but not inside of any particular exercise's folder. (Warning)
|
75
76
|
```
|
76
77
|
|
77
|
-
_See code: [src\commands\audit.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.
|
78
|
+
_See code: [src\commands\audit.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.12/src\commands\audit.ts)_
|
79
|
+
|
80
|
+
## `learnpack build`
|
81
|
+
|
82
|
+
Builds the project by copying necessary files and directories into a zip file
|
83
|
+
|
84
|
+
```
|
85
|
+
USAGE
|
86
|
+
$ learnpack build
|
87
|
+
|
88
|
+
OPTIONS
|
89
|
+
-h, --help show CLI help
|
90
|
+
```
|
91
|
+
|
92
|
+
_See code: [src\commands\build.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.12/src\commands\build.ts)_
|
78
93
|
|
79
94
|
## `learnpack clean`
|
80
95
|
|
@@ -89,7 +104,7 @@ DESCRIPTION
|
|
89
104
|
Extra documentation goes here
|
90
105
|
```
|
91
106
|
|
92
|
-
_See code: [src\commands\clean.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.
|
107
|
+
_See code: [src\commands\clean.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.12/src\commands\clean.ts)_
|
93
108
|
|
94
109
|
## `learnpack download [PACKAGE]`
|
95
110
|
|
@@ -107,7 +122,7 @@ DESCRIPTION
|
|
107
122
|
Extra documentation goes here
|
108
123
|
```
|
109
124
|
|
110
|
-
_See code: [src\commands\download.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.
|
125
|
+
_See code: [src\commands\download.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.12/src\commands\download.ts)_
|
111
126
|
|
112
127
|
## `learnpack help [COMMAND]`
|
113
128
|
|
@@ -138,7 +153,7 @@ OPTIONS
|
|
138
153
|
-h, --grading show CLI help
|
139
154
|
```
|
140
155
|
|
141
|
-
_See code: [src\commands\init.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.
|
156
|
+
_See code: [src\commands\init.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.12/src\commands\init.ts)_
|
142
157
|
|
143
158
|
## `learnpack login [PACKAGE]`
|
144
159
|
|
@@ -156,7 +171,7 @@ DESCRIPTION
|
|
156
171
|
Extra documentation goes here
|
157
172
|
```
|
158
173
|
|
159
|
-
_See code: [src\commands\login.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.
|
174
|
+
_See code: [src\commands\login.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.12/src\commands\login.ts)_
|
160
175
|
|
161
176
|
## `learnpack logout [PACKAGE]`
|
162
177
|
|
@@ -174,7 +189,7 @@ DESCRIPTION
|
|
174
189
|
Extra documentation goes here
|
175
190
|
```
|
176
191
|
|
177
|
-
_See code: [src\commands\logout.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.
|
192
|
+
_See code: [src\commands\logout.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.12/src\commands\logout.ts)_
|
178
193
|
|
179
194
|
## `learnpack plugins`
|
180
195
|
|
@@ -309,7 +324,7 @@ DESCRIPTION
|
|
309
324
|
Extra documentation goes here
|
310
325
|
```
|
311
326
|
|
312
|
-
_See code: [src\commands\publish.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.
|
327
|
+
_See code: [src\commands\publish.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.12/src\commands\publish.ts)_
|
313
328
|
|
314
329
|
## `learnpack start`
|
315
330
|
|
@@ -330,7 +345,7 @@ OPTIONS
|
|
330
345
|
-w, --watch Watch for file changes
|
331
346
|
```
|
332
347
|
|
333
|
-
_See code: [src\commands\start.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.
|
348
|
+
_See code: [src\commands\start.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.12/src\commands\start.ts)_
|
334
349
|
|
335
350
|
## `learnpack test [EXERCISESLUG]`
|
336
351
|
|
@@ -344,7 +359,7 @@ ARGUMENTS
|
|
344
359
|
EXERCISESLUG The name of the exercise to test
|
345
360
|
```
|
346
361
|
|
347
|
-
_See code: [src\commands\test.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.
|
362
|
+
_See code: [src\commands\test.ts](https://github.com/learnpack/learnpack-cli/blob/v4.0.12/src\commands\test.ts)_
|
348
363
|
<!-- commandsstop -->
|
349
364
|
|
350
365
|
> > > > > > > 0cb3e56d84c197f9d008836bb573eade212b7e57
|
package/lib/commands/audit.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import SessionCommand from "../utils/SessionCommand";
|
2
|
-
declare class AuditCommand extends SessionCommand {
|
3
|
-
init(): Promise<void>;
|
4
|
-
run(): Promise<void>;
|
5
|
-
}
|
6
|
-
export default AuditCommand;
|
1
|
+
import SessionCommand from "../utils/SessionCommand";
|
2
|
+
declare class AuditCommand extends SessionCommand {
|
3
|
+
init(): Promise<void>;
|
4
|
+
run(): Promise<void>;
|
5
|
+
}
|
6
|
+
export default AuditCommand;
|