Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
#22 Update tsconfig.json, rollup.config.mjs, .gitgnore, and package.j…
Browse files Browse the repository at this point in the history
…son.
  • Loading branch information
blwatkins committed Dec 29, 2023
1 parent 237e52c commit 41b2c3c
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ node_modules/
package-lock.json

# generated files
out/
dist/
zip/

# WebStorm
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"main": "sketch.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rm -r out zip; rollup --config",
"dev": "rm -r out zip; rollup --config --watch"
"build": "rm -r ./dist ./zip; rollup --config",
"dev": "rm -r ./dist ./zip; rollup --config --watch"
},
"repository": {
"type": "git",
Expand Down
10 changes: 5 additions & 5 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import zip from 'rollup-plugin-zip';
import { readFileSync } from 'node:fs';

export default {
input: 'src/sketch.ts',
input: './src/sketch.ts',
output: {
dir: 'out',
dir: './dist',
format: 'umd',
name: 'GenerativeArtTemplate',
sourcemap: true,
Expand All @@ -44,7 +44,7 @@ export default {
extensions: ['.ts']
}),
eslint({
include: ['src/**/*.ts'],
include: ['./src/**/*.ts'],
throwOnError: true,
throwOnWarning: true
}),
Expand All @@ -61,12 +61,12 @@ export default {
summaryOnly: true
}),
dev({
dirs: ['out'],
dirs: ['./dist'],
host: '127.0.0.1',
spa: true
}),
zip({
dir: 'zip'
dir: './zip'
})
]
};
Expand Down
35 changes: 27 additions & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
{
"compilerOptions": {
"module": "esnext",
/* Language and Environment */
"target": "es6",

/* Modules */
"module": "es6",
"moduleResolution": "node",
"noImplicitAny": true,
"removeComments": false,
"isolatedModules": true,
"rootDir": "./src",

/* Emit */
"outDir": "./dist",
"sourceMap": true,
"removeComments": true,
"noEmitOnError": true,
"preserveConstEnums": true,

/* Interop Constraints */
"isolatedModules": true,
"esModuleInterop": true,
"sourceMap": true,
"outDir": "out"
},
"include": ["src/**/*.ts"]
"forceConsistentCasingInFileNames": true,

/* Type Checking */
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noImplicitOverride": true,
"allowUnreachableCode": false
}
}

0 comments on commit 41b2c3c

Please sign in to comment.