Getting Started
The Digideck Component CLI allows developers to quickstart the development process for creating a Digideck component.
Getting Started
Requirements
- Node.js version 16.14 or above:
Installation
npm i -g @sportsdigita/ddcomponents-cli
Authentication
Login via the CLI using
ddcomponents login
Setting Your Organziation
Once you are logged in set the organization you are developing components for via:
ddcomponents setorg
Initialize
Run the below command in the directory you would like to create all your component files in. You will be forced to answer some questions about the component you are developing.
ddcomponents init
This will create a skeleton of files for you to begin developing from + install any dependencies. The file structure is as-seen below:
-src
--js
---component.edit.js
---component.view.js
---build
----entry.edit.js
----entry.view.js
--styles
---component.edit.scss
---component.view.scss
-component.config.json
-package.json
-webpack.prod.js
-webpack.common.js