gkz / LiveScript

LiveScript is a language which compiles to JavaScript. It has a straightforward mapping to JavaScript and allows you to write expressive code devoid of repetitive boilerplate. While LiveScript adds many features to assist in functional style programming, it also has many improvements for object oriented and imperative programming.
http://livescript.net
MIT License
2.31k stars 156 forks source link

Full npm instead of a makefile #1128

Open othelarian opened 4 months ago

othelarian commented 4 months ago

Origin of the PR

The main issues I found with the makefile:

So this PR has one goal: get rid of the makefile by using only npm and a LiveScript file.

What it does

This PR adds entries in the package.json that work with a index.ls file at the root of the repository. Using the npm run [command] syntax directly in the console it's now possible to launch this specific actions:

The README.md is also updated with the same explanation.

Some makefile targets weren't transfered like all, loc, force, full, install and dev-install. Most of their actions are already standards now. I left the makefile unchanged for people who still wanted to use it.

Side effects

I bumped the uglify-js version as it doesn't change anything meaningful, but I kept the istanbul as it is. I think, as written in the code itself, that a rewrite with mocha is a better idea.

Note

It's an opiniated PR, so I will understand that it may be refused, I'm ok with this.