first
Showing
.eslintignore
0 → 100644
.eslintrc.js
0 → 100644
.gitignore
0 → 100644
.gitlab-ci.yml
0 → 100644
.npmignore
0 → 100644
.prettierrc
0 → 100644
LICENSE
0 → 100644
index.ts
0 → 100644
package-lock.json
0 → 100644
This source diff could not be displayed because it is too large. You can view the blob instead.
package.json
0 → 100644
{ | ||
"name": "myproject", | ||
"description": "myproject-desc", | ||
"version": "1.0.0", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"lint": "eslint --fix .", | ||
"compile:cjs": "esbuild index.ts --outfile=dist/index.cjs --bundle --sourcemap --platform=node --target=es2019 --external:js-base64", | ||
"compile:esm": "esbuild index.ts --outfile=dist/index.mjs --bundle --sourcemap --platform=neutral --target=esnext --external:js-base64", | ||
"compile:types": "tsc --emitDeclarationOnly --declaration", | ||
"build": "rimraf dist && npm run compile:cjs && npm run compile:esm && npm run compile:types", | ||
"test": "jest --passWithNoTests", | ||
"start": "node dist/index.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://code.mycard.moe/3rdeye/myproject.git" | ||
}, | ||
"author": "Nanahira <nanahira@momobako.com>", | ||
"license": "MIT", | ||
"keywords": [], | ||
"bugs": { | ||
"url": "https://code.mycard.moe/3rdeye/myproject/issues" | ||
}, | ||
"homepage": "https://code.mycard.moe/3rdeye/myproject", | ||
"jest": { | ||
"moduleFileExtensions": [ | ||
"js", | ||
"json", | ||
"ts" | ||
], | ||
"rootDir": "tests", | ||
"testRegex": ".*\\.spec\\.ts$", | ||
"transform": { | ||
"^.+\\.(t|j)s$": "ts-jest" | ||
}, | ||
"collectCoverageFrom": [ | ||
"**/*.(t|j)s" | ||
], | ||
"coverageDirectory": "../coverage", | ||
"testEnvironment": "node" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^29.4.0", | ||
"@types/node": "^18.13.0", | ||
"@typescript-eslint/eslint-plugin": "^5.51.0", | ||
"@typescript-eslint/parser": "^5.51.0", | ||
"esbuild": "^0.17.7", | ||
"esbuild-register": "^3.4.2", | ||
"eslint": "8.22.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"jest": "^29.4.2", | ||
"prettier": "^2.8.4", | ||
"rimraf": "^4.1.2", | ||
"ts-jest": "^29.0.5", | ||
"typescript": "^4.9.5" | ||
}, | ||
"dependencies": { | ||
"js-base64": "^3.7.5" | ||
} | ||
} |
src/utils.ts
0 → 100644
tests/sample.spec.ts
0 → 100644
tsconfig.json
0 → 100644
Please register or sign in to comment