Actionアドインの開発手順作成
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|列名 | 項目 | 説明 |
|
||||
|----- |-------------|-------------------------------------------|
|
||||
|name | 名前 | アクションプラグイン名(ユニークな名前が必要) |
|
||||
|title |タイトル | タイトル |
|
||||
|title |タイトル | タイトル (20文字以内) |
|
||||
|subtitle|サブタイトル | サブタイトル |
|
||||
|outputpoint|出力ポイント | 出力値に分岐がある場合の接続点 |
|
||||
|property|プロパティ | アクションプラグインの属性(json形式) |
|
||||
@@ -227,4 +227,40 @@ getConditionResult(context:any):boolean{
|
||||
```
|
||||
5. **登録関数の実装** (`register`):
|
||||
- アクションをアドインシステムに登録するための`register`メソッドを実装します。
|
||||
|
||||
|
||||
6. **アクションプロセス`ActionProcess`に参照追加**
|
||||
```ts
|
||||
import { actionAddins } from "../actions";
|
||||
import '../actions/must-input';
|
||||
import '../actions/auto-numbering';
|
||||
import '../actions/field-shown';
|
||||
import '../actions/your-action'; //ここに新規のアクションの参照を追加する
|
||||
...
|
||||
```
|
||||
### 3. デプロイ
|
||||
1. **プロジェクトをビルドする**
|
||||
- 本番環境にデプロイする場合
|
||||
```bash
|
||||
cd plug\kintone-addins\
|
||||
npm install
|
||||
npm run build
|
||||
```
|
||||
- 開発環境にデプロイする場合(ソースマップ出力ます)
|
||||
```bash
|
||||
cd plug\kintone-addins\
|
||||
npm install
|
||||
npm run build:dev
|
||||
```
|
||||
2. **Azureにデプロイする**
|
||||
- Azure 拡張機能のインストール:
|
||||
VSCode の拡張機能ペインで`Azure Tools`を検索し、インストールします。
|
||||
|
||||
- Azure にログイン:
|
||||
- Azure Account 拡張機能を使用して Azure にログインします。
|
||||
|
||||
- Azure へのデプロイ:
|
||||
- 「Deploy to Web App」オプションを使用し、デプロイするファイルやフォルダを指定します。
|
||||
|
||||
- デプロイの確認:
|
||||
- Azure App Service 拡張機能でデプロイが完了したことを確認します。
|
||||
- ka-addin の URL にアクセスしてアプリケーションが正常に動作しているか確認します。
|
||||
Reference in New Issue
Block a user