From 0cbdb1f7fcb3e3c5acf3bc771c3821a689c1dcc8 Mon Sep 17 00:00:00 2001 From: Trianta <56975502+Trimutex@users.noreply.github.com> Date: Tue, 27 Aug 2024 23:28:36 -0500 Subject: [PATCH] core: add typescript and npm --- .gitignore | 11 +++++++++++ package-lock.json | 29 +++++++++++++++++++++++++++++ package.json | 18 ++++++++++++++++++ tsconfig.json | 8 ++++++++ 4 files changed, 66 insertions(+) create mode 100644 .gitignore create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0fb9ddb --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules + +# production +/build + +# typescript +*.tsbuildinfo +next-env.d.ts diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..255b297 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,29 @@ +{ + "name": "trianta.dev", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "trianta.dev", + "version": "0.1.0", + "license": "MIT", + "dependencies": { + "typescript": "^5.5.4" + } + }, + "node_modules/typescript": { + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", + "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..e8ba880 --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "trianta.dev", + "version": "0.1.0", + "description": "My personal website", + "main": "index.html", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://lab.trianta.dev/Trianta/trianta.dev.git" + }, + "author": "trianta", + "license": "MIT", + "dependencies": { + "typescript": "^5.5.4" + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..aadd7b2 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "outDir": "./built", + "allowJs": true, + "target": "es5" + }, + "include": ["./src/**/*"] +}