Commit Graph

8 Commits

Author SHA1 Message Date
Pascal Hartig
09d0b4c841 Update tslint rules
Summary:
Make sure that we can pass with the combinations of eslint/tslint
rules.

Reviewed By: nikoant

Differential Revision: D20067199

fbshipit-source-id: 40e208f75f09a1eff584f111fbb9bc1be87dba01
2020-02-27 04:42:04 -08:00
Pascal Hartig
2ee9778a8e Bundle command scaffolding
Summary:
This sets up a basic UI for a bundling command. It checks for the source, creates an output directory if necessary and automatically creates an output name, so it should hopefully be as intuitive as possible.

There are plenty of potential error case that I don't directly handle. That's something we may want to consider in the future.

Reviewed By: nikoant

Differential Revision: D19973889

fbshipit-source-id: 5638ed0e45187c5ad567b9e2559c8befe52c6085
2020-02-25 06:07:02 -08:00
Pascal Hartig
a1260a9789 Set up oclif
Summary:
Provides some really nice helpers and generators for
multi command CLIs, including test helpers and all
sorts of output niceties. This should make it quite
easy for us to add additional sub-commands for
bundling, publishing and keeping docs for all of it.

Heroku maintains this and provides some excellent
docs, too: https://oclif.io/

My only complaint is that it's class-based but that's
effectively only the way to declare new commands and
enforces a set of required/static properties on it.

Reviewed By: nikoant

Differential Revision: D19970293

fbshipit-source-id: 4228e502198c6fd376854a90ed2f01da29e96bc2
2020-02-24 14:04:42 -08:00
Pascal Hartig
16a24d82c8 Update jest config
Summary:
We don't want to test again against the compiled JS output.
Also, we *do* want to fail if we break the config and don't
actually run any tests.

Reviewed By: nikoant

Differential Revision: D20068114

fbshipit-source-id: c46e5a25fcd155d160f717a9db8f088787913a28
2020-02-24 07:22:49 -08:00
Pascal Hartig
05a1c70bc7 Set up separate cli tool
Summary:
Discussed that we want this to be both a library and a CLI
tool. Also added a README stub.

Reviewed By: nikoant

Differential Revision: D19969788

fbshipit-source-id: 2c54935ce5953d2053c7bdf601debe0e5e911647
2020-02-21 03:51:19 -08:00
Pascal Hartig
e54b8f06f8 Bump all packages
Summary: Enabling greenkeeper in the next diff.

Reviewed By: nikoant

Differential Revision: D19969790

fbshipit-source-id: 9a81c0505429512dc2e70523ab0b87eb0c6a2050
2020-02-21 03:51:18 -08:00
Pascal Hartig
96c4d24cb9 Add boilerplate test
Summary: To verify that the infra is working.

Reviewed By: mweststrate

Differential Revision: D19881083

fbshipit-source-id: 92d5f55ecbef84003b6000b4c95df1fe0518719c
2020-02-14 12:52:49 -08:00
Pascal Hartig
6f15e29b99 Set up project skeleton for flipper-pkg
Summary: TypeScript cli tool basics.

Reviewed By: jknoxville, nikoant

Differential Revision: D19856513

fbshipit-source-id: da148d1435c09221f74dc94285b655bed53d0494
2020-02-13 09:08:41 -08:00