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

Commit 5a02252

Browse files
committed
chore(deploy): rename deploy folders
1 parent 5acfac8 commit 5a02252

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
@@ -95,7 +95,7 @@ jobs:
9595
secret_access_key:
9696
secure: tHIFdSq55qkyZf9zT/3+VkhUrTvOTMuswxXU3KyWaBrSieZqG0UnUDyNm+n3lSfX95zEl/+rJAWbfvhVSxZi13ndOtvRF+MdI1cvow2JynP0aDSiPffEvVrZOmihD6mt2SlMfhskr5FTduQ69kZG6DfLcve1PPDaIwnbOv3phb8=
9797
bucket: code-angularjs-org-338b8.appspot.com
98-
local-dir: uploadCode
98+
local-dir: deploy/code
9999
detect_encoding: true # detects gzip compression
100100
on:
101101
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: {
@@ -332,7 +335,7 @@ module.exports = function(grunt) {
332335
{
333336
cwd: 'build',
334337
src: '**/*.{zip,jpg,jpeg,png}',
335-
dest: 'uploadCode/' + deployVersion + '/',
338+
dest: 'deploy/code/' + deployVersion + '/',
336339
expand: true
337340
}
338341
]
@@ -342,14 +345,16 @@ module.exports = function(grunt) {
342345
// The source files are needed by the embedded examples in the docs app.
343346
{
344347
src: ['build/angular*.{js,js.map,min.js}', 'build/sitemap.xml'],
345-
dest: 'uploadDocs/',
348+
dest: 'deploy/docs/',
346349
expand: true,
347350
flatten: true
348351
},
349352
{
350353
cwd: 'build/docs',
351354
src: '**',
352-
dest: 'uploadDocs/',
355+
dest: 'deploy/docs/',
356+
expand: true
357+
}
353358
expand: true
354359
}
355360
]
@@ -374,7 +379,7 @@ module.exports = function(grunt) {
374379
src: ['**', '!**/*.{zip,png,jpeg,jpg}'],
375380
cwd: 'build',
376381
expand: true,
377-
dest: 'uploadCode/' + deployVersion + '/'
382+
dest: 'deploy/code/' + deployVersion + '/'
378383
}
379384
},
380385

@@ -474,7 +479,7 @@ module.exports = function(grunt) {
474479
'merge-conflict',
475480
'eslint'
476481
]);
477-
grunt.registerTask('prepareFirebaseDeploy', [
482+
grunt.registerTask('prepareDeploy', [
478483
'package',
479484
'compress:deployFirebaseCode',
480485
'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)