lettersoup 1.0.0 → 1.0.2
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.
- package/README.md +13 -2
- package/package.json +7 -3
- package/tsconfig.json +7 -4
package/README.md
CHANGED
|
@@ -2,15 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
Algorithm for make letterSoups (sopa de letras)
|
|
4
4
|
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i lettersoup
|
|
9
|
+
```
|
|
5
10
|
|
|
6
11
|
## Import/Examples
|
|
7
12
|
|
|
8
13
|
```Javascript
|
|
9
|
-
import
|
|
14
|
+
import { WordSearch } from 'letterSoup'
|
|
10
15
|
|
|
11
16
|
const listWords = ['Doctor', 'Dog', 'Banana']
|
|
12
17
|
|
|
13
|
-
const
|
|
18
|
+
const {
|
|
19
|
+
getPuzzle,
|
|
20
|
+
getWords
|
|
21
|
+
} = new WordSearch(wordsArray)
|
|
22
|
+
|
|
23
|
+
const puzzle = getPuzzle()
|
|
24
|
+
const words = getWords()
|
|
14
25
|
```
|
|
15
26
|
|
|
16
27
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lettersoup",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "generate letterSoup",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
6
7
|
"scripts": {
|
|
7
|
-
"
|
|
8
|
+
"build": "tsc --project tsconfig.json",
|
|
8
9
|
"test": "jest"
|
|
9
10
|
},
|
|
10
11
|
"keywords": [
|
|
@@ -22,5 +23,8 @@
|
|
|
22
23
|
"ts-jest": "^29.2.2",
|
|
23
24
|
"ts-node": "^10.9.2",
|
|
24
25
|
"typescript": "^5.5.3"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"npm": "^10.8.3"
|
|
25
29
|
}
|
|
26
30
|
}
|
package/tsconfig.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
/* Modules */
|
|
28
28
|
"module": "commonjs", /* Specify what module code is generated. */
|
|
29
|
-
"rootDir": "./", /* Specify the root folder within your source files. */
|
|
29
|
+
// "rootDir": "./src/", /* Specify the root folder within your source files. */
|
|
30
30
|
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
31
31
|
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
32
32
|
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
50
50
|
|
|
51
51
|
/* Emit */
|
|
52
|
-
|
|
52
|
+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
53
53
|
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
54
54
|
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
55
55
|
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
|
56
56
|
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
57
57
|
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
|
58
|
-
|
|
58
|
+
"outDir": "./dist", /* Specify an output folder for all emitted files. */
|
|
59
59
|
// "removeComments": true, /* Disable emitting comments. */
|
|
60
60
|
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
61
61
|
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
@@ -104,5 +104,8 @@
|
|
|
104
104
|
/* Completeness */
|
|
105
105
|
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
106
106
|
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
107
|
-
}
|
|
107
|
+
},
|
|
108
|
+
"include": [
|
|
109
|
+
"./src/"
|
|
110
|
+
]
|
|
108
111
|
}
|