Permalink
Browse files

Updated loader, MD5 library moved to lfm plugin

  • Loading branch information...
1 parent 40d6842 commit 75388aeccfb388b1ab95b10a47d9cbc19f1f4500 @buger committed Jan 8, 2012
Showing with 5,844 additions and 5,453 deletions.
  1. +8 −6 Cakefile
  2. +1 −0 background.html
  3. +1,361 −1,339 build/bg.js
  4. +1 −1 build/bg.min.js
  5. +208 −0 build/plugin_styles.css
  6. +4,010 −3,849 build/popup.js
  7. +1 −1 build/popup.min.js
  8. +1 −0 index.html
  9. +0 −3 lib/browser_api.js
  10. +0 −201 lib/md5.js
  11. +178 −0 plugins/lastfm/md5.js
  12. +2 −0 plugins/lastfm/package.json
  13. +16 −6 src/chromus.coffee
  14. +10 −5 src/chromus.js
  15. +33 −30 src/chromus_loader.coffee
  16. +14 −12 src/chromus_loader.js
View
@@ -28,6 +28,7 @@ yepnope.getFiles = (prefix) ->
result
GLOBAL.yepnope = yepnope
+GLOBAL.debug = true
GLOBAL.browser =
extension:
@@ -37,17 +38,18 @@ GLOBAL.$ =
getJSON: (path, callback) ->
path = path.replace(/\?.*/,'')
- fs.readFileSync path, "utf-8", (err, data) ->
- data = JSON.parse(data)
- callback(data)
+ data = fs.readFileSync path, "utf-8"
+ data = JSON.parse(data)
+ callback(data)
require "./src/chromus_loader.coffee"
require "./src/chromus.coffee"
concat = (fileList, distPath) ->
out = fileList.map (filePath) ->
- fs.readFileSync(filePath, 'utf-8')
+ content = fs.readFileSync(filePath, 'utf-8')
+ "// File: #{filePath}\n#{content}"
fs.writeFileSync distPath, out.join("\n"), "utf-8"
@@ -69,10 +71,10 @@ uglify = (srcPath, distPath, header = "") ->
task "build", "Build everything and minify", (options) ->
popupjs = yepnope.getFiles('popup')
concat popupjs, "./build/popup.js"
- uglify "./build/popup.js", "./build/popup.min.js", "window.debug=false;"
+ uglify "./build/popup.js", "./build/popup.min.js"
bgjs = yepnope.getFiles('bg')
concat bgjs, "./build/bg.js"
- uglify "./build/bg.js", "./build/bg.min.js", "window.debug=false;"
+ uglify "./build/bg.js", "./build/bg.min.js"
concat yepnope.getFiles('css'), "./build/plugin_styles.css"
View
@@ -4,6 +4,7 @@
<div id="vk_search"></div>
<script src="lib/yepnope.js"></script>
+ <script src="lib/browser_api.js"></script>
<script src="src/chromus_loader.js"></script>
</body>
</html>
Oops, something went wrong.

0 comments on commit 75388ae

Please sign in to comment.