Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 373e102

Browse files
committed
chore(docs.angular.js): do not break when deploying
Follow-up to #16451.
1 parent 75bf199 commit 373e102

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

lib/grunt/utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ module.exports = {
302302
var fileName = docsScriptFolder + '/firebase.json';
303303
var json = grunt.file.readJSON(fileName);
304304

305-
json.hosting.public = 'deploy/docs';
306-
json.functions.source = docsScriptFolder + '/functions';
305+
(json.hosting || (json.hosting = {})).public = 'deploy/docs';
306+
(json.functions || (json.functions = {})).source = docsScriptFolder + '/functions';
307307

308308
grunt.file.write('firebase.json', JSON.stringify(json));
309309
}

scripts/code.angularjs.org-firebase/.eslintrc.json

-5
This file was deleted.

scripts/docs.angularjs.org-firebase/firebase.json

-5
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,5 @@
2727
"function": "sendFile"
2828
}
2929
]
30-
},
31-
"functions": {
32-
"predeploy": [
33-
"npm --prefix $RESOURCE_DIR run lint"
34-
]
3530
}
3631
}

scripts/docs.angularjs.org-firebase/functions/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "functions",
33
"description": "Cloud Functions for Firebase",
44
"scripts": {
5-
"lint": "./node_modules/.bin/eslint .",
5+
"lint": "eslint .",
66
"serve": "firebase serve --only functions",
77
"shell": "firebase experimental:functions:shell",
88
"start": "npm run shell",

0 commit comments

Comments
 (0)