@learnpack/learnpack 5.0.7 → 5.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +17 -17
- package/bin/run +17 -17
- package/bin/run.cmd +3 -3
- package/lib/commands/audit.js +34 -22
- package/lib/commands/clean.js +3 -3
- package/lib/commands/download.js +3 -3
- package/lib/commands/login.js +3 -3
- package/lib/commands/logout.js +3 -3
- package/lib/managers/config/index.d.ts +10 -0
- package/lib/managers/config/index.js +3 -1
- package/oclif.manifest.json +1 -1
- package/package.json +152 -152
- package/src/commands/audit.ts +449 -443
- package/src/commands/clean.ts +29 -29
- package/src/commands/download.ts +61 -61
- package/src/commands/login.ts +42 -42
- package/src/commands/logout.ts +43 -43
- package/src/commands/publish.ts +249 -249
- package/src/commands/test.ts +85 -85
- package/src/index.ts +1 -1
- package/src/managers/config/allowed_files.ts +29 -29
- package/src/managers/config/index.ts +6 -4
- package/src/managers/gitpod.ts +84 -84
- package/src/managers/server/index.ts +78 -78
- package/src/managers/telemetry.ts +353 -353
- package/src/managers/test.ts +83 -83
- package/src/models/audit.ts +16 -16
- package/src/models/config-manager.ts +23 -23
- package/src/models/counter.ts +11 -11
- package/src/models/errors.ts +22 -22
- package/src/models/exercise-obj.ts +29 -29
- package/src/models/file.ts +5 -5
- package/src/models/findings.ts +18 -18
- package/src/models/flags.ts +10 -10
- package/src/models/front-matter.ts +11 -11
- package/src/models/gitpod-data.ts +19 -19
- package/src/models/language.ts +4 -4
- package/src/models/package.ts +7 -7
- package/src/models/plugin-config.ts +17 -17
- package/src/models/success-types.ts +1 -1
- package/src/plugin/command/compile.ts +17 -17
- package/src/plugin/command/test.ts +30 -30
- package/src/plugin/index.ts +6 -6
- package/src/plugin/plugin.ts +94 -94
- package/src/plugin/utils.ts +87 -87
- package/src/types/node-fetch.d.ts +1 -1
- package/src/ui/download.ts +71 -71
- package/src/utils/BaseCommand.ts +48 -48
- package/src/utils/SessionCommand.ts +43 -43
- package/src/utils/audit.ts +393 -393
- package/src/utils/errors.ts +117 -117
- package/src/utils/exercisesQueue.ts +51 -51
- package/src/utils/fileQueue.ts +199 -199
- package/src/utils/misc.ts +23 -23
- package/src/utils/osOperations.ts +79 -79
- package/src/utils/templates/gitignore.txt +19 -19
- package/src/utils/templates/incremental/.learn/exercises/01-hello-world/README.es.md +24 -24
- package/src/utils/templates/incremental/.learn/exercises/01-hello-world/README.md +24 -24
- package/src/utils/templates/incremental/.vscode/schema.json +121 -121
- package/src/utils/templates/incremental/.vscode/settings.json +13 -13
- package/src/utils/templates/incremental/README.ejs +4 -4
- package/src/utils/templates/incremental/README.es.ejs +4 -4
- package/src/utils/templates/isolated/.vscode/schema.json +121 -121
- package/src/utils/templates/isolated/.vscode/settings.json +13 -13
- package/src/utils/templates/isolated/README.ejs +4 -4
- package/src/utils/templates/isolated/README.es.ejs +4 -4
- package/src/utils/templates/no-grading/README.ejs +4 -4
- package/src/utils/templates/no-grading/README.es.ejs +4 -4
- package/src/utils/validators.ts +18 -18
- 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.
|
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.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
|
+
}
|