voorhoede / npm-style-guide

Opinionated npm Style Guide​ for teams.
https://github.com/voorhoede/npm-style-guide#readme
Creative Commons Zero v1.0 Universal
91 stars 11 forks source link

prefix tasks to bundle them #6

Closed jpsc closed 8 years ago

jpsc commented 8 years ago
petergoes commented 8 years ago

how would you write that down? Something like this?

...
    scripts: {
         tasks: {
            build : '',
            serve: ''
        }
    }
...
jpsc commented 8 years ago
scripts: {
  "build:js": "browserify",
  "build:css": "postcss -u"
}
jbmoelker commented 8 years ago

I'd put this guideline directly after "Write atomic tasks" and try to use the same example so that it makes most sense to the reader.