From e502d18ae45621e5c0e9df5383aba19523c3816a Mon Sep 17 00:00:00 2001 From: Dennis Thompson Date: Mon, 7 Sep 2020 11:43:55 -0700 Subject: [PATCH] Initial commit --- .editorconfig | 9 +++++ .gitignore | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++ LICENSE | 21 ++++++++++ README.md | 10 +++++ package.json | 38 ++++++++++++++++++ src/index.ts | 1 + tsconfig.json | 10 +++++ 7 files changed, 193 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 package.json create mode 100644 src/index.ts create mode 100644 tsconfig.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..81eba8c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +indent_style = space +indent_size = 4 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +end_of_line = lf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6704566 --- /dev/null +++ b/.gitignore @@ -0,0 +1,104 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# Next.js build output +.next + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and *not* Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8e33ee4 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Dennis Thompson + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..2be8f30 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# My Typescript Template + +A small template that I use to build node typescript-based projects. + +## Stack + +* `typescript` +* `@pika/pack` +* `eslint` +* `prettier` diff --git a/package.json b/package.json new file mode 100644 index 0000000..a0788ce --- /dev/null +++ b/package.json @@ -0,0 +1,38 @@ +{ + "name": "your-module", + "version": "1.0.0", + "description": "Some awesome description about your module", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "lint": "eslint 'src/index.{ts,js,tsx}'" + }, + "keywords": [], + "repository": { + "url": "", + "type": "git" + }, + "author": "Dennis Thompson", + "license": "MIT", + "devDependencies": { + "@djthoms/eslint-config": "^3.0.0", + "@djthoms/prettier-config": "^2.0.0", + "@pika/pack": "^0.5.0", + "@pika/plugin-build-node": "^0.9.2", + "@pika/plugin-ts-standard-pkg": "^0.9.2", + "eslint": "^7.7.0", + "prettier": "^2.1.1", + "typescript": "^4.0.2" + }, + "prettier": "@djthoms/prettier-config", + "eslintConfig": { + "env": { + "node": true + }, + "extends": [ + "@djthoms/eslint-config", + "@djthoms/eslint-config/esmodules", + "@djthoms/eslint-config/typescript" + ] + } +} diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..9d67fe5 --- /dev/null +++ b/src/index.ts @@ -0,0 +1 @@ +// create some magic here! diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..6a62461 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "downlevelIteration": true, + "esModuleInterop": true, + "target": "ESNext", + "module": "ES2020", + "moduleResolution": "node" + }, + "include": ["src/"] +}