Commit Graph

29 Commits

Author SHA1 Message Date
Tony Tam
770fcc19c0 Merge branch 'minify-dist-tasks' of https://github.com/thinkWhere/swagger-ui into thinkWhere-minify-dist-tasks 2016-11-23 20:17:00 -08:00
Richard van der Hoff
edeba22a2a Use gulp-sourcemaps to generate a sourcemap
Chrome gets very confused by the sourceMappingURL from swagger-client.js. Use
gulp-sourcemaps to generate our own sourcemap which it is happier with (and
means that the other bits of swagger-ui.js are also correctly sourcemapped).
2016-11-21 19:00:22 +00:00
Iain Hunter
5f9fd934af Reorder vars as per review request 2016-11-17 15:58:55 +00:00
Iain Hunter
5f2beb16a9 Add missing semi-colon 2016-11-04 11:05:55 +00:00
Iain Hunter
085d84e16e Add tasks to gulpfile to minify all CSS and JS libs when building dist 2016-11-04 10:48:42 +00:00
Anna Bodnia
c385e24839 moved sanitize-html to swagger-ui instead of calling in index.html 2016-09-01 18:49:54 +03:00
Anna Bodnia
c51c683424 fixed failing jshint 2016-08-09 15:26:19 +03:00
Anna Bodnia
20daf3c79e added version into handlebars file name 2016-08-09 14:55:01 +03:00
Anna Bodnia
1bb5b42549 removed commented code 2016-08-08 19:17:29 +03:00
Anna Bodnia
6a00aa8e98 Merge branch 'feature/issue-2306_' of /Users/bodnia/Documents/work/prj/swagger-ui with conflicts. 2016-08-08 19:12:11 +03:00
Tony Tam
515f142026 merged 2016-07-20 19:05:38 -07:00
Brandon Paterak
21ad53d8ce added a steam end to gulp-less to prevent less errors stopping watch 2016-04-27 11:16:40 -04:00
Sean Kennedy
1dc7894365 consistent handling of dev tasks so that clean and copy actions don't bother each other 2015-11-30 08:26:30 -05:00
Sean Kennedy
d7bc9b56d2 add targets to the gulpfile to simplify testing how various local specs display
(and modifying and looking again at those specs iteratively)

new gulp targets:
dev-dist: [lint, copy] (this runs the same code in dist, but without doing a clean first)
dev: [default, serve] (the task to run if you're iteratively making changes and don't want/need the dist directory to be regenerated every time)
2015-11-30 08:26:30 -05:00
Josh Ponelat
c0c5847bd3 add lang to gulpfile 2015-06-16 12:07:23 +02:00
Shawn Gong
1ef90c4240 rewrote into source files, generate using gulp 2015-06-02 10:11:00 -04:00
Josh Ponelat
558cc92dd6 add jshint to gulp..lint and dist 2015-04-29 11:29:19 +02:00
Mohsen Azimi
1ea77868aa Update TravisCI badge to show only master result and remove CoffeeScript references 2015-03-28 18:07:58 -07:00
Mohsen Azimi
99eaf4eb23 Use SwaggerJS from npm
* Uses npm to download latest swagger-js (for now. When swagger-js is
   released we will replace git address with actual swagger-ui)

* Uses `postinstall` to generate `browser` folder of swagger-ui. This
 can go when swagger-ui is published.
2015-03-25 12:49:39 -07:00
Mohsen Azimi
4e22ff8b96 Wrap all SwaggerUI code in a iife
to avoid leaking globals other than SwaggerUi and swaggerUi

TODO: we should remove swaggerUi global dependency too
2015-03-12 17:51:44 -07:00
Mohsen Azimi
07ac7fcf95 Fix all JSHint errors 2015-03-12 16:50:57 -07:00
Mohsen Azimi
9ad29d72b0 remove coffeescript from build process 2015-03-12 16:22:19 -07:00
Mohsen Azimi
7006e86fa5 Remove global references to swaggerUi object
By passing parent view as an option to child views, child views can
access parent views and eventually can access model of MainView

There is alos a new domEl option available for SwaggerUI constructor.
User can send domEl instead of dom_id to specifiy which element they
want to render to
2015-03-10 11:16:08 -07:00
Nuno Vieira
f10c0ff405 add print style sheet 2015-02-27 18:18:14 +00:00
Mohsen Azimi
0cd13c76f5 user gulp-order to produce ordered template 2015-02-25 15:53:02 -08:00
Mohsen Azimi
82323e2eec When running gulp watch watch handlebars file changes too 2015-02-25 13:52:24 -08:00
Mohsen Azimi
a6f20aae09 Add underscore source map file
Fixes #949
2015-02-23 08:59:51 -08:00
Tony Tam
f2f939e24e added gulp-header to write metadata in comments of output library #900 2015-02-02 20:17:00 -08:00
Tony Tam
038443fc22 merged from develop_2.0 2015-02-01 02:27:43 -08:00