jee-default 1.0.3 → 1.0.5

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.
Files changed (3) hide show
  1. package/bin/cli.js +26 -3
  2. package/package.json +1 -1
  3. package/readme.md +7 -0
package/bin/cli.js CHANGED
@@ -4,13 +4,36 @@ const fs = require("fs")
4
4
  const path = require("path")
5
5
 
6
6
  const TARGET = process.cwd()
7
- const SOURCE = path.join(__dirname, "..", "questionPractices")
7
+ const ROOT = path.join(__dirname, "..")
8
+ const ASSETS = [
9
+ "generate-question-illustration.sh",
10
+ "generate-question-practice-sheet.sh",
11
+ "pdf-to-slides.sh",
12
+ "question-illustration.js",
13
+ "question-practice-sheet.js",
14
+ "questionPractices",
15
+ 'readme.md'
16
+ ]
8
17
 
9
18
  console.log("🚀 jee-default: generating files...")
10
19
 
11
- copyDir(SOURCE, path.join(TARGET, "questionPractices"))
20
+ for (const item of ASSETS) {
21
+ const src = path.join(ROOT, item)
22
+ const dest = path.join(TARGET, item)
12
23
 
13
- console.log("✅ Done! questionPractices/ folder created.")
24
+ if (!fs.existsSync(src)) {
25
+ continue
26
+ }
27
+
28
+ if (fs.statSync(src).isDirectory()) {
29
+ copyDir(src, dest)
30
+ } else {
31
+ fs.copyFileSync(src, dest)
32
+ console.log(" +", item)
33
+ }
34
+ }
35
+
36
+ console.log("✅ Done! Generated package files.")
14
37
 
15
38
  function copyDir(src, dest) {
16
39
  fs.mkdirSync(dest, { recursive: true })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jee-default",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Generate DSA question practice sheets instantly",
5
5
  "main": "./bin/cli.js",
6
6
  "bin": {
package/readme.md ADDED
@@ -0,0 +1,7 @@
1
+ # How to download pdf
2
+ > Use the link and use the `curl -L -o source.pdf "Link"`
3
+ > Source becuase used in pdf-to-slide.
4
+ ```bash
5
+ ./pdf-to-slides.sh
6
+ ```
7
+ > automatic generate notes then do according to your.