nitrictech / legacy-cli

CLI for the Nitric Framework
Apache License 2.0
6 stars 1 forks source link

Static sites - rename buildScripts to scripts #211

Closed davemooreuws closed 2 years ago

davemooreuws commented 3 years ago

Currently if you are running or deploying a static site using Node and haven't installed your modules you will get errors.

I suggest we rename buildScripts to scripts so users can add their yarn install or npm ci in here. The name change should remove any confusion. Part of this change will be refactoring documentation.

sites:
  example-site:
    path: .
    assetPath: ./build
    scripts:
      - yarn install --frozen-lockfile
      - yarn build