28 Commits

Author SHA1 Message Date
pluschen
32f2d6a68b
feat(cli): generate static files at the granularity of proto messages (#1840)
* feat: add message filter for cli

* feat: add test

* fix: update comment

* fix: update error message

* fix: remove test file

* fix: lint, jsdoc comments, return values

Co-authored-by: pluschen <pluschen@tencent.com>
Co-authored-by: Alexander Fenster <fenster@google.com>
2023-01-24 11:44:53 -08:00
Taylor McIntyre
da34f43ccd
feat!: move command line tool to a new package named protobufjs-cli (#1234)
* Get protobufjs-cli to a publishable state

* Fix eslint issues

* Fix pbts path

* Install cli package deps on CI 'build' job

* fix: get rid of require-protobufjs.js

* fix: lint

* fix: versions

* chore(deps): update package-lock.json

Co-authored-by: Stacey Sern <stacey@dropbox.com>
Co-authored-by: Gabriel Cangussu <gabrielcangussu@gmail.com>
Co-authored-by: Alexander Fenster <fenster@google.com>
2021-01-15 16:02:00 -08:00
dcodeIO
cc991a058b CLI: Use correct safeProp in json-module target, see #956 2017-11-29 02:16:51 +01:00
dcodeIO
c482a5b76f Fixed: Unified safe property escapes and added a test for #834 2017-11-26 22:41:09 +01:00
dcodeIO
114f7ea9fa Other: Minor formatting 2017-06-09 10:04:01 +02:00
dcodeIO
eb1b40497e Call npm with '--no-bin-links' when installing CLI deps, fixes #823 2017-06-09 10:02:39 +02:00
dcodeIO
2ebb1b7818 CLI: Prepare static code with estraverse instead of regular expressions, see #732 2017-03-27 23:11:34 +02:00
dcodeIO
4bfe0c239b CLI: More progress on decoupling the CLI; Docs: Explained the JSON structure in README and moved CLI specific information to the CLI package 2017-03-24 22:41:04 +01:00
dcodeIO
6e81fcb05f Other: Also lint cli utilities 2017-03-06 04:35:50 +01:00
dcodeIO
2ddb76b6e9 CLI: Added an experimental --sparse option to limit pbjs output to actually referenced types within main files; Other: Added a few more common google types from google/api, see #433 2017-02-04 05:36:57 +01:00
dcodeIO
735da4315a CLI: Also reuse specified root in pbjs for JSON modules, see #653 2017-01-24 03:12:32 +01:00
dcodeIO
3a056244d3 CLI: Reuse specified root name in pbjs to be able to split definitions over multiple files more easily, see #653 2017-01-24 02:07:46 +01:00
dcodeIO
cbaaae99b4 Other: Added version scheme warning to everything CLI so that we don't need this overly explicit in README 2017-01-18 15:12:02 +01:00
dcodeIO
afef1e6c05 Other: Updated changelog and dist files for 6.5.1 2017-01-18 03:29:11 +01:00
dcodeIO
9719fd2fa8 CLI: Reuse module paths when looking up cli dependencies, see #648 2017-01-18 03:14:43 +01:00
dcodeIO
6302655d13 CLI: Check actual module directories to determine if cli dependencies are present and bootstrap semver, see #648 2017-01-18 02:53:49 +01:00
dcodeIO
0a3862b75f CLI: Use semver to validate that CLI dependencies actually satisfy the required version, see #637 2017-01-12 19:30:13 +01:00
dcodeIO
c9a61e574f Use full library for JSON modules and runtime dependency for static modules, fixes #621 2017-01-05 21:56:06 +01:00
dcodeIO
e88d13ca7e CLI: Additional workarounds for on demand CLI dependencies, see #618 2017-01-05 01:16:37 +01:00
dcodeIO
44f6357557 CLI: Revised automatic setup of cli dependencies, see #618 2017-01-04 22:24:49 +01:00
dcodeIO
9681854526 CLI: Added customizable linter configuration to pbjs; CLI: Added stdin support to pbjs and pbts 2017-01-02 22:02:25 +01:00
dcodeIO
a017bf8a2d Breaking: Dropped IE8 support; New: Converters use code generation and support custom implementations; CLI: Generated static code now supports asJSON/from 2017-01-02 05:46:27 +01:00
dcodeIO
3d84ecdb47 CLI: pbjs now generates more convenient dot-notation property accessors 2016-12-27 17:57:26 +01:00
dcodeIO
3783af7ca9 Initial pbts CLI for generating TypeScript definitions, see #550 2016-12-13 13:43:22 +01:00
dcodeIO
691231fbc4 Refactor cli to support multiple built-in wrappers, added named roots instead of always using global.root and added additionally necessary eslint comments, see #540 2016-12-11 13:39:45 +01:00
dcodeIO
5dc851e35e Versioning, actually had a couple of minor but breaking API changes [ci skip] 2016-12-07 13:44:47 +01:00
dcodeIO
0ce099bf4f Added json-module target to pbjs, renamed static to static-module, see #522 2016-12-07 12:05:41 +01:00
dcodeIO
26ba0bb1ab Fresh master without docs 2016-11-26 11:53:06 +01:00