-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up boilerplate package using pnpm, eslint and typescript
- Loading branch information
Showing
8 changed files
with
1,124 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
/dist | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
.vscode | ||
|
||
# release configuration (used for token) | ||
.npmrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import globals from "globals"; | ||
import pluginJs from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
|
||
/** @type {import('eslint').Linter.Config} */ | ||
export default [ | ||
{ ignores: ["dist/"] }, | ||
{ files: ["**/*.{ts,tsx}"] }, | ||
{ languageOptions: { globals: globals.browser } }, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const add = (a: number, b: number) => a + b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"name": "three-panorama-controls", | ||
"version": "1.0.0", | ||
"description": "Panorama controls for three.js.", | ||
"author": "Fawad Ali <[email protected]>", | ||
"license": "Apache-2.0", | ||
"homepage": "https://github.com/9inpachi/three-panorama-controls#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/9inpachi/three-panorama-controls.git" | ||
}, | ||
"keywords": [ | ||
"three.js", | ||
"three", | ||
"panorama", | ||
"controls", | ||
"react", | ||
"fiber" | ||
], | ||
"files": [ | ||
"dist" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/9inpachi/three-panorama-controls/issues" | ||
}, | ||
"main": "./dist/cjs/index.js", | ||
"module": "./dist/esm/index.js", | ||
"types": "./dist/types/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/types/index.d.ts", | ||
"import": "./dist/esm/index.js", | ||
"require": "./dist/cjs/index.js" | ||
} | ||
}, | ||
"scripts": { | ||
"clean": "rm -rf ./dist", | ||
"tsc": "tsc", | ||
"lint": "eslint .", | ||
"prepublishOnly": "pnpm build", | ||
"dev": "pnpm clean && tsc --watch", | ||
"build": "pnpm clean && pnpm build:cjs && pnpm build:esm && pnpm build:types", | ||
"build:cjs": "pnpm tsc --project ./tsconfig.cjs.json --outDir ./dist/cjs/ --declaration false", | ||
"build:esm": "pnpm tsc --project ./tsconfig.esm.json --outDir ./dist/esm/ --declaration false", | ||
"build:types": "pnpm tsc --emitDeclarationOnly true --declarationDir ./dist/types" | ||
}, | ||
"peerDependencies": { | ||
"three": ">= 0.160" | ||
}, | ||
"devDependencies": { | ||
"@eslint/js": "^9.10.0", | ||
"eslint": "^9.10.0", | ||
"globals": "^15.9.0", | ||
"typescript": "^5.5.4", | ||
"typescript-eslint": "^8.4.0" | ||
} | ||
} |
Oops, something went wrong.