京都のkintone用javascript
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
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);