-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from flutteruniv/develop
バージョン0.1
- Loading branch information
Showing
46 changed files
with
12,083 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
{ | ||
"cSpell.words": [ | ||
"anaba" | ||
] | ||
} | ||
"cSpell.words": ["anaba"], | ||
"eslint.workingDirectories": ["./functions"], | ||
"editor.tabSize": 2, | ||
"eslint.validate": ["javascript", "typescript"], | ||
// ファイル保存時の自動フォーマット有効 | ||
"editor.formatOnSave": true, | ||
// デフォルトフォーマッターをPrettierに指定 | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.codeActionsOnSave": { | ||
// ファイル保存時に ESLint でフォーマット | ||
"source.fixAll.eslint": true | ||
}, | ||
"[markdown]": { | ||
"files.trimTrailingWhitespace": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Freezed | ||
|
||
``` | ||
dart run build_runner watch | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# 環境変数 | ||
|
||
## deploy | ||
|
||
### 開発版 | ||
|
||
`firebase deploy --only functions --project anaba-dev` | ||
|
||
### 本番版 | ||
|
||
`firebase deploy --only functions --project anaba-prod` | ||
|
||
## 環境変数の設定 | ||
|
||
### 開発版 | ||
|
||
`firebase --project anaba-dev functions:config:set secret.key=value` | ||
|
||
### 本番版 | ||
|
||
`firebase --project anaba-prod functions:config:set secret.key=value` | ||
|
||
## どんな変数が set されているか確認したい | ||
|
||
### 開発版 | ||
|
||
`firebase --project anaba-dev functions:config:get` | ||
|
||
### 本番版 | ||
|
||
`firebase --project anaba-prod functions:config:get` | ||
|
||
## TS での環境変数の読み込み | ||
|
||
`functions.config().secret.key` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
es6: true, | ||
node: true | ||
}, | ||
extends: [ | ||
`eslint:recommended`, | ||
`plugin:import/errors`, | ||
`plugin:import/warnings`, | ||
`plugin:import/typescript`, | ||
`google`, | ||
`plugin:@typescript-eslint/recommended` | ||
], | ||
parser: `@typescript-eslint/parser`, | ||
parserOptions: { | ||
project: [`tsconfig.json`, `tsconfig.dev.json`], | ||
sourceType: `module` | ||
}, | ||
ignorePatterns: [ | ||
`/lib/**/*` // Ignore built files. | ||
], | ||
plugins: [`@typescript-eslint`, `import`], | ||
rules: { | ||
quotes: [`error`, `backtick`] | ||
// indent: [`error`, 2] | ||
}, | ||
extends: [`prettier`], | ||
settings: { | ||
'import/resolver': { | ||
typescript: { project: `./` } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Compiled JavaScript files | ||
lib/**/*.js | ||
lib/**/*.js.map | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# Node.js dependency directory | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"printWidth": 120, | ||
"bracketSpacing": true | ||
} |
Oops, something went wrong.