Skip to content

Commit 91104f8

Browse files
committed
add ftp script to auto deploy to angularjs.org
1 parent 26b5ae4 commit 91104f8

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ angular.js
44
angular-minified.js
55
angular-debug.js
66
angular-scenario.js
7+
angularjs.netrc

Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,9 @@ task :lint do
120120
out = %x(lib/jsl/jsl -conf lib/jsl/jsl.default.conf)
121121
print out
122122
end
123+
124+
desc 'push_angularajs'
125+
task :push_angularjs do
126+
Rake::Task['compile'].execute 0
127+
sh %(cat angularjs.ftp | ftp -N angularjs.netrc angularjs.org)
128+
end

angularjs.ftp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bin
2+
cd angularjs.org/ng
3+
put angular-debug.js js/angular-debug.js
4+
put angular-minified.js js/angular-minified.js
5+
put angular-scenario.js js/angular-scenario.js

0 commit comments

Comments
 (0)