10 Commits

Author SHA1 Message Date
Anton Gilgur
b08f272efb
refactor: sort all top-level imports (#337)
- basically, general format is:
  ```ts
  import x from "external-dep"

  import y from "./internal-dep"
  ```
  - so external deps, new line, then internal/local deps
  - with some further sorting within there, like trying to keep Node
    built-ins (e.g. `path`) at the top half of externals, then core deps
    like `typescript`, then any other external deps
    - and similar for internal deps -- core internals at the top half of
      internals, then any other internal deps
    - just to keep things consistent between files -- makes the top
      easier to read through when it's similar between files
    - also makes it easier for contributors to understand where to put
      imports, as there's a sorting already there

- this is how I generally sort my imports and how I wrote most of the
  unit test suite's imports as well

- there is automation for this that we should probably add once TSLint
  is replaced here; some previous art:
  - https://github.com/trivago/prettier-plugin-sort-imports
  - https://github.com/lydell/eslint-plugin-simple-import-sort/
  - Older:
    - https://github.com/renke/import-sort/tree/master/packages/import-sort-style-module
    - https://github.com/mcdougal/js-isort
    - inspired by Python's `isort` ofc
2022-06-01 14:40:54 -06:00
Eugene Zolenko
6b0225a7de - redoing switch to generateBundle (#126 #127 #128)
- using rollup's own types
- min rollup bumped to 0.68
- updating dependencies
- package version 0.19
2019-01-04 15:52:31 -07:00
Eugene Zolenko
906db178ff - fix for #42, potential mitigation for #40 2017-11-14 17:48:26 -07:00
Eugene Zolenko
6135555b5c #41
- fix for plugin name
2017-11-03 16:49:05 -06:00
ezolenko
448913d411 - fix for #24. forcing declarations for project files even if they are ignored by rollup 2017-08-15 17:56:29 -06:00
ezolenko
81228203cf - option for overriding typescript version for #27 2017-08-11 00:33:36 -06:00
wessberg
29eae41e26 Refactoring. Declarations will now be local to the rollup destination directory 2017-07-27 04:22:49 +02:00
ezolenko
52297b9bd3 - trying not to fail too badly on old rollup 2017-03-24 23:21:16 -06:00
ezolenko
bf90c3ad7e - debug/info messages in transform go to console 2017-03-05 23:10:52 -07:00
ezolenko
883cee62bb - better diagnostics treatment 2017-03-04 18:50:39 -07:00