Skip to content

Commit

Permalink
Add scripts to package.json that now come with firebase init, inclu…
Browse files Browse the repository at this point in the history
…ding linter support.
  • Loading branch information
inlined committed Feb 9, 2018
1 parent 77c426b commit 11a79ed
Show file tree
Hide file tree
Showing 49 changed files with 587 additions and 15 deletions.
12 changes: 12 additions & 0 deletions assistant-say-number/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,17 @@
"actions-on-google": "^1.0.7",
"firebase-admin": "^4.0.5",
"firebase-functions": "^0.5.1"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
14 changes: 13 additions & 1 deletion authenticated-json-api/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,17 @@
"firebase-admin": "~4.1.2",
"firebase-functions": "^0.5"
},
"private": true
"private": true,
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
12 changes: 12 additions & 0 deletions authorized-https-endpoint/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,17 @@
"express": "^4.14.1",
"firebase-admin": "^5.6.0",
"firebase-functions": "^0.8.0"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
12 changes: 12 additions & 0 deletions bigquery-import/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,17 @@
"@google-cloud/bigquery": "^0.6.0",
"firebase-admin": "^4.1.1",
"firebase-functions": "^0.5.1"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
12 changes: 12 additions & 0 deletions child-count/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,17 @@
"dependencies": {
"firebase-admin": "^4.1.1",
"firebase-functions": "^0.5.1"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
12 changes: 12 additions & 0 deletions convert-images/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,17 @@
"firebase-functions": "^0.5.1",
"mkdirp": "^0.5.1",
"mkdirp-promise": "^4.0.0"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
12 changes: 12 additions & 0 deletions coupon-on-purchase/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,17 @@
"dependencies": {
"firebase-admin": "^4.1.2",
"firebase-functions": "^0.5.1"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
14 changes: 13 additions & 1 deletion crashlytics-integration/email-notifier/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,17 @@
"firebase-admin": "^5.4.2",
"firebase-functions": "^0.7.2"
},
"private": true
"private": true,
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
14 changes: 13 additions & 1 deletion crashlytics-integration/jira-issue/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,17 @@
"request": "^2.81.0",
"request-promise": "^4.2.1"
},
"private": true
"private": true,
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
14 changes: 13 additions & 1 deletion crashlytics-integration/slack-notifier/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,17 @@
"request": "^2.81.0",
"request-promise": "^4.2.1"
},
"private": true
"private": true,
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
12 changes: 12 additions & 0 deletions delete-unused-accounts-cron/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,17 @@
"request": "^2.79.0",
"request-promise": "^4.1.1",
"secure-compare": "^3.0.1"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
12 changes: 12 additions & 0 deletions developer-motivator/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,17 @@
"dependencies": {
"firebase-admin": "^4.1.2",
"firebase-functions": "^0.5.1"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
12 changes: 12 additions & 0 deletions email-confirmation/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,17 @@
"nodemailer": "^2.4.1",
"firebase-admin": "^4.1.1",
"firebase-functions": "^0.5.1"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
7 changes: 5 additions & 2 deletions es2017-transpile/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
"babel-cli": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0"
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"prepare": "babel ./*.es7 --retain-lines -d ./"
"prepare": "babel ./*.es7 --retain-lines -d ./",
"lint": "./node_modules/.bin/eslint ."
}
}
12 changes: 12 additions & 0 deletions exif-images/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,17 @@
"child-process-promise": "^2.2.0",
"firebase-admin": "^4.1.1",
"firebase-functions": "^0.5.1"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
12 changes: 12 additions & 0 deletions fcm-notifications/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,17 @@
"dependencies": {
"firebase-admin": "^4.1.2",
"firebase-functions": "^0.5.1"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
12 changes: 12 additions & 0 deletions ffmpeg-convert-audio/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,17 @@
"firebase-admin": "^4.1.1",
"firebase-functions": "^0.5.1",
"fluent-ffmpeg": "^2.1.2"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
14 changes: 13 additions & 1 deletion fulltext-search-firestore/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,17 @@
"firebase-admin": "^5.0.0",
"firebase-functions": "^0.7.0"
},
"private": true
"private": true,
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
12 changes: 12 additions & 0 deletions fulltext-search/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,17 @@
"firebase-admin": "^4.1.1",
"firebase-functions": "^0.5.1",
"algoliasearch": "^3.10.2"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
12 changes: 12 additions & 0 deletions generate-thumbnail/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,17 @@
"firebase-functions": "^0.5.1",
"mkdirp": "^0.5.1",
"mkdirp-promise": "^4.0.0"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
12 changes: 12 additions & 0 deletions github-to-slack/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,17 @@
"request": "^2.80.0",
"request-promise": "^4.1.1",
"secure-compare": "^3.0.1"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
12 changes: 12 additions & 0 deletions google-sheet-sync/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,17 @@
"firebase-functions": "^0.5.6",
"google-auth-library": "^0.10.0",
"googleapis": "^18.0.0"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-plugin-promise": "^3.6.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
}
}
Loading

0 comments on commit 11a79ed

Please sign in to comment.