chore(docs.angular.js): do not break when deploying
Follow-up to #16451. Closes #16452
This commit is contained in:
+2
-2
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user