@learnpack/learnpack 5.0.231 → 5.0.234

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.
@@ -21140,7 +21140,8 @@ function Y7() {
21140
21140
  new: ne,
21141
21141
  } = Cd(["description", "duration", "plan", "purpose", "language", "new"])
21142
21142
  if (
21143
- (N &&
21143
+ (ne && ne.toLowerCase().trim() === "true" && b(),
21144
+ N &&
21144
21145
  (console.log("description", N),
21145
21146
  a({ description: N, currentStep: "duration" })),
21146
21147
  I && N && !isNaN(parseInt(I)))
@@ -21155,8 +21156,7 @@ function Y7() {
21155
21156
  K &&
21156
21157
  K.length > 0 &&
21157
21158
  q7.includes(K) &&
21158
- a({ purpose: K, currentStep: "hasContentIndex" }),
21159
- ne && ne.toLowerCase().trim() === "true" && b()
21159
+ a({ purpose: K, currentStep: "hasContentIndex" })
21160
21160
  },
21161
21161
  O = async () => {
21162
21162
  try {
@@ -10,7 +10,7 @@
10
10
  />
11
11
 
12
12
  <title>Learnpack Creator: Craft tutorials in seconds!</title>
13
- <script type="module" crossorigin src="/creator/assets/index-BjBYI-9r.js"></script>
13
+ <script type="module" crossorigin src="/creator/assets/index-CFK5bQP2.js"></script>
14
14
  <link rel="stylesheet" crossorigin href="/creator/assets/index-DmpsXknz.css">
15
15
  </head>
16
16
  <body>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@learnpack/learnpack",
3
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.231",
4
+ "version": "5.0.234",
5
5
  "author": "Alejandro Sanchez @alesanchezr",
6
6
  "contributors": [
7
7
  {
@@ -157,7 +157,7 @@
157
157
  "copy-assets": "npx cpy src/creatorDist/**/* lib/creatorDist --parents --verbose",
158
158
  "tsc": "tsc -b",
159
159
  "postpack": "rm -f oclif.manifest.json && eslint . --ext .ts --config .eslintrc",
160
- "prepack": "rm -rf lib && tsc -b && npm run copy-assets",
160
+ "prepack": "rm -rf lib && tsc -b && npm run copy-assets ",
161
161
  "pre": "node ./test/precommit/index.ts",
162
162
  "test": "NODE_ENV=test nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
163
163
  "version": "oclif-dev readme && git add README.md",
@@ -106,6 +106,12 @@ function App() {
106
106
  "language",
107
107
  "new",
108
108
  ])
109
+
110
+ if (newParam && newParam.toLowerCase().trim() === "true") {
111
+ cleanAll()
112
+ }
113
+
114
+
109
115
  if (description) {
110
116
  console.log("description", description)
111
117
  setFormState({
@@ -144,10 +150,6 @@ function App() {
144
150
  currentStep: "hasContentIndex",
145
151
  })
146
152
  }
147
-
148
- if (newParam && newParam.toLowerCase().trim() === "true") {
149
- cleanAll()
150
- }
151
153
  }
152
154
 
153
155
  const handleCreateTutorial = async () => {
@@ -21140,7 +21140,8 @@ function Y7() {
21140
21140
  new: ne,
21141
21141
  } = Cd(["description", "duration", "plan", "purpose", "language", "new"])
21142
21142
  if (
21143
- (N &&
21143
+ (ne && ne.toLowerCase().trim() === "true" && b(),
21144
+ N &&
21144
21145
  (console.log("description", N),
21145
21146
  a({ description: N, currentStep: "duration" })),
21146
21147
  I && N && !isNaN(parseInt(I)))
@@ -21155,8 +21156,7 @@ function Y7() {
21155
21156
  K &&
21156
21157
  K.length > 0 &&
21157
21158
  q7.includes(K) &&
21158
- a({ purpose: K, currentStep: "hasContentIndex" }),
21159
- ne && ne.toLowerCase().trim() === "true" && b()
21159
+ a({ purpose: K, currentStep: "hasContentIndex" })
21160
21160
  },
21161
21161
  O = async () => {
21162
21162
  try {
@@ -10,7 +10,7 @@
10
10
  />
11
11
 
12
12
  <title>Learnpack Creator: Craft tutorials in seconds!</title>
13
- <script type="module" crossorigin src="/creator/assets/index-BjBYI-9r.js"></script>
13
+ <script type="module" crossorigin src="/creator/assets/index-CFK5bQP2.js"></script>
14
14
  <link rel="stylesheet" crossorigin href="/creator/assets/index-DmpsXknz.css">
15
15
  </head>
16
16
  <body>
@@ -1 +0,0 @@
1
- {"version":"5.0.231","commands":{"audit":{"id":"audit","description":"learnpack audit is the command in charge of creating an auditory of the repository\n...\nlearnpack audit checks for the following information in a repository:\n 1. The configuration object has slug, repository and description. (Error)\n 2. The command learnpack clean has been run. (Error)\n 3. If a markdown or test file doesn't have any content. (Error)\n 4. The links are accessing to valid servers. (Error)\n 5. The relative images are working (If they have the shortest path to the image or if the images exists in the assets). (Error)\n 6. The external images are working (If they are pointing to a valid server). (Error)\n 7. The exercises directory names are valid. (Error)\n 8. If an exercise doesn't have a README file. (Error)\n 9. The exercises array (Of the config file) has content. (Error)\n 10. The exercses have the same translations. (Warning)\n 11. The .gitignore file exists. (Warning)\n 12. If there is a file within the exercises folder but not inside of any particular exercise's folder. (Warning)\n","pluginName":"@learnpack/learnpack","pluginType":"core","aliases":[],"flags":{"strict":{"name":"strict","type":"boolean","char":"s","description":"strict mode","allowNo":false}},"args":[]},"breakToken":{"id":"breakToken","description":"Break the token","pluginName":"@learnpack/learnpack","pluginType":"core","aliases":[],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip all prompts and initialize an empty project","allowNo":false},"grading":{"name":"grading","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"clean":{"id":"clean","description":"Clean the configuration object\n ...\n Extra documentation goes here\n ","pluginName":"@learnpack/learnpack","pluginType":"core","aliases":[],"flags":{},"args":[]},"download":{"id":"download","description":"Describe the command here\n...\nExtra documentation goes here\n","pluginName":"@learnpack/learnpack","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"package","description":"The unique string that identifies this package on learnpack","required":false,"hidden":false}]},"init":{"id":"init","description":"Create a new learning package: Book, Tutorial or Exercise","pluginName":"@learnpack/learnpack","pluginType":"core","aliases":[],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip all prompts and initialize an empty project","allowNo":false},"grading":{"name":"grading","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"login":{"id":"login","description":"Describe the command here\n ...\n Extra documentation goes here\n ","pluginName":"@learnpack/learnpack","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"package","description":"The unique string that identifies this package on learnpack","required":false,"hidden":false}]},"logout":{"id":"logout","description":"Describe the command here\n ...\n Extra documentation goes here\n ","pluginName":"@learnpack/learnpack","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"package","description":"The unique string that identifies this package on learnpack","required":false,"hidden":false}]},"publish":{"id":"publish","description":"Builds the project by copying necessary files and directories into a zip file","pluginName":"@learnpack/learnpack","pluginType":"core","aliases":[],"flags":{"strict":{"name":"strict","type":"boolean","char":"s","description":"strict mode","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"serve":{"id":"serve","description":"Runs a small server to build tutorials","pluginName":"@learnpack/learnpack","pluginType":"core","aliases":[],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip all prompts and initialize an empty project","allowNo":false},"port":{"name":"port","type":"option","char":"p","description":"server port"},"host":{"name":"host","type":"option","char":"h","description":"server host"},"debug":{"name":"debug","type":"boolean","char":"d","description":"debugger mode for more verbage","allowNo":false}},"args":[]},"start":{"id":"start","description":"Runs a small server with all the exercise instructions","pluginName":"@learnpack/learnpack","pluginType":"core","aliases":[],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip all prompts and initialize an empty project","allowNo":false},"port":{"name":"port","type":"option","char":"p","description":"server port"},"host":{"name":"host","type":"option","char":"h","description":"server host"},"disableGrading":{"name":"disableGrading","type":"boolean","char":"D","description":"disble grading functionality","allowNo":false},"watch":{"name":"watch","type":"boolean","char":"w","description":"Watch for file changes","allowNo":false},"editor":{"name":"editor","type":"option","char":"e","description":"[preview, extension]","options":["extension","preview"]},"version":{"name":"version","type":"option","char":"v","description":"E.g: 1.0.1"},"grading":{"name":"grading","type":"option","char":"g","description":"[isolated, incremental]","options":["isolated","incremental"]},"debug":{"name":"debug","type":"boolean","char":"d","description":"debugger mode for more verbage","allowNo":false}},"args":[]},"test":{"id":"test","description":"Test exercises","pluginName":"@learnpack/learnpack","pluginType":"core","aliases":[],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip all prompts and initialize an empty project","allowNo":false}},"args":[{"name":"exerciseSlug","description":"The name of the exercise to test","required":false,"hidden":false}]},"translate":{"id":"translate","description":"List all the lessons, the user is able of select many of them to translate to the given languages","pluginName":"@learnpack/learnpack","pluginType":"core","aliases":[],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip all prompts and initialize an empty project","allowNo":false}},"args":[]}}}