mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
add ftp script to auto deploy to angularjs.org
This commit is contained in:
parent
26b5ae4109
commit
91104f878d
3 changed files with 12 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -4,3 +4,4 @@ angular.js
|
|||
angular-minified.js
|
||||
angular-debug.js
|
||||
angular-scenario.js
|
||||
angularjs.netrc
|
||||
6
Rakefile
6
Rakefile
|
|
@ -120,3 +120,9 @@ task :lint do
|
|||
out = %x(lib/jsl/jsl -conf lib/jsl/jsl.default.conf)
|
||||
print out
|
||||
end
|
||||
|
||||
desc 'push_angularajs'
|
||||
task :push_angularjs do
|
||||
Rake::Task['compile'].execute 0
|
||||
sh %(cat angularjs.ftp | ftp -N angularjs.netrc angularjs.org)
|
||||
end
|
||||
|
|
|
|||
5
angularjs.ftp
Normal file
5
angularjs.ftp
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
bin
|
||||
cd angularjs.org/ng
|
||||
put angular-debug.js js/angular-debug.js
|
||||
put angular-minified.js js/angular-minified.js
|
||||
put angular-scenario.js js/angular-scenario.js
|
||||
Loading…
Reference in a new issue