Skip to content

Commit

Permalink
package generation conf
Browse files Browse the repository at this point in the history
  • Loading branch information
nclslbrn committed Dec 9, 2023
1 parent 68a2bca commit ed0ada7
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 12 deletions.
27 changes: 25 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
{
"name": "canvas-colors",
"description": "A package to get random palette from iconic painting of art history",
"author": "Nicolas Lebrun",
"license": "MIT",
"homepage": "<YOUR_SITE_URL>",
"repository": {
"type": "git",
"url": "https://github.com/nclslbrn/canvas-colors.git"
},
"bugs": {
"url": "https://github.com/nclslbrn/canvas-colors/issues"
},
"keywords": [
"colors",
"creativecoding",
"palette",
"colorscheme",
"art-history",
"generativeart"
],
"version": "0.0.0",
"type": "module",
"main": "./dist/canvas-colors.umd.cjs",
Expand All @@ -16,9 +35,10 @@
],
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"test": "jest",
"preview": "vite preview",
"test": "jest"
"build": "tsc --project tsconfig.build.json && vite build",
"deploy": "npm publish"
},
"devDependencies": {
"@types/jest": "^29.5.11",
Expand All @@ -28,5 +48,8 @@
"typescript": "^5.2.2",
"vite": "^5.0.0",
"vite-plugin-dts": "^3.6.4"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/@nclslbrn"
}
}
5 changes: 0 additions & 5 deletions src/subtract.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/sum.ts

This file was deleted.

24 changes: 24 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src"],
"exclude": ["__tests__/*.ts"]
}

0 comments on commit ed0ada7

Please sign in to comment.