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

chore(docs.angular.js): do not break when deploying #16452

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/grunt/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ module.exports = {
var fileName = docsScriptFolder + '/firebase.json';
var json = grunt.file.readJSON(fileName);

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

grunt.file.write('firebase.json', JSON.stringify(json));
}
Expand Down
5 changes: 0 additions & 5 deletions scripts/docs.angularjs.org-firebase/firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,5 @@
"function": "sendFile"
}
]
},
"functions": {
"predeploy": [
"npm --prefix $RESOURCE_DIR run lint"
]
}
}
2 changes: 1 addition & 1 deletion scripts/docs.angularjs.org-firebase/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "functions",
"description": "Cloud Functions for Firebase",
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"lint": "eslint .",
"serve": "firebase serve --only functions",
"shell": "firebase experimental:functions:shell",
"start": "npm run shell",
Expand Down