Skip to content

Commit 2f571a9

Browse files
matskomhevery
authored andcommitted
chore(ngdocs): move angular-bootstrap.js to be generated only inside the docs and remove from the build process
1 parent 9f4f593 commit 2f571a9

File tree

11 files changed

+13
-12
lines changed

11 files changed

+13
-12
lines changed

Gruntfile.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ module.exports = function(grunt) {
115115
src: util.wrap(['src/ngCookies/cookies.js'], 'module')
116116
},
117117
bootstrap: {
118-
dest: 'build/angular-bootstrap.js',
119-
src: util.wrap(['src/bootstrap/bootstrap.js'], 'module')
118+
dest: 'build/docs/components/angular-bootstrap.js',
119+
src: util.wrap(['docs/components/bootstrap/bootstrap.js'], 'module')
120120
},
121121
bootstrapPrettify: {
122-
dest: 'build/angular-bootstrap-prettify.js',
123-
src: util.wrap(['src/bootstrap/bootstrap-prettify.js', 'src/bootstrap/google-prettify/prettify.js'], 'module'),
122+
dest: 'build/docs/components/angular-bootstrap-prettify.js',
123+
src: util.wrap(['docs/components/bootstrap/bootstrap-prettify.js', 'docs/components/bootstrap/google-prettify/prettify.js'], 'module'),
124124
styles: {
125-
css: ['src/bootstrap/google-prettify/prettify.css'],
125+
css: ['docs/components/bootstrap/google-prettify/prettify.css'],
126126
minify: true
127127
}
128128
}
@@ -136,8 +136,8 @@ module.exports = function(grunt) {
136136
mobile: 'build/angular-mobile.js',
137137
resource: 'build/angular-resource.js',
138138
sanitize: 'build/angular-sanitize.js',
139-
bootstrap: 'build/angular-bootstrap.js',
140-
bootstrapPrettify: 'build/angular-bootstrap-prettify.js',
139+
bootstrap: 'build/docs/components/angular-bootstrap.js',
140+
bootstrapPrettify: 'build/docs/components/angular-bootstrap-prettify.js',
141141
},
142142

143143

angularFiles.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ angularFiles = {
7676
'src/ngMobile/directive/ngClick.js',
7777
'src/ngMobile/directive/ngSwipe.js',
7878

79-
'src/bootstrap/bootstrap.js'
79+
'docs/components/bootstrap/bootstrap.js'
8080
],
8181

8282
'angularScenario': [
@@ -104,7 +104,6 @@ angularFiles = {
104104
'test/ngScenario/jstd-scenario-adapter/*.js',
105105
'test/*.js',
106106
'test/auto/*.js',
107-
'test/bootstrap/*.js',
108107
'test/ng/*.js',
109108
'test/ng/directive/*.js',
110109
'test/ng/filter/*.js',
@@ -114,7 +113,9 @@ angularFiles = {
114113
'test/ngSanitize/directive/*.js',
115114
'test/ngSanitize/filter/*.js',
116115
'test/ngMock/*.js',
117-
'test/ngMobile/directive/*.js'
116+
'test/ngMobile/directive/*.js',
117+
'docs/component-spec/bootstrap/*.js',
118+
'docs/component-spec/*.js'
118119
],
119120

120121
'jstd': [
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/src/templates/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
addTag('script', {src: path('angular-cookies.js') }, sync);
4242
addTag('script', {src: path('angular-sanitize.js') }, sync);
4343
addTag('script', {src: path('angular-mobile.js') }, sync);
44-
addTag('script', {src: path('angular-bootstrap.js') }, sync);
45-
addTag('script', {src: path('angular-bootstrap-prettify.js') }, sync);
44+
addTag('script', {src: 'components/angular-bootstrap.js' }, sync);
45+
addTag('script', {src: 'components/angular-bootstrap-prettify.js' }, sync);
4646
addTag('script', {src: 'js/lunr.js' }, sync);
4747
addTag('script', {src: 'js/docs.js'}, sync);
4848
addTag('script', {src: 'docs-keywords.js'}, sync);

0 commit comments

Comments
 (0)