Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit 92bbfc3

Browse files
committed
add copyright to minified built JS file
1 parent 945639a commit 92bbfc3

File tree

6 files changed

+221
-175
lines changed

6 files changed

+221
-175
lines changed

build-conf/options/concat.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,12 @@ module.exports = {
1010
'dist/scripts/templates.js'
1111
],
1212
dest: 'dist/scripts/swagger-ui.js'
13+
},
14+
copyright: {
15+
src: [
16+
'copyright.txt',
17+
'dist/scripts/swagger-ui.min.js'
18+
],
19+
dest: 'dist/scripts/swagger-ui.min.js'
1320
}
1421
}

build-conf/prod.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ module.exports = function(grunt) {
1313
'html2js:dist',
1414
'concat:dist',
1515
'uglify:dist',
16-
'clean:postdist'
16+
'clean:postdist',
17+
'concat:copyright'
1718
];
1819
if (target === 'server') {
1920
tasks.push('connect:dist:keepalive');

copyright.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/*
2+
* Orange angular-swagger-ui - v0.1.5
3+
*
4+
* (C) 2015 Orange, all right reserved
5+
* MIT Licensed
6+
*/

dist/css/swagger-ui.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Orange angular-swagger-ui - v0.1.5
3+
*
4+
* (C) 2015 Orange, all right reserved
5+
* MIT Licensed
6+
*/
17
.swagger-ui .api-description {
28
margin-bottom: 20px;
39
}

0 commit comments

Comments
 (0)