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

NPM script names #21

Closed
szepeviktor opened this issue Mar 2, 2024 · 2 comments
Closed

NPM script names #21

szepeviktor opened this issue Mar 2, 2024 · 2 comments

Comments

@szepeviktor
Copy link
Contributor

szepeviktor commented Mar 2, 2024

It would nice to have only 1 format for NPM script names.

"delete:dist": "del-cli --force dist",
"eleventy:dev": "npx eleventy --serve",
"eleventy:prod": "npx eleventy",
"js:lint": "npx eslint \"src/js/**\"",
"js:lint:fix": "npx eslint \"src/js/**\" --fix",
"prod": "npm-run-all delete:dist eleventy:prod sass:prod",
"sass:dev": "sass --load-path=node_modules --watch --no-source-map --update --style=expanded src/scss:src/css",
"sass:lint:fix": "stylelint src/scss/**/*.scss --fix",
"sass:lint": "stylelint src/scss/**/*.scss",
"sass:prod": "sass --load-path=node_modules --no-source-map --style=compressed src/scss:src/css",
"start": "npm-run-all --parallel eleventy:dev sass:dev"

Now the format is random:random.

It could be object:action (noun:verb)

@szepeviktor
Copy link
Contributor Author

szepeviktor commented Mar 2, 2024

e.g. sass:watch, sass:compile

$ npx sass --help
Compile Sass to CSS.

@szepeviktor
Copy link
Contributor Author

Closed by #22

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

No branches or pull requests

1 participant