tauri-apps / tauri-inliner

Node utility to inline images, CSS and JavaScript for a web page - useful for mobile sites
MIT License
15 stars 4 forks source link

HELP WANTED! #1

Open nothingismagick opened 4 years ago

nothingismagick commented 4 years ago

This library, while good at what it does is very rough around the edges. It needs:

nothingismagick commented 4 years ago

We also need to update the README - we are currently pointing at a travis that we don't own.

milahu commented 3 years ago

thanks for the fork! here are some more ideas, in case someone is bored ; )

try to avoid typescript as implicit dependency of tap and ts-node

``` $ find node_modules/ -ipath '*/node_modules/typescript' node_modules/.pnpm/typescript@3.9.9/node_modules/typescript node_modules/.pnpm/tap@14.11.0/node_modules/typescript node_modules/.pnpm/ts-node@8.10.2_typescript@3.9.9/node_modules/typescript ```

try to reduce 24MB devel size in 700 packages

``` $ pnpx analyze-module-size -d 1 >module-size.d1.txt size: 2880k... with-dependencies: 2880k ├── treport@1.0.2, 16408k, 99 deps // used by tap ├── import-jsx@3.1.0, 10928k, 54 deps // used by tap ├── ink@2.7.1, 3620k, 33 deps // used by tap ├── @types/react@16.9.43, 2040k, 2 deps // used by tap ├── tap-parser@10.0.1, 928k, 4 deps // used by tap, tap-mocha-reporter ├── tap-yaml@1.0.0, 696k, 1 deps // used by tap, tap-parser, tap-mocha-reporter ├── yaml@1.10.0, 636k, 0 deps // used by tap, yaml, cosmiconfig ├── minipass@3.1.3, 52k, 0 deps └── signal-exit@3.0.3, 32k, 0 deps missing packages, that are referenced as dependent of an existing dependency ├── /istanbul-lib-instrument, 8688k, 25 deps // used by nyc ├── /tap-mocha-reporter, 1132k, 9 deps // used by tap ├── /normalize-package-data, 696k, 3 deps // used by read-pkg, npm, meow ├── /js-yaml, 332k, 1 deps // used by nyc, coveralls, eslint, svgo ├── /react, 276k, 5 deps ├── /istanbul-lib-source-maps, 132k, 2 deps ├── /coveralls, 108k, 1 deps ├── /mkdirp, 108k, 1 deps ├── /log-update/wrap-ansi, 104k, 3 deps ├── /yargs/wrap-ansi, 104k, 3 deps ├── /istanbul-lib-processinfo/cross-spawn, 88k, 1 deps ├── /make-dir, 88k, 1 deps ├── /nyc, 60k, 2 deps ├── /tough-cookie, 52k, 1 deps ├── /uri-js, 52k, 1 deps ├── /caching-transform/write-file-atomic, 32k, 1 deps ├── /foreground-child, 32k, 1 deps ├── /log-update/restore-cursor, 32k, 1 deps ├── /spawn-wrap, 32k, 1 deps ├── /write-file-atomic, 32k, 1 deps ├── /ink/ansi-styles, 24k, 1 deps ├── /slice-ansi/ansi-styles, 24k, 1 deps ├── /treport/ansi-styles, 24k, 1 deps ├── /wrap-ansi/ansi-styles, 24k, 1 deps └── /istanbul-lib-report/supports-color, 20k, 1 deps ```
lucasfernog commented 3 years ago

Unfortunately we're going to archive this repo since we don't need this package anymore.