Skip to content

Commit abe4f7d

Browse files
committed
chore(deploy): rename deploy folders
1 parent 2b6cfab commit abe4f7d

File tree

6 files changed

+19
-11
lines changed

6 files changed

+19
-11
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/build/
2+
/deploy/
23
/benchpress-build/
34
.DS_Store
45
gen_docs.disable

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
secret_access_key:
9595
secure: tHIFdSq55qkyZf9zT/3+VkhUrTvOTMuswxXU3KyWaBrSieZqG0UnUDyNm+n3lSfX95zEl/+rJAWbfvhVSxZi13ndOtvRF+MdI1cvow2JynP0aDSiPffEvVrZOmihD6mt2SlMfhskr5FTduQ69kZG6DfLcve1PPDaIwnbOv3phb8=
9696
bucket: code-angularjs-org-338b8.appspot.com
97-
local-dir: uploadCode
97+
local-dir: deploy/code
9898
detect_encoding: true # detects gzip compression
9999
on:
100100
repo: angular/angular.js

Gruntfile.js

+11-6
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,10 @@ module.exports = function(grunt) {
163163
clean: {
164164
build: ['build'],
165165
tmp: ['tmp'],
166-
deploy: ['uploadDocs', 'uploadCode']
166+
deploy: [
167+
'deploy/docs',
168+
'deploy/code'
169+
]
167170
},
168171

169172
eslint: {
@@ -318,7 +321,7 @@ module.exports = function(grunt) {
318321
{
319322
cwd: 'build',
320323
src: '**/*.{zip,jpg,jpeg,png}',
321-
dest: 'uploadCode/' + deployVersion + '/',
324+
dest: 'deploy/code/' + deployVersion + '/',
322325
expand: true
323326
}
324327
]
@@ -328,14 +331,16 @@ module.exports = function(grunt) {
328331
// The source files are needed by the embedded examples in the docs app.
329332
{
330333
src: ['build/angular*.{js,js.map,min.js}', 'build/sitemap.xml'],
331-
dest: 'uploadDocs/',
334+
dest: 'deploy/docs/',
332335
expand: true,
333336
flatten: true
334337
},
335338
{
336339
cwd: 'build/docs',
337340
src: '**',
338-
dest: 'uploadDocs/',
341+
dest: 'deploy/docs/',
342+
expand: true
343+
}
339344
expand: true
340345
}
341346
]
@@ -359,7 +364,7 @@ module.exports = function(grunt) {
359364
src: ['**', '!**/*.{zip,png,jpeg,jpg}'],
360365
cwd: 'build',
361366
expand: true,
362-
dest: 'uploadCode/' + deployVersion + '/'
367+
dest: 'deploy/code/' + deployVersion + '/'
363368
}
364369
},
365370

@@ -459,7 +464,7 @@ module.exports = function(grunt) {
459464
'merge-conflict',
460465
'eslint'
461466
]);
462-
grunt.registerTask('prepareFirebaseDeploy', [
467+
grunt.registerTask('prepareDeploy', [
463468
'package',
464469
'compress:deployFirebaseCode',
465470
'copy:deployFirebaseCode',

lib/grunt/utils.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,12 @@ module.exports = {
297297
// Our Firebase projects are in subfolders, but Travis expects them in the root,
298298
// so we need to modify the upload folder path and copy the file into the root
299299
firebaseDocsJsonForTravis: function() {
300-
var fileName = 'scripts/docs.angularjs.org-firebase/firebase.json';
300+
var docsScriptFolder = 'scripts/docs.angularjs.org-firebase/';
301+
302+
var fileName = docsScriptFolder + 'firebase.json';
301303
var json = grunt.file.readJSON(fileName);
302304

303-
json.hosting.public = 'uploadDocs';
305+
json.hosting.public = 'deploy/docs';
304306

305307
grunt.file.write('firebase.json', JSON.stringify(json));
306308
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"hosting": {
3-
"public": "../../uploadDocs",
3+
"public": "../../deploy/docs",
44
"ignore": [
55
"/index.html",
66
"/index-debug.html",

scripts/travis/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ case "$JOB" in
7979
fi
8080

8181
if [[ "$DEPLOY_DOCS" == true || "$DEPLOY_CODE" == true ]]; then
82-
grunt prepareFirebaseDeploy
82+
grunt prepareDeploy
8383
else
8484
echo "Skipping deployment build because conditions have not been met."
8585
fi

0 commit comments

Comments
 (0)