Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reorganized and verified that the extension is still working

  • Loading branch information...
commit 5036d2ff8e84063c8bbdbe233a13c4fd3052cd4f 1 parent 691d9fd
@rfletcher authored
View
1  .gitignore
@@ -0,0 +1 @@
+build/
View
4 README.md
@@ -25,5 +25,5 @@ will display the value 100.
[1]: http://github.com/rfletcher/safari-json-formatter/downloads
[2]: http://github.com/rfletcher/safari-json-formatter/commit/HEAD.json
-[i1]: https://github.com/rfletcher/safari-json-formatter/raw/HEAD/images/before.png
-[i2]: https://github.com/rfletcher/safari-json-formatter/raw/HEAD/images/after.png
+[i1]: https://github.com/rfletcher/safari-json-formatter/raw/HEAD/etc/images/before.png
+[i2]: https://github.com/rfletcher/safari-json-formatter/raw/HEAD/etc/images/after.png
View
22 Rakefile
@@ -0,0 +1,22 @@
+task :default do
+ build_dir = "build/JSON Formatter.safariextension"
+
+ FileUtils.rm_rf( build_dir )
+ FileUtils.mkdir_p( build_dir )
+
+ assets = [
+ "etc/Info.plist",
+ "etc/Settings.plist",
+ "etc/Update.plist",
+ "src/*"
+ ]
+
+ assets.each do |glob|
+ Dir.glob( glob ).each do |src|
+ puts "linking #{src}"
+ dest = "#{build_dir}/#{File.basename( src )}"
+ FileUtils.mkdir_p( File.dirname( dest ) )
+ FileUtils.link( src, dest )
+ end
+ end
+end
View
0  JSON Formatter.safariextension/Info.plist → etc/Info.plist
File renamed without changes
View
0  ... Formatter.safariextension/Settings.plist → etc/Settings.plist
File renamed without changes
View
0  Update.plist → etc/Update.plist
File renamed without changes
View
0  images/after.png → etc/images/after.png
File renamed without changes
View
0  images/before.png → etc/images/before.png
File renamed without changes
View
0  ...ormatter.safariextension/formattedJSON.js → src/formattedJSON.js
File renamed without changes
View
0  JSON Formatter.safariextension/proxy.html → src/proxy.html
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.