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

Follow-up to #16451.

Closes #16452
This commit is contained in:
George Kalpakas
2018-02-12 21:55:41 +02:00
parent 8681fce27b
commit 06f5069813
3 changed files with 3 additions and 8 deletions
+2 -2
View File
@@ -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));
}
@@ -27,10 +27,5 @@
"function": "sendFile"
}
]
},
"functions": {
"predeploy": [
"npm --prefix $RESOURCE_DIR run lint"
]
}
}
@@ -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",