Closed gabejohnson closed 7 years ago
Should we alias sjs
as sweet
too? I sometimes find myself typing sweet
.
/cc @disnet
No, to avoid confusion there should only be one command. Shell aliases are there for your personal typos 😜
I just created a sweet-cli repo to start this process. The most obvious thing to do as you mentioned is to have both sweet-core
and sweet-cli
packages to separate the cli and the API. But what should we do about the existing sweet.js
package? We could either:
sweet-core
and just remove the cli stuff from sweet.js
sweet-cli
and sweet-core
I suspect that npm deprecate is the right option.
What about a mix of 1 and 2. We could:
sweet.js
be a shell until v4sweet.js
sweet-cli
sweet.js
die after v4 is releasedI understand that this would be a bit more work, but anything to avoid alienating the current users (v3 was just released last week after all).
I don't feel strongly about it though.
That's a really good idea. We'll do that then.
Doh! Turns out sweet-cli has already been taken.
Since we need our own namespace I've just created the @sweet-js npm org so we can publish under that scope.
Fixed in #689
From https://github.com/sweet-js/sweet.js/pull/660#issuecomment-290271808
I think babel is a good place to look for inspiration.
I'm thinking
sweet-core
is for compiling macros,sweet-helpers
is for writing macros andsweet-cli
is for...well it'ssjs
.(out of scope): I'm also thinking we could add something like
babel-node
. A REPL would be great for playing around with ideas.