Skip to content

Use npm scripts and wrap makefile around it - #183

Open
gikari wants to merge 1 commit into
esjeon:masterfrom
gikari:refactor/gikari/use-npm
Open

Use npm scripts and wrap makefile around it#183
gikari wants to merge 1 commit into
esjeon:masterfrom
gikari:refactor/gikari/use-npm

Conversation

@gikari

@gikari gikari commented Aug 26, 2021

Copy link
Copy Markdown

Advantages:

  • Building description is more readable (top to bottom)
  • Build step is extracted from package step
  • Abstraction layers are not mixed within the tools ("Scripts describe
    how to build, Npm calls scripts, Make calls Npm" instead of "Make
    describes build, calls Npm")
  • No duplication of package description in Makefile and package.json

How to test

Run all make commands:

clean
build
run
start
stop
test
package
install
uninstall

Advantages:
- Building description is more readable (top to bottom)
- Build step is extracted from package step
- Abstraction layers are not mixed within the tools ("Scripts describe
  how to build, Npm calls scripts, Make calls Npm" instead of "Make
  describes build, calls Npm")
- No duplication of package description in Makefile and package.json
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.

1 participant