conedevelopment / cone-site

The new 11ty-based portfolio website of Cone.
https://conedevelopment.com
3 stars 2 forks source link

OBJECT:ACTION pattern in npm script names #1

Closed szepeviktor closed 11 months ago

szepeviktor commented 11 months ago

If npm scripts would be all called OBJECT:ACTION you could change

    "prod": "npm-run-all delete:dist sass:prod eleventy:prod"

to

    "prod:build": "npm-run-all prod:*"

I hope it doesn't fall into an infinite loop :)

adamlaki commented 11 months ago

Thanks Viktor, I will test it on local!

adamlaki commented 11 months ago

This is indeed works! Like the idea, give it a try: https://github.com/conedevelopment/cone-site/commit/8424ceb1693ab708c9feed5d571c55aaf05450c3

Thank!