Skip to content

Readability of long lines #30

Description

@dandv

Since npm doesn't support arrays in package.json script, are there some ways to split horribly long lines into something more readable?

Here's what I have right now:

"build:js": "uglifyjs node_modules/asteroid/node_modules/ddp.js/src/ddp.js node_modules/asteroid/node_modules/q/q.js node_modules/asteroid/dist/asteroid.chrome.js --screw-ie8 -c -m -o dist/vendor/asteroid.js && uglifyjs node_modules/css-selector-generator/build/css-selector-generator.min.js node_modules/selection-menu/node_modules/tether/dist/js/tether.min.js node_modules/selection-menu/src/selection-menu.js --screw-ie8 -c -m -o dist/vendor/selection-menu.js && cpy src/*.js dist/",

One way would be to artificially move parts of that command into prebuild and postbuild, but I might need to put legit command in pre and post later.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions