京都の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);