Skip to content

Commit

Permalink
chore(ngdocs): setup bower as the package manager for the docs pages
Browse files Browse the repository at this point in the history
  • Loading branch information
matsko authored and IgorMinar committed Jun 7, 2013
1 parent 079bf5f commit f56125d
Show file tree
Hide file tree
Showing 30 changed files with 122 additions and 18,112 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ performance/temp*.html
*~
angular.js.tmproj
node_modules
components
angular.xcodeproj
.idea
33 changes: 15 additions & 18 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-shell');
grunt.loadTasks('lib/grunt');

var NG_VERSION = util.getVersion();
Expand Down Expand Up @@ -63,11 +64,21 @@ module.exports = function(grunt) {
clean: {build: ['build']},


shell: {
bower: {
command: './node_modules/bower/bin/bower install',
options: {
stdout: false
}
}
},


build: {
scenario: {
dest: 'build/angular-scenario.js',
src: [
'lib/jquery/jquery.js',
'components/jquery/jquery.js',
util.wrap([files['angularSrc'], files['angularScenario']], 'ngScenario/angular')
],
styles: {
Expand Down Expand Up @@ -124,18 +135,6 @@ module.exports = function(grunt) {
cookies: {
dest: 'build/angular-cookies.js',
src: util.wrap(['src/ngCookies/cookies.js'], 'module')
},
bootstrap: {
dest: 'build/docs/components/angular-bootstrap.js',
src: util.wrap(['docs/components/bootstrap/bootstrap.js'], 'module')
},
bootstrapPrettify: {
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: ['docs/components/bootstrap/google-prettify/prettify.css'],
minify: true
}
}
},

Expand All @@ -147,9 +146,7 @@ module.exports = function(grunt) {
mobile: 'build/angular-mobile.js',
resource: 'build/angular-resource.js',
route: 'build/angular-route.js',
sanitize: 'build/angular-sanitize.js',
bootstrap: 'build/docs/components/angular-bootstrap.js',
bootstrapPrettify: 'build/docs/components/angular-bootstrap-prettify.js',
sanitize: 'build/angular-sanitize.js'
},


Expand Down Expand Up @@ -184,9 +181,9 @@ module.exports = function(grunt) {

//alias tasks
grunt.registerTask('test:unit', ['test:jqlite', 'test:jquery', 'test:modules']);
grunt.registerTask('minify', ['clean', 'build', 'minall']);
grunt.registerTask('minify', ['shell:bower','clean', 'build', 'minall']);
grunt.registerTask('test:e2e', ['connect:testserver', 'test:end2end']);
grunt.registerTask('webserver', ['connect:devserver']);
grunt.registerTask('package', ['clean', 'buildall', 'minall', 'docs', 'copy', 'write', 'compress']);
grunt.registerTask('package', ['shell:bower','clean', 'buildall', 'minall', 'docs', 'copy', 'write', 'compress']);
grunt.registerTask('default', ['package']);
};
6 changes: 3 additions & 3 deletions angularFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ angularFiles = {
'src/ngMobile/directive/ngClick.js',
'src/ngMobile/directive/ngSwipe.js',

'docs/components/bootstrap/bootstrap.js'
'docs/components/angular-bootstrap/bootstrap.js'
],

'angularScenario': [
Expand Down Expand Up @@ -120,7 +120,7 @@ angularFiles = {
'jstd': [
'lib/jasmine/jasmine.js',
'lib/jasmine-jstd-adapter/JasmineAdapter.js',
'lib/jquery/jquery.js',
'components/jquery/jquery.js',
'test/jquery_remove.js',
'@angularSrc',
'src/publishExternalApis.js',
Expand Down Expand Up @@ -180,7 +180,7 @@ angularFiles = {
'jstdJquery': [
'lib/jasmine/jasmine.js',
'lib/jasmine-jstd-adapter/JasmineAdapter.js',
'lib/jquery/jquery.js',
'components/jquery/jquery.js',
'test/jquery_alias.js',
'@angularSrc',
'src/publishExternalApis.js',
Expand Down
10 changes: 10 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "AngularJS",
"devDependencies": {
"jquery": "git://github.com/components/jquery.git#v1.8.3",
"lunr.js": "0.3.1",
"google-code-prettify": "1.0.0",
"components-font-awesome": "3.1.0",
"bootstrap": "https://raw.github.com/twitter/bootstrap/v2.0.2/docs/assets/bootstrap.zip"
}
}
File renamed without changes.
Loading

0 comments on commit f56125d

Please sign in to comment.