Create the component project and the set of files required to develop a component. You can connect to your instance and create an application scope for your component, or you can reserve a scope to verify later.

Before you begin

Set up your environment.

Procedure

  1. Create a folder for your project and point your system's command-line tool to the folder.
  2. Create the component project and all the files required to build a component.
    1. From the folder you created, execute this command.
      $ snc ui-component project [--name name --description description --scope scope --offline]

      Pass in values for these arguments.

      $ snc ui-component project --name @myorg/movie-quotes --description 'A web component that prints movie quotes.'
      $ snc ui-component project --name @myorg/hello-world --scope x_myorg_helloworld --offline
  3. Run the following command to install the npm dependencies.
    npm install

What to do next

Develop a component.