京都のkintone用javascript
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

20 行
465B

  1. import { execSync } from 'child_process';
  2. const file =
  3. process.argv[2]
  4. if (file !== undefined && file.length === 0) {
  5. throw new Error("引数不正")
  6. }
  7. if (!file.endsWith('customize-manifest.json')) {
  8. throw new Error("ファイル名不正 customize-manifest.jsonを指定してください")
  9. }
  10. console.log('\nuploading... ', file);
  11. const command = `npx kintone-customize-uploader `;
  12. const result = execSync(command + file);
  13. console.log('\n' + result);