Allow specifying npm run steps declaratively

Bug #1808807 reported by Evan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

Today you have to do this:
```
    plugin: nodejs
    override-build: |
      PATH=../npm/bin:$PATH yarn run build
      snapcraftctl build
```

Ideally this would be something like:
```
    plugin: nodejs
    nodejs-scripts:
      - build
```

Discovered while snapping https://github.com/eykrehbein/strest

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.