74 Commits

Author SHA1 Message Date
Bryan Kendall
9799ac0302 Update Functions init templates (#1093)
* init template updates

* add noImplicitReturns

* add line to changelog

* Update index.js

* Update index.ts
2019-01-15 10:44:12 -08:00
joehan
454d501b0e Adding functions/.gitignore when javascript is chosen in firebase init, updating typescript functions/.gitignore (#1086)
* Adds .gitignore for javascript template, adds node_modules and lib to .gitignore for typescript template

* writes gitignore file during javascript function init

* removing lib/ pattern, as it should be covered by .js and js.map rules

* changelist
2019-01-08 10:08:19 -08:00
Sam Stern
69db5bebfe Support v1beta2 indexes API (#1014) 2018-12-20 11:40:03 -08:00
Kevin Jian
8b54e70bc4 Update functions init templates to v2.1.0 (#969) 2018-10-25 15:56:15 -07:00
Yuchen Shi
0e4335edcb Generate .gitignore file when firebase init [functions]. Fix #272. (#939) 2018-10-11 13:46:37 -07:00
Miyata Jumpei
36cf1e3623 Fix typos in tslint.json template (#909) 2018-09-12 10:25:27 +08:00
Lauren Long
9115102440 Update functions init templates (#300) 2018-08-09 13:38:50 -07:00
Lauren Long
c4c17d3dc3 Update firebase init template for functions (#293) 2018-07-23 16:14:25 -07:00
Lauren Long
5f5ed01074 Update functions init templates to v1.0.3 (#776) 2018-05-21 14:28:21 -07:00
Lauren Long
7470a2e766 Update functions init template to v1.0.1 (#727) 2018-04-06 11:29:24 -07:00
Lauren Long
e34ead7179 Modify npm run shell to use updated command" (#718) 2018-04-05 15:14:50 -07:00
Lauren Long
405cc9fa45 Update init template for firebase-functions v1 (#265) 2018-04-02 16:09:31 -07:00
Bryan Klimt
3d86a9bfba Update functions init template dependencies versions (#698) 2018-03-20 09:37:16 -07:00
Achim Weimert
d6888bf26a fix tslint path to project config (#652)
-p (or the long version --project) was incorrectly referencing the linting configuration in tslint.json. Fixing this to reference the tsconfig.json file to enable rules that work with the type checker.

Using the long version --project as it is more readable
2018-02-01 10:59:55 -08:00
Karasu
5e03c75a11 Cross-platform scripts (#637) 2018-01-28 21:30:23 -08:00
Thusitha Manathunga
9da6910fce Fix incorrect URL for TypeScript start guide (#621) 2018-01-22 10:28:24 -08:00
Lauren Long
c73bf60fe8 Remove typeof-compare check from tslint (#604) 2018-01-17 17:22:25 -08:00
Lauren Long
1d6e2e4394 Update functions dependencies (#601) 2018-01-17 16:35:53 -08:00
Tina Liang
d6f7c990e2 Implement separate predeploy hooks for build and lint (#588)
implementing advanced deployment tools
2018-01-17 10:43:35 -08:00
Lauren Long
8e44081e03 Update functions init template dependencies versions (#577) 2018-01-10 14:44:28 -08:00
Lauren Long
4d63f5ffa4 Merge branch 'master' of github.com:firebase/firebase-tools 2017-12-20 13:35:46 -05:00
Thomas Bouldin
db71b441b5 Fix duplicate key in eslintrc (#572)
There was an extra entry for "promise/always-return" which broke eslint.
2017-12-15 11:39:08 -08:00
Tina Liang
bc27edf539 Update eslint.json 2017-12-14 15:33:30 -08:00
Tina Liang
a81f849cf0 Eslint support for Functions (#571)
added eslint support for functions in javascript
2017-12-14 15:06:12 -08:00
Tina Liang
39f94fafe6 Add support for eslint when initializing cloud functions (#242)
* added .eslintrc file, lint option in package.json, and lint rules in eslint.json
2017-12-04 10:09:37 -08:00
Thomas Bouldin
3d8da0c766 Add support for TypeScript when initializing Cloud Functions. (#239)
Add support for TypeScript when initializing Cloud Functions.

Meets agreed upon UX and implements the "optional" feature of linter support. Refactors
the functions.js into 3 different files: initalization for all languages, an NPM install helper
for all NPM based runtimes, and the JS implmentation. Then adds support for TypeScript along with
JavaScript. TypeScript adds a predeploy command to ensure TypeScript is always compiled before deploy.

I did a first pass on linter rules based on the full list on the tslint website. These are definitely open for discussion.

I'm curious whether we should add "(Experimental)" to the list when choosing TypeScript. There's a chance we will want to
change project structure or lint rules in the future and this could be seen as breaking. And as mentioend offline, there's
a wart that we didn't consider how this feature should work with the emulator either.

In general I want to chat a bit about ideal project structure. I'm worried that this is hard to add tests with the project
layout that we use in the firebase-functions codebase. I'm considering that maybe both should have SxS foo.ts and foo.spec.ts.
This would fix our use of a .tmp directory that has both "src" and "spec" inside it whereas production files are only in "lib".
If we were to do this, I might also recommend adding a ".npmignore" file and making the functions deploy process honor it. Since
we're already shipping unit tests I can't see this being a blocker for release.
2017-10-31 01:30:20 -07:00
Sam Stern
811713461b Adds Firestore indexes to firebase deploy 2017-09-28 14:44:21 -07:00
Michael Bleigh
2cac58206f 3.9.1-firestore.1 2017-07-20 18:23:01 -07:00
Lauren Long
bfa87854af Merge branch 'master' of github.com:firebase/firebase-tools 2017-06-01 13:53:11 -07:00
Michael Bleigh
000a4c34c4 Merge branch 'master' into bl-functions-es2015 2017-05-31 13:18:55 -07:00
Brendan Lim
5ee063ecf9 Updating index.js template for functions to use ES2015 syntax to match our code samples and docs 2017-05-31 13:08:12 -07:00
Jakub Bouček
335016b95f Fix typo in demo code for hosting. (#353) 2017-05-30 14:04:07 -07:00
Michael Bleigh
8137d48d3d Merge from master. 2017-05-26 13:56:39 -07:00
Michael Bleigh
caa6e15d7e Merge branch 'mb-implicit-web' of github.com:FirebasePrivate/firebase-tools into mb-implicit-web 2017-04-03 16:31:45 -07:00
Michael Bleigh
9adebd202d Merge branch 'master' of github.com:FirebasePrivate/firebase-tools into mb-implicit-web 2017-04-03 16:27:27 -07:00
Michael Bleigh
d98168965a Updates login success/failure to new style. 2017-04-03 14:07:02 -07:00
Michael Bleigh
68df41bba4 Update 404.html template to match new index.html 2017-04-03 10:43:20 -07:00
Michael Bleigh
0a81beb630 Merge branch 'master' into bl-update-docs-link 2017-03-29 11:21:29 -07:00
Michael Bleigh
e9a600c77c Merge master. 2017-03-27 10:17:15 -07:00
Brendan Lim
568331e294 Updating documentation link and copy in generated functions index.js 2017-03-22 13:42:40 -07:00
Michael Bleigh
a9a1ea2c13 Update init index.html for implicit init 2017-03-17 18:40:45 -07:00
Michael Bleigh
4d30ca1ce4 Support implicit init and SDK proxy in firebase serve 2017-03-16 11:11:37 -07:00
Michael Bleigh
33f4363c39 Merge branch 'mb-implicit-web' of github.com:FirebasePrivate/firebase-tools into mb-implicit-web 2017-03-15 11:42:29 -07:00
Michael Bleigh
51a16aac37 Adds setup:web command. 2017-03-15 11:40:42 -07:00
Robert-Jan Huijsman
641c89ff36 Fix missing semicolon in example code in index.js (#277)
The nit to end all nits, but noticed by customers.
2017-03-14 16:46:43 -07:00
James Daniels
af59f4e1e8 Fixing the link in functions init 2017-03-14 15:26:48 -07:00
Michael Bleigh
738cc4096e Change CLI templates for public release. 2017-03-03 18:58:19 -08:00
Michael Bleigh
6d753d2b0f Merge functionality for 0.5 SDK (#171) 2017-02-14 18:04:55 -08:00
Michael Bleigh
4d0c8f2298 Merge branch 'master' of github.com:FirebasePrivate/firebase-tools into firestore 2016-12-09 17:19:50 -08:00
Michael McDonald
c74bec5f1c Add database name back in
Adding the database name back in to the path.

We're using the wildcard `{database}` since otherwise we'd have to percent escape the parens in the `(default)` database.
2016-12-09 09:31:32 +09:00