Skip to content

Commit

Permalink
chore: Set up TypeScript.
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern committed Jun 21, 2023
1 parent 76fe195 commit fb74048
Show file tree
Hide file tree
Showing 5 changed files with 170 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dist/
node_modules/
129 changes: 129 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "dexonline-scraper",
"description": "A lightweight Dexonline.ro page scraper to fetch information about words in the Romanian language.",

"license": "MIT",
"version": "0.1.0",

"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
"keywords": [
"javascript",
"typescript",
Expand All @@ -17,7 +18,6 @@
"language",
"dictionary"
],

"homepage": "https://github.com/wordcollector/dexonline-scraper",
"bugs": {
"url": "https://github.com/wordcollector/dexonline-scraper/issues",
Expand All @@ -33,5 +33,13 @@
"repository": {
"type": "git",
"url": "https://github.com/wordcollector/dexonline-scraper"
},
"scripts": {
"build": "tsc",
"start": "tsc && node dist/index.js"
},
"devDependencies": {
"rome": "12.1.3",
"typescript": "^5.1.3"
}
}
Empty file added src/index.ts
Empty file.
29 changes: 29 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "NodeNext",
"outDir": "dist",
"declaration": true,
"declarationDir": "dist",
"allowJs": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"checkJs": false,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noUncheckedIndexedAccess": true,
"strict": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"strictNullChecks": true,
"suppressExcessPropertyErrors": false,
"suppressImplicitAnyIndexErrors": false
},
"compileOnSave": true,
"include": ["src"]
}

0 comments on commit fb74048

Please sign in to comment.