Skip to content

Commit

Permalink
Merge pull request #70 from gzuidhof/zarr-weight-loss
Browse files Browse the repository at this point in the history
Remove ts-interface checking, add stats HTML, modern target
  • Loading branch information
gzuidhof authored Jan 19, 2021
2 parents dc696ed + 4bcb53e commit 8d4b64c
Show file tree
Hide file tree
Showing 8 changed files with 199 additions and 130 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ typings/

dist/
typedocs/
.DS_store
stats*.html
205 changes: 176 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,15 @@
"rollup": "^1.32.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.24.3",
"rollup-plugin-visualizer": "^4.2.0",
"serve-static": "^1.14.1",
"ts-interface-builder": "^0.2.1",
"ts-jest": "^23.10.5",
"ts-node": "^7.0.1",
"typedoc": "^0.15.8",
"typescript": "^3.8.3"
},
"dependencies": {
"numcodecs": "^0.1.0",
"p-queue": "6.2.0",
"ts-interface-checker": "^0.1.10"
"p-queue": "6.2.0"
}
}
24 changes: 15 additions & 9 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,32 @@ import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import typescript from 'rollup-plugin-typescript2';
import { terser } from 'rollup-plugin-terser';
import visualizer from 'rollup-plugin-visualizer';

const commonPlugins = () => [typescript({ useTsconfigDeclarationDir: true, objectHashIgnoreUnknownHack: true, }), commonjs(), resolve()];


export default [
{
input: { zarr: 'src/zarr.ts', core: 'src/zarr-core.ts' },
output: {
output: [{
dir: 'dist/',
format: 'es',
entryFileNames: '[name].mjs',
sourcemap: true,
},
{
dir: 'dist/',
format: 'es',
entryFileNames: '[name].min.mjs',
sourcemap: true,
plugins: [terser()]
},
],
watch: {
include: 'src/**',
},
plugins: [typescript({ useTsconfigDeclarationDir: true }), commonjs(), resolve()],
plugins: [...commonPlugins(), visualizer({filename: "stats.html"}), visualizer({filename: "stats.min.html", sourcemap: true})],
},
{
input: 'src/zarr.ts',
Expand All @@ -31,13 +43,7 @@ export default [
},
],
plugins: [
typescript({
useTsconfigDeclarationDir: true,
// https://github.com/ezolenko/rollup-plugin-typescript2/issues/105
objectHashIgnoreUnknownHack: true,
}),
commonjs(),
resolve(),
...commonPlugins()
],
},
];
56 changes: 0 additions & 56 deletions src/types-ti.ts

This file was deleted.

Loading

0 comments on commit 8d4b64c

Please sign in to comment.