Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A live command, like the cake in CoffeeScript #1129

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

othelarian
Copy link

Origin of the PR

This PR is more like a fun addition to LiveScript. I always wonder why an equivalent to the CoffeeScript cake command doesn't exist un LiveScript, with a Livefile file at the package's root. So I did it.

What it does

I added scripts/build-live to compile the bin-src/live.ls script into bin/live, and also a Livefile as an example of what is possible.

It works like this:

  • option [name], [alias], [type], [description] => like in a Cakefile but with type, to make it work with optionator
  • task [name], [description], [callback] => also like in a Cakefile, the exact same syntax

Also, I added a new target in the makefile, live: bin/live, to run the script that compile bin-src/live.ls into bin/live.

@ceremcem
Copy link

ceremcem commented Mar 9, 2024

Can we use this in place of Gulp?

@othelarian
Copy link
Author

Can we use this in place of Gulp?

Completely, it is what I do for all my project, but in CoffeeScript. I also use bach, which is a lib gulp uses to create the pipeline under the hood. If you want the gulp pipelines you just have to add bach and vinyl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants