Skip to content

Commit f4dbcc8

Browse files
committed
setup TypeScript project
1 parent 7892495 commit f4dbcc8

File tree

8 files changed

+133
-0
lines changed

8 files changed

+133
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
dist/

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/components.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "@cldn/components",
3+
"version": "0.0.0-dev",
4+
"description": "Base classes for web components",
5+
"main": "dist/index.js",
6+
"module": "dist/index.js",
7+
"types": "dist/index.d.ts",
8+
"type": "module",
9+
"files": [
10+
"dist/**.js",
11+
"dist/**.d.ts"
12+
],
13+
"scripts": {
14+
"build": "tsc",
15+
"test": "echo \"Error: no test specified\" && exit 1"
16+
},
17+
"repository": {
18+
"url": "github.com:cloudnode-pro/components"
19+
},
20+
"keywords": [
21+
"web",
22+
"components",
23+
"typed"
24+
],
25+
"author": "Cloudnode",
26+
"license": "LGPL-3.0",
27+
"bugs": {
28+
"url": "https://github.com/cloudnode-pro/components/issues"
29+
},
30+
"homepage": "https://github.com/cloudnode-pro/components#readme",
31+
"devDependencies": {
32+
"typescript": "^5.6.2"
33+
}
34+
}

tsconfig.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"include": [
3+
"src/**/*"
4+
],
5+
"compilerOptions": {
6+
/* Visit https://aka.ms/tsconfig to read more about this file */
7+
8+
"incremental": true,
9+
"target": "esnext",
10+
"module": "Node16",
11+
"moduleResolution": "Node16",
12+
"inlineSourceMap": true,
13+
"outDir": "./dist",
14+
"declaration": true,
15+
"removeComments": false,
16+
"importHelpers": true,
17+
"importsNotUsedAsValues": "remove",
18+
"stripInternal": true,
19+
"noEmitOnError": true,
20+
"allowSyntheticDefaultImports": true,
21+
"esModuleInterop": true,
22+
"forceConsistentCasingInFileNames": true,
23+
"strict": true,
24+
"noUnusedLocals": true,
25+
"noUnusedParameters": true,
26+
"noImplicitReturns": true,
27+
"noUncheckedIndexedAccess": true,
28+
"noImplicitOverride": true,
29+
"allowUnusedLabels": false,
30+
"allowUnreachableCode": false,
31+
"skipLibCheck": true
32+
}
33+
}

0 commit comments

Comments
 (0)