1.6.24 • Published 3 years ago

@replicatedhq/ship-init v1.6.24

Weekly downloads
128
License
Apache-2.0
Repository
github
Last release
3 years ago

@replicatedhq/ship-init

npm version

The ship init web application exported as a React component.

Install

yarn add @replicatedhq/ship-init monaco-editor

Usage

For documentation on props, see props.md. Below is a minimal example:

import * as React from 'react'

import { Ship } from "@replicatedhq/ship-init";

import "@replicatedhq/ship-init/dist/styles.css";

class App extends React.Component {
  render() {
    return (
      <Ship apiEndpoint="https://my-awesome-ship-api.com/api/v1" />;
    );
  }
}

Development

To build in development mode and watch for changes, run the following command:

yarn start

Dashboard mode mode uses webpack-dashboard for more human-readable output. To run that mode, run the following command:

yarn dashboard

Developing Ship Init in another project

If you want to make changes to the component from another project, you can use yarn link to do this.

# from init folder
yarn link

You will get a message like this:

success Registered "@replicatedhq/ship-init".
info You can now run `yarn link "@replicatedhq/ship-init"` in the projects where you want to use this package and it will be used instead.

In the project you would like to link, run the command above and run a watching command like yarn start for the changes to carry across to the project specified.

Props Documentation

As stated above, you can view the docs for the props on <Ship /> here.

If you have added new props or updated documentation, run the following command to generate up-to-date markdown docs:

yarn gen-prop-docs

Building

To build the project without watching:

  • Development build (no minification, warnings off):
    yarn build-dev
  • Production build (minified/uglified):
    yarn build

License

Apache-2.0 © Replicated, Inc.

1.6.24

3 years ago

1.6.23

4 years ago

1.6.22

4 years ago

1.6.21

4 years ago

1.6.20

4 years ago

1.6.19

4 years ago

1.6.18

4 years ago

1.6.17

4 years ago

1.6.16

4 years ago

1.6.15

4 years ago

1.6.14

4 years ago

1.6.13

4 years ago

1.6.12

5 years ago

1.6.11

5 years ago

1.6.10

5 years ago

1.6.9

5 years ago

1.6.8

5 years ago

1.6.7

5 years ago

1.6.6

5 years ago

1.6.5

5 years ago

1.6.4

5 years ago

1.6.3

5 years ago

1.6.2

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.3

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.9

5 years ago

1.4.8

5 years ago

1.4.7

5 years ago

1.4.6

5 years ago

1.4.5

5 years ago

1.4.4

5 years ago

1.4.3

5 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago