Skip to content

Commit

Permalink
feat: initialize typescript project
Browse files Browse the repository at this point in the history
  • Loading branch information
annybs committed Oct 11, 2021
1 parent 30f9082 commit b517883
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/dist
/node_modules
9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"@edge/eslint-config-typescript"
]
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/dist/**/*.tsbuildinfo
/node_modules
/package-lock.json
2 changes: 2 additions & 0 deletions dist/lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const _default: {};
export default _default;
3 changes: 3 additions & 0 deletions dist/lib/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"use strict";
exports.__esModule = true;
exports["default"] = {};
4 changes: 4 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright (C) 2021 Edge Network Technologies Limited
// Use of this source code is governed by a GNU GPL-style license
// that can be found in the LICENSE.md file. All rights reserved.
export default {}
24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "@edge/index-utils",
"version": "0.1.0",
"description": "Utility library for Index API",
"main": "dist/lib/index.js",
"author": "Edge Network <core@edge.network>",
"contributors": [
"Aneurin \"Anny\" Barker Snook <aneurin@edge.network>"
],
"license": "SEE LICENSE IN LICENSE.md",
"scripts": {
"build": "tsc",
"lint": "eslint --ext .ts src || true",
"lint:fix": "eslint --fix --ext .ts src",
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"@edge/eslint-config-typescript": "^0.1.1",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"eslint": "^7.32.0",
"typescript": "^4.4.3"
}
}
25 changes: 25 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"composite": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"module": "commonjs",
"moduleResolution": "node",
"noImplicitAny": true,
"outDir": "dist",
"preserveConstEnums": true,
"removeComments": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true
},
"include": [
"lib/**/*",
],
"exclude": [
"node_modules"
]
}

0 comments on commit b517883

Please sign in to comment.