Skip to content

Commit

Permalink
chore(ngdocs): move angular-bootstrap.js to be generated only inside …
Browse files Browse the repository at this point in the history
…the docs and remove from the build process
  • Loading branch information
matsko authored and mhevery committed May 20, 2013
1 parent 9f4f593 commit 2f571a9
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 12 deletions.
14 changes: 7 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ module.exports = function(grunt) {
src: util.wrap(['src/ngCookies/cookies.js'], 'module')
},
bootstrap: {
dest: 'build/angular-bootstrap.js',
src: util.wrap(['src/bootstrap/bootstrap.js'], 'module')
dest: 'build/docs/components/angular-bootstrap.js',
src: util.wrap(['docs/components/bootstrap/bootstrap.js'], 'module')
},
bootstrapPrettify: {
dest: 'build/angular-bootstrap-prettify.js',
src: util.wrap(['src/bootstrap/bootstrap-prettify.js', 'src/bootstrap/google-prettify/prettify.js'], 'module'),
dest: 'build/docs/components/angular-bootstrap-prettify.js',
src: util.wrap(['docs/components/bootstrap/bootstrap-prettify.js', 'docs/components/bootstrap/google-prettify/prettify.js'], 'module'),
styles: {
css: ['src/bootstrap/google-prettify/prettify.css'],
css: ['docs/components/bootstrap/google-prettify/prettify.css'],
minify: true
}
}
Expand All @@ -136,8 +136,8 @@ module.exports = function(grunt) {
mobile: 'build/angular-mobile.js',
resource: 'build/angular-resource.js',
sanitize: 'build/angular-sanitize.js',
bootstrap: 'build/angular-bootstrap.js',
bootstrapPrettify: 'build/angular-bootstrap-prettify.js',
bootstrap: 'build/docs/components/angular-bootstrap.js',
bootstrapPrettify: 'build/docs/components/angular-bootstrap-prettify.js',
},


Expand Down
7 changes: 4 additions & 3 deletions angularFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ angularFiles = {
'src/ngMobile/directive/ngClick.js',
'src/ngMobile/directive/ngSwipe.js',

'src/bootstrap/bootstrap.js'
'docs/components/bootstrap/bootstrap.js'
],

'angularScenario': [
Expand Down Expand Up @@ -104,7 +104,6 @@ angularFiles = {
'test/ngScenario/jstd-scenario-adapter/*.js',
'test/*.js',
'test/auto/*.js',
'test/bootstrap/*.js',
'test/ng/*.js',
'test/ng/directive/*.js',
'test/ng/filter/*.js',
Expand All @@ -114,7 +113,9 @@ angularFiles = {
'test/ngSanitize/directive/*.js',
'test/ngSanitize/filter/*.js',
'test/ngMock/*.js',
'test/ngMobile/directive/*.js'
'test/ngMobile/directive/*.js',
'docs/component-spec/bootstrap/*.js',
'docs/component-spec/*.js'
],

'jstd': [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/src/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
addTag('script', {src: path('angular-cookies.js') }, sync);
addTag('script', {src: path('angular-sanitize.js') }, sync);
addTag('script', {src: path('angular-mobile.js') }, sync);
addTag('script', {src: path('angular-bootstrap.js') }, sync);
addTag('script', {src: path('angular-bootstrap-prettify.js') }, sync);
addTag('script', {src: 'components/angular-bootstrap.js' }, sync);
addTag('script', {src: 'components/angular-bootstrap-prettify.js' }, sync);
addTag('script', {src: 'js/lunr.js' }, sync);
addTag('script', {src: 'js/docs.js'}, sync);
addTag('script', {src: 'docs-keywords.js'}, sync);
Expand Down

0 comments on commit 2f571a9

Please sign in to comment.