init the project.

This commit is contained in:
ykob 2022-04-22 22:12:51 +09:00
commit e32466670d
9 changed files with 130 additions and 0 deletions

21
.eslintrc.js Normal file
View File

@ -0,0 +1,21 @@
module.exports = {
env: {
browser: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
rules: {
'no-console': 'error',
'no-debugger': 'error',
},
}

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
dist
node_modules

4
.prettierignore Normal file
View File

@ -0,0 +1,4 @@
dist
node_modules
package-lock.json
yarn.lock

5
.prettierrc.json Normal file
View File

@ -0,0 +1,5 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
}

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 Yoichi Kobayashi
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.

17
README.md Normal file
View File

@ -0,0 +1,17 @@
# js-creative-util
Private JavaScript utility functions for Creative Coding created by @ykob
## Install
### npm
```
npm i @ykob/js-creative-util
```
### yarn
```
yarn add @ykob/js-creative-util
```

46
package.json Normal file
View File

@ -0,0 +1,46 @@
{
"name": "@ykob/js-creative-util",
"version": "1.0.0",
"description": "Private JavaScript utility functions for Creative Coding created by @ykob",
"author": {
"name": "Yoichi Kobayashi",
"email": "info@tplh.net",
"url": "https://www.tplh.net/"
},
"license": "MIT",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/ykob/js-util.git"
},
"private": false,
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/",
"LICENSE"
],
"scripts": {
"prebuild": "rimraf dist",
"build": "tsc -p .",
"lint:eslint": "eslint --ext \".js,.ts\" --ignore-path .gitignore . --fix",
"lint:prettier": "prettier --write src/**/*",
"lint": "npm run lint:prettier && npm run lint:eslint",
"prepare": "npm run build"
},
"devDependencies": {
"@types/jest": "^27.4.1",
"@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.13.0",
"eslint": "^8.10.0",
"eslint-config-prettier": "^8.5.0",
"prettier": "2.5.1",
"typescript": "^4.6.2"
},
"keywords": [
"JavaScript",
"TypeScript"
]
}

0
src/index.ts Normal file
View File

14
tsconfig.json Normal file
View File

@ -0,0 +1,14 @@
{
"compilerOptions": {
"declaration": true,
"esModuleInterop": true,
"module": "ES6",
"moduleResolution": "node",
"outDir": "./dist",
"sourceMap": true,
"strict": true,
"target": "ES6"
},
"exclude": ["dist", "node_modules", "**/*.spec.ts"],
"include": ["src/**/*"]
}