2.0.0 • Published 9 months ago

@dpc-sdp/nuxt-ripple-cli v2.0.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
9 months ago

Nuxt Ripple CLI

CLI for simplifying common setup and scaffolding tasks.

Installation

Either install the CLI install it globally using npm install -g @dpc-sdp/nuxt-ripple-cli or run it directly using npx @dpc-sdp/nuxt-ripple-cli.

If you've installed the package globally you can now use the nuxt-ripple command in your terminal.

Note: If you prefer to run the CLI using npx you won't be able to use the nuxt-ripple command and will instead need to use npx @dpc-sdp/nuxt-ripple-cli in place of nuxt-ripple. For instance npx @dpc-sdp/nuxt-ripple-cli init site my-site --name "My Site".

Commands

Init

The init command will initialise a new site or layer.

nuxt-ripple init [TEMPLATE] [DIRECTORY] --name {NAME} --rplVersion {RPL_VERSION}

[TEMPLATE]:

  • site Scaffolds a new nuxt site.
  • layer Scaffolds a new nuxt layer.

[DIRECTORY]: The directory to output scaffolded files into.

--name {NAME}: The name of the site or layer.

--rplVersion {RPL_VERSION}: The version of the ripple core dependencies to use.

Add

The add command will create a ripple component or content type.

nuxt-ripple add <command> [DIRECTORY]

<command>:

  • component Scaffolds a new Ripple (vue) component, note that the component folder is created as well to follow Ripple naming conventions.
  • content-type Scaffolds a new Ripple Tide content type.

Add Component

nuxt-ripple add component [DIRECTORY] --name {NAME} --prefix {PREFIX}

[DIRECTORY]: The directory to output the component scaffolding.

--name {NAME}: The name of new Vue component.

--prefix {PREFIX}: The prefix to used for the Vue components.

Add Content Type

nuxt-ripple add content-type [DIRECTORY] --name {NAME} --createTests --cypressPath {CYPRESSPATH}

[DIRECTORY]: The directory to output the content type scaffolding.

--name {NAME}: The name of the project or layer.

--createTests or -T: A flag to opt into example tests.

--cypressPath {CYPRESSPATH}: The path to the Cypress support folder, this is used when opting into the example tests.

Mock

The mock command will start a mock server for testing Ripple sites without a Tide backend.

nuxt-ripple mock [FIXTURE_PATH] --routes {ROUTE_PATH} --site {SITE_PATH}

[FIXTURE_PATH]: The path to the fixture, i.e. the mocked data

--routes {ROUTE_PATH}: The path to the JSON routes file; example route file: [{ "path": "/", "fixture": "home.json" }].

--site {SITE_PATH}: The relative (to [FIXTURE_PATH]) path to mocked global site data

2.0.0-next.59

9 months ago

2.0.0-next.51

9 months ago

2.0.0-next.52

9 months ago

2.0.0-next.53

9 months ago

2.0.0-next.54

9 months ago

2.0.0-next.55

9 months ago

2.0.0-next.56

9 months ago

2.0.0-next.57

9 months ago

2.0.0-next.58

9 months ago

2.0.0-next.60

9 months ago

2.0.0-next.61

9 months ago

2.0.0-next.48

9 months ago

2.0.0-next.49

9 months ago

2.0.0-next.40

10 months ago

2.0.0-next.41

9 months ago

2.0.0-next.42

9 months ago

2.0.0-next.43

9 months ago

2.0.0-next.44

9 months ago

2.0.0-next.45

9 months ago

2.0.0-next.46

9 months ago

2.0.0-next.47

9 months ago

2.0.0-alpha.43

9 months ago

2.0.0-next.50

9 months ago

2.0.0-alpha.49

10 months ago

2.0.0-alpha.48

10 months ago

2.0.0-next.37

10 months ago

2.0.0-next.38

10 months ago

2.0.0-next.39

10 months ago

2.0.0-next.73

9 months ago

2.0.0-next.74

9 months ago

2.0.0-next.30

10 months ago

2.0.0-next.75

9 months ago

2.0.0-next.31

10 months ago

2.0.0-next.32

10 months ago

2.0.0-next.33

10 months ago

2.0.0-next.34

10 months ago

2.0.0-next.35

10 months ago

2.0.0-next.36

10 months ago

2.0.0-next.28

10 months ago

2.0.0-next.29

10 months ago

2.0.0-next.62

9 months ago

2.0.0-next.63

9 months ago

2.0.0-next.64

9 months ago

2.0.0-next.65

9 months ago

2.0.0-next.67

9 months ago

2.0.0-next.68

9 months ago

2.0.0-next.69

9 months ago

2.0.0-next.71

9 months ago

2.0.0-next.72

9 months ago

2.0.0-next.26

10 months ago

2.0.0-next.27

10 months ago

2.0.0-next.25

10 months ago

2.0.0

10 months ago

2.0.0-next.23

10 months ago

2.0.0-next.24

10 months ago

2.0.0-rc.1

11 months ago

2.1.0-alpha.193

11 months ago

2.1.0-alpha.182

11 months ago

2.1.0-alpha.192

11 months ago

2.1.0-alpha.184

11 months ago

2.1.0-alpha.180

11 months ago

2.1.0-alpha.190

11 months ago

2.1.0-alpha.201

11 months ago

2.1.0-alpha.189

11 months ago

2.1.0-alpha.178

11 months ago

2.1.0-alpha.196

11 months ago

2.1.0-alpha.199

11 months ago

2.1.0-alpha.157

12 months ago

2.1.0-alpha.156

12 months ago

2.1.0-alpha.155

12 months ago

2.1.0-alpha.127

1 year ago

2.1.0-alpha.124

1 year ago

2.1.0-alpha.109

1 year ago

2.1.0-alpha.95

1 year ago

2.1.0-alpha.84

1 year ago