From c75650b5bc3ed62e43591a737435d764e5fdcf29 Mon Sep 17 00:00:00 2001 From: Douglas Duteil Date: Sat, 28 Dec 2013 19:04:18 +0100 Subject: [PATCH] fix(grunt): add forgotten publish.js file --- publish.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 publish.js diff --git a/publish.js b/publish.js new file mode 100644 index 0000000..edf5d89 --- /dev/null +++ b/publish.js @@ -0,0 +1,22 @@ +/* jshint node:true */ + +'use strict'; + +var fs = require('fs'); + +module.exports = function() { + + var js_dependencies =[ + 'https://rawgithub.com/angular-ui/ui-utils/master/modules/event/event.js', + 'https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&callback=initCall' + ]; + + return { + humaName : 'UI.Map', + repoName : 'ui-map', + inlineHTML : fs.readFileSync(__dirname + '/demo/demo.html'), + inlineJS : fs.readFileSync(__dirname + '/demo/demo.js'), + css: ['demo/demo.css'], + js : js_dependencies.concat(['dist/ui-map.min.js']) + }; +};