Workspace command는 새 Akan.js workspace를 만들고 repository 전체를 동기화합니다. 프로젝트를 시작하거나 generated surface를 정리하거나 app/library 전체에 lint를 적용할 때 사용합니다.
아래 명령은 `workspace.command.ts`의 `create-workspace`, `lint`, `lint-all`, `sync-all`에서 옵니다.
create-workspace
새 Akan.js workspace를 만들고 같은 단계에서 첫 application까지 bootstrap할 수 있습니다.
이 명령은 이름을 lowercase kebab-case로 정규화하고 선택한 update tag, library 설치 여부, initialization flag로 repository를 준비합니다.
Signature
Arguments
Argument
Type
Required
Default
Description
workspaceName
String
yes
-
Organization/workspace name. Normalized to lowercase kebab-case.
workspaceName
Type
String
Required
yes
Default
-
Description
Organization/workspace name. Normalized to lowercase kebab-case.
Options
Option
Type
Default
Enum / Flag
Description
--app
String
-
-
Codename of the first application. Normalized to lowercase kebab-case.
--dir
String
local when USE_AKANJS_PKGS=true, otherwise .
-
Directory where the workspace is created.
--libs
Boolean
-
false | true
Install shared and util libraries.
--tag
String
latest
latest | dev | canary | beta | rc | alpha
Akan.js update tag used while creating the workspace.
--init
Boolean
true
-
Initialize the workspace after creation.
--app
Type
String
Default
-
Enum / Flag
-
Description
Codename of the first application. Normalized to lowercase kebab-case.
--dir
Type
String
Default
local when USE_AKANJS_PKGS=true, otherwise .
Enum / Flag
-
Description
Directory where the workspace is created.
--libs
Type
Boolean
Default
-
Enum / Flag
false | true
Description
Install shared and util libraries.
--tag
Type
String
Default
latest
Enum / Flag
latest | dev | canary | beta | rc | alpha
Description
Akan.js update tag used while creating the workspace.