@s-ui/sui-deploy

1.3.0 • Public • Published

sui-deploy

CLI to deploy of sui-based projects.

It provides:

  • Common way to deploy our projects
  • SPA deployments

Installation

$ npm install @s-ui/sui-deploy --save-dev

CLI

When installed, a new CLI sui-deploy (node_modules/.bin/sui-deploy) is automatically available to deploy your projects.

Deploy a folder as an static SPA:

$ sui-deploy spa <name-of-project> [build-folder] [--now]

As spa is the default command, you can also:

$ sui-deploy <name-of-project> [build-folder] [--now]

Authentification

When --now option is set, sui-deploy needs a now token to deploy files. The token is obtain from the env variable NOW_TOKEN

You can set your token once with a simple command.

$ export NOW_TOKEN=my-token-from-now

Help

Run the following command for further options:

$ sui-deploy help

or

$ sui-deploy spa --help

Example package.json

{
  "name": "@my-scope/test-project",
  "version": "1.0.0",
  "scripts": {
    "build": "sui-bundler build -C",
    "deploy": "sui-deploy test-project --now"
  },
  "devDependencies": {
    "@s-ui/sui-deploy": "1"
  }
}

To deploy your project:

$ npm run build; npm run deploy

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @s-ui/sui-deploy

    Weekly Downloads

    25

    Version

    1.3.0

    License

    MIT

    Last publish

    Collaborators

    • alejandro.ferrante
    • ivanmlaborda
    • salvador.juan
    • andresin87.adevinta
    • izeller
    • gfabregoadv
    • a.ferrer
    • ignacio_navarro
    • oscar_ramirez
    • jordi.munoz
    • joanleon-adv
    • aitor.rodriguez
    • luis-garrido
    • jenifer.lopez
    • isabelgomez87
    • pa.chruscinski.ext
    • schibstedspain
    • alfredo.arronte
    • belen.santos
    • xavi_ballestar
    • ferrangbtw
    • jamile.radloff
    • davidmartin2108
    • sergi.quintela
    • estefania_garcia
    • carlosvillu-adevinta
    • miriam-gil
    • arnau.guell
    • ferran.simon
    • victor.perez.adevinta
    • mariapaula.forero.ext
    • oscar.gomez
    • david.nieto
    • oriol.puig
    • nacho_torrella
    • xavi.murcia
    • ignacio.rodriguez
    • francisco.ruiz.lloret
    • sziauberyte
    • alfredo.zimperz
    • andresadv
    • javiauso
    • alverd004
    • marian.lucaci
    • pablogs
    • alisa_bayanova
    • cristhianb
    • sergiocollado
    • pablo.rey-adevinta
    • beatrizip
    • alex.castells
    • david.cuadrado.ext
    • giovanny.sayas.ext
    • patricio.sartore
    • azahara
    • marc.benito
    • sergio.escano
    • cristina.rodriguez.duque
    • pol.valls
    • frandelacasa-adevinta
    • carolina.mallo.ext
    • daniel.perez.ext
    • hpintos_adevinta
    • carlos.gonzalezl
    • albert.peiro
    • oscar-raig-adevinta
    • thomas.page.ext
    • sebastian.badea.adevinta
    • victoria.pasichnyk.ext
    • sendami.luque.ext
    • luz_adv
    • alfredo.narvaez
    • ruben-martin
    • dann41
    • emiliovz
    • adria.velardos
    • arturo.vicente
    • diegomr
    • sergi.martinez.adevinta
    • guillemgc3
    • frontend-jobs
    • javiermiguel