Skip to content

Instantly share code, notes, and snippets.

@tsuyukimakoto
Created July 30, 2018 13:20
Show Gist options
  • Save tsuyukimakoto/e781d8f44c8619a59c3befbdfc34e082 to your computer and use it in GitHub Desktop.
Save tsuyukimakoto/e781d8f44c8619a59c3befbdfc34e082 to your computer and use it in GitHub Desktop.
ランチチーム分割(当たり付き)を作った話 ref: https://qiita.com/tsuyukimakoto/items/1dddbb9525ac50f4c014
.
├── appsscript.json
├── config.service.ts ← 設定を扱う。ProeprtyServiceをここに閉じ込めている
├── constants.ts
├── index.ts ← エントリーポイント
├── models.ts ← 型定義。ここじゃない気がしている
├── storage.service.ts ← データを扱う。SpreadSheetはここに閉じ込めている
└── utils.ts ← バグりがちなロジックを入れて、主にこのファイルをテストしている
let root_folder = DriveApp.getRootFolder()
let spreadsheet_file = DriveApp.getFileById(spreadsheet.getId())
folder.addFile(spreadsheet_file)
root_folder.removeFile(spreadsheet_file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment