@learnpack/learnpack 5.0.9 → 5.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. package/README.md +17 -17
  2. package/bin/run +17 -17
  3. package/bin/run.cmd +3 -3
  4. package/lib/commands/audit.js +24 -27
  5. package/lib/commands/clean.js +3 -3
  6. package/lib/commands/download.js +3 -3
  7. package/lib/commands/login.js +3 -3
  8. package/lib/commands/logout.js +3 -3
  9. package/lib/commands/publish.js +8 -7
  10. package/lib/managers/config/index.d.ts +0 -10
  11. package/lib/managers/config/index.js +11 -3
  12. package/lib/managers/session.js +1 -1
  13. package/lib/utils/checkNotInstalled.js +4 -6
  14. package/oclif.manifest.json +1 -1
  15. package/package.json +152 -152
  16. package/src/commands/audit.ts +449 -449
  17. package/src/commands/clean.ts +29 -29
  18. package/src/commands/download.ts +61 -61
  19. package/src/commands/login.ts +42 -42
  20. package/src/commands/logout.ts +43 -43
  21. package/src/commands/publish.ts +9 -7
  22. package/src/commands/test.ts +85 -85
  23. package/src/index.ts +1 -1
  24. package/src/managers/config/allowed_files.ts +29 -29
  25. package/src/managers/config/index.ts +16 -6
  26. package/src/managers/gitpod.ts +84 -84
  27. package/src/managers/server/index.ts +78 -78
  28. package/src/managers/session.ts +2 -1
  29. package/src/managers/telemetry.ts +353 -353
  30. package/src/managers/test.ts +83 -83
  31. package/src/models/audit.ts +16 -16
  32. package/src/models/config-manager.ts +23 -23
  33. package/src/models/counter.ts +11 -11
  34. package/src/models/errors.ts +22 -22
  35. package/src/models/exercise-obj.ts +29 -29
  36. package/src/models/file.ts +5 -5
  37. package/src/models/findings.ts +18 -18
  38. package/src/models/flags.ts +10 -10
  39. package/src/models/front-matter.ts +11 -11
  40. package/src/models/gitpod-data.ts +19 -19
  41. package/src/models/language.ts +4 -4
  42. package/src/models/package.ts +7 -7
  43. package/src/models/plugin-config.ts +17 -17
  44. package/src/models/success-types.ts +1 -1
  45. package/src/plugin/command/compile.ts +17 -17
  46. package/src/plugin/command/test.ts +30 -30
  47. package/src/plugin/index.ts +6 -6
  48. package/src/plugin/plugin.ts +94 -94
  49. package/src/plugin/utils.ts +87 -87
  50. package/src/types/node-fetch.d.ts +1 -1
  51. package/src/ui/download.ts +71 -71
  52. package/src/utils/BaseCommand.ts +48 -48
  53. package/src/utils/SessionCommand.ts +43 -43
  54. package/src/utils/audit.ts +393 -393
  55. package/src/utils/checkNotInstalled.ts +10 -13
  56. package/src/utils/errors.ts +117 -117
  57. package/src/utils/exercisesQueue.ts +51 -51
  58. package/src/utils/fileQueue.ts +199 -199
  59. package/src/utils/misc.ts +23 -23
  60. package/src/utils/osOperations.ts +79 -79
  61. package/src/utils/templates/gitignore.txt +19 -19
  62. package/src/utils/templates/incremental/.learn/exercises/01-hello-world/README.es.md +24 -24
  63. package/src/utils/templates/incremental/.learn/exercises/01-hello-world/README.md +24 -24
  64. package/src/utils/templates/incremental/.vscode/schema.json +121 -121
  65. package/src/utils/templates/incremental/.vscode/settings.json +13 -13
  66. package/src/utils/templates/incremental/README.ejs +4 -4
  67. package/src/utils/templates/incremental/README.es.ejs +4 -4
  68. package/src/utils/templates/isolated/.vscode/schema.json +121 -121
  69. package/src/utils/templates/isolated/.vscode/settings.json +13 -13
  70. package/src/utils/templates/isolated/README.ejs +4 -4
  71. package/src/utils/templates/isolated/README.es.ejs +4 -4
  72. package/src/utils/templates/no-grading/README.ejs +4 -4
  73. package/src/utils/templates/no-grading/README.es.ejs +4 -4
  74. package/src/utils/validators.ts +18 -18
  75. package/src/utils/watcher.ts +27 -27
package/package.json CHANGED
@@ -1,152 +1,152 @@
1
- {
2
- "name": "@learnpack/learnpack",
3
- "description": "Seamlessly build, sell and/or take interactive & auto-graded tutorials, start learning now or build a new tutorial to your audience.",
4
- "version": "5.0.9",
5
- "author": "Alejandro Sanchez @alesanchezr",
6
- "contributors": [
7
- {
8
- "name": "Alejandro Sanchez",
9
- "url": "https://www.x.com/alesanchezr"
10
- },
11
- {
12
- "name": "Charly Chacón",
13
- "email": "charlyjchaconc@gmail.com",
14
- "url": "https://www.linkedin.com/in/charlytoc/"
15
- }
16
- ],
17
- "bin": {
18
- "learnpack": "bin/run"
19
- },
20
- "bugs": {
21
- "url": "https://github.com/learnpack/learnpack-cli/issues"
22
- },
23
- "dependencies": {
24
- "@oclif/command": "^1.6.1",
25
- "@oclif/config": "^1.15.1",
26
- "@oclif/plugin-help": "^3.1.0",
27
- "@oclif/plugin-plugins": "^1.8.0",
28
- "@oclif/plugin-warn-if-update-available": "^1.7.0",
29
- "@types/archiver": "^6.0.2",
30
- "archiver": "^7.0.1",
31
- "axios": "^1.7.7",
32
- "body-parser": "^1.19.0",
33
- "chalk": "^4.1.0",
34
- "chokidar": "^3.4.0",
35
- "cli-ux": "^5.4.6",
36
- "debounce": "^1.2.0",
37
- "dotenv": "^8.2.0",
38
- "enquirer": "^2.3.6",
39
- "eslint-plugin-unicorn": "^38.0.1",
40
- "espree": "^9.3.2",
41
- "eta": "^1.2.0",
42
- "express": "^4.17.1",
43
- "front-matter": "^4.0.2",
44
- "moment": "^2.27.0",
45
- "node-emoji": "^1.10.0",
46
- "node-fetch": "^2.7.0",
47
- "node-persist": "^3.1.0",
48
- "prompts": "^2.3.2",
49
- "shelljs": "^0.8.4",
50
- "socket.io": "^4.4.1",
51
- "targz": "^1.0.1",
52
- "tslib": "^1",
53
- "validator": "^13.1.1",
54
- "xxhashjs": "^0.2.2"
55
- },
56
- "devDependencies": {
57
- "@oclif/dev-cli": "^1.22.2",
58
- "@oclif/test": "^1.2.6",
59
- "@types/chai": "^4",
60
- "@types/debounce": "^1.2.1",
61
- "@types/express": "^4.17.13",
62
- "@types/fs-extra": "^8.1.0",
63
- "@types/mocha": "^5",
64
- "@types/mock-fs": "^4.13.1",
65
- "@types/node": "^10.17.60",
66
- "@types/node-persist": "^3.1.2",
67
- "@types/prompts": "^2.0.14",
68
- "@types/shelljs": "^0.8.9",
69
- "@types/socket.io": "^3.0.2",
70
- "@types/targz": "^1.0.1",
71
- "@types/validator": "^13.7.0",
72
- "@types/xxhashjs": "^0.2.2",
73
- "@typescript-eslint/eslint-plugin": "^5.4.0",
74
- "@typescript-eslint/parser": "^5.4.0",
75
- "chai": "^4.2.0",
76
- "chai-http": "^4.3.0",
77
- "eslint": "^8.12.0",
78
- "eslint-config-oclif": "^4.0",
79
- "eslint-config-oclif-typescript": "^1.0.2",
80
- "fs-extra": "^10.0.1",
81
- "globby": "^10.0.2",
82
- "husky": ">=6",
83
- "lint-staged": ">=10",
84
- "mocha": "^5.2.0",
85
- "mock-fs": "^5.1.2",
86
- "nock": "^13.2.2",
87
- "nyc": "^14.1.1",
88
- "pre-commit": "^1.2.2",
89
- "prettier": "^2.4.1",
90
- "ts-node": "^8",
91
- "typescript": "^5.6.2"
92
- },
93
- "engines": {
94
- "node": ">=14.0.0"
95
- },
96
- "files": [
97
- "/bin",
98
- "/npm-shrinkwrap.json",
99
- "/oclif.manifest.json",
100
- "/src",
101
- "/lib"
102
- ],
103
- "homepage": "https://github.com/learnpack/learnpack-cli",
104
- "keywords": [
105
- "oclif"
106
- ],
107
- "license": "UNLICENSED",
108
- "main": "lib/index.js",
109
- "types": "lib/index.d.ts",
110
- "oclif": {
111
- "commands": "./lib/commands",
112
- "bin": "learnpack",
113
- "plugins": [
114
- "@oclif/plugin-help",
115
- "@oclif/plugin-plugins",
116
- "@oclif/plugin-warn-if-update-available"
117
- ],
118
- "permanent_plugins": [
119
- "@oclif/plugin-help",
120
- "@oclif/plugin-plugins",
121
- "@oclif/plugin-warn-if-update-available"
122
- ]
123
- },
124
- "repository": {
125
- "type": "git",
126
- "url": "git+https://github.com/learnpack/learnpack-cli.git"
127
- },
128
- "pre-commit": {
129
- "silent": true,
130
- "run": [
131
- "pre"
132
- ]
133
- },
134
- "scripts": {
135
- "tsc": "tsc -b",
136
- "postpack": "rm -f oclif.manifest.json && eslint . --ext .ts --config .eslintrc",
137
- "prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme",
138
- "pre": "node ./test/precommit/index.ts",
139
- "test": "NODE_ENV=test nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
140
- "version": "oclif-dev readme && git add README.md",
141
- "prepare": "husky install"
142
- },
143
- "lint-staged": {
144
- "*.{js,ts}": [
145
- "eslint --cache --fix"
146
- ],
147
- "*.{js,css,md,ts}": "prettier --write"
148
- },
149
- "directories": {
150
- "test": "test"
151
- }
152
- }
1
+ {
2
+ "name": "@learnpack/learnpack",
3
+ "description": "Seamlessly build, sell and/or take interactive & auto-graded tutorials, start learning now or build a new tutorial to your audience.",
4
+ "version": "5.0.11",
5
+ "author": "Alejandro Sanchez @alesanchezr",
6
+ "contributors": [
7
+ {
8
+ "name": "Alejandro Sanchez",
9
+ "url": "https://www.x.com/alesanchezr"
10
+ },
11
+ {
12
+ "name": "Charly Chacón",
13
+ "email": "charlyjchaconc@gmail.com",
14
+ "url": "https://www.linkedin.com/in/charlytoc/"
15
+ }
16
+ ],
17
+ "bin": {
18
+ "learnpack": "bin/run"
19
+ },
20
+ "bugs": {
21
+ "url": "https://github.com/learnpack/learnpack-cli/issues"
22
+ },
23
+ "dependencies": {
24
+ "@oclif/command": "^1.6.1",
25
+ "@oclif/config": "^1.15.1",
26
+ "@oclif/plugin-help": "^3.1.0",
27
+ "@oclif/plugin-plugins": "^1.8.0",
28
+ "@oclif/plugin-warn-if-update-available": "^1.7.0",
29
+ "@types/archiver": "^6.0.2",
30
+ "archiver": "^7.0.1",
31
+ "axios": "^1.7.7",
32
+ "body-parser": "^1.19.0",
33
+ "chalk": "^4.1.0",
34
+ "chokidar": "^3.4.0",
35
+ "cli-ux": "^5.4.6",
36
+ "debounce": "^1.2.0",
37
+ "dotenv": "^8.2.0",
38
+ "enquirer": "^2.3.6",
39
+ "eslint-plugin-unicorn": "^38.0.1",
40
+ "espree": "^9.3.2",
41
+ "eta": "^1.2.0",
42
+ "express": "^4.17.1",
43
+ "front-matter": "^4.0.2",
44
+ "moment": "^2.27.0",
45
+ "node-emoji": "^1.10.0",
46
+ "node-fetch": "^2.7.0",
47
+ "node-persist": "^3.1.0",
48
+ "prompts": "^2.3.2",
49
+ "shelljs": "^0.8.4",
50
+ "socket.io": "^4.4.1",
51
+ "targz": "^1.0.1",
52
+ "tslib": "^1",
53
+ "validator": "^13.1.1",
54
+ "xxhashjs": "^0.2.2"
55
+ },
56
+ "devDependencies": {
57
+ "@oclif/dev-cli": "^1.22.2",
58
+ "@oclif/test": "^1.2.6",
59
+ "@types/chai": "^4",
60
+ "@types/debounce": "^1.2.1",
61
+ "@types/express": "^4.17.13",
62
+ "@types/fs-extra": "^8.1.0",
63
+ "@types/mocha": "^5",
64
+ "@types/mock-fs": "^4.13.1",
65
+ "@types/node": "^10.17.60",
66
+ "@types/node-persist": "^3.1.2",
67
+ "@types/prompts": "^2.0.14",
68
+ "@types/shelljs": "^0.8.9",
69
+ "@types/socket.io": "^3.0.2",
70
+ "@types/targz": "^1.0.1",
71
+ "@types/validator": "^13.7.0",
72
+ "@types/xxhashjs": "^0.2.2",
73
+ "@typescript-eslint/eslint-plugin": "^5.4.0",
74
+ "@typescript-eslint/parser": "^5.4.0",
75
+ "chai": "^4.2.0",
76
+ "chai-http": "^4.3.0",
77
+ "eslint": "^8.12.0",
78
+ "eslint-config-oclif": "^4.0",
79
+ "eslint-config-oclif-typescript": "^1.0.2",
80
+ "fs-extra": "^10.0.1",
81
+ "globby": "^10.0.2",
82
+ "husky": ">=6",
83
+ "lint-staged": ">=10",
84
+ "mocha": "^5.2.0",
85
+ "mock-fs": "^5.1.2",
86
+ "nock": "^13.2.2",
87
+ "nyc": "^14.1.1",
88
+ "pre-commit": "^1.2.2",
89
+ "prettier": "^2.4.1",
90
+ "ts-node": "^8",
91
+ "typescript": "^5.6.2"
92
+ },
93
+ "engines": {
94
+ "node": ">=14.0.0"
95
+ },
96
+ "files": [
97
+ "/bin",
98
+ "/npm-shrinkwrap.json",
99
+ "/oclif.manifest.json",
100
+ "/src",
101
+ "/lib"
102
+ ],
103
+ "homepage": "https://github.com/learnpack/learnpack-cli",
104
+ "keywords": [
105
+ "oclif"
106
+ ],
107
+ "license": "UNLICENSED",
108
+ "main": "lib/index.js",
109
+ "types": "lib/index.d.ts",
110
+ "oclif": {
111
+ "commands": "./lib/commands",
112
+ "bin": "learnpack",
113
+ "plugins": [
114
+ "@oclif/plugin-help",
115
+ "@oclif/plugin-plugins",
116
+ "@oclif/plugin-warn-if-update-available"
117
+ ],
118
+ "permanent_plugins": [
119
+ "@oclif/plugin-help",
120
+ "@oclif/plugin-plugins",
121
+ "@oclif/plugin-warn-if-update-available"
122
+ ]
123
+ },
124
+ "repository": {
125
+ "type": "git",
126
+ "url": "git+https://github.com/learnpack/learnpack-cli.git"
127
+ },
128
+ "pre-commit": {
129
+ "silent": true,
130
+ "run": [
131
+ "pre"
132
+ ]
133
+ },
134
+ "scripts": {
135
+ "tsc": "tsc -b",
136
+ "postpack": "rm -f oclif.manifest.json && eslint . --ext .ts --config .eslintrc",
137
+ "prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme",
138
+ "pre": "node ./test/precommit/index.ts",
139
+ "test": "NODE_ENV=test nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
140
+ "version": "oclif-dev readme && git add README.md",
141
+ "prepare": "husky install"
142
+ },
143
+ "lint-staged": {
144
+ "*.{js,ts}": [
145
+ "eslint --cache --fix"
146
+ ],
147
+ "*.{js,css,md,ts}": "prettier --write"
148
+ },
149
+ "directories": {
150
+ "test": "test"
151
+ }
152
+ }