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

Tweak the tachyons-cli npm scripts for CSS modules #75

Closed
johno opened this issue Nov 21, 2015 · 0 comments
Closed

Tweak the tachyons-cli npm scripts for CSS modules #75

johno opened this issue Nov 21, 2015 · 0 comments

Comments

@johno
Copy link
Member

johno commented Nov 21, 2015

Currently it's one long script

"scripts": {
  "start": "tachyons src/tachyons-border-style.css > css/tachyons-border-style.css && tachyons src/tachyons-border-style.css --minify > css/tachyons-border-style.min.css && tachyons src/tachyons-border-style.css --generate-docs --package=../../package.json > readme.md"
}

But, we should really break it out into composable parts

"scripts": {
  "css:build": "tachyons src/tachyons-border-style.css > css/tachyons-border-style.css",
  "css:build:min": "tachyons src/tachyons-border-style.css --minify > css/tachyons-border-style.min.css",
  "docs": "tachyons src/tachyons-border-style.css --generate-docs --package=../../package.json > readme.md",
  "start": "npm run css:build && npm run css:build:min && npm run docs"
}

It will make each script more digestible and extendible since one might not always want to run all scripts in one go.

@johno johno closed this as completed Mar 8, 2016
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