Skip to content

Commit d6064ac

Browse files
chore(docs): update deployments to use angular material and not bootstrap
1 parent b65595c commit d6064ac

File tree

7 files changed

+48
-65
lines changed

7 files changed

+48
-65
lines changed

docs/app/src/app.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
angular.module('docsApp', [
2-
'ngRoute',
3-
'ngSanitize',
4-
'ngAnimate',
2+
'ngMaterial',
53
'DocsController',
64
'versionsData',
75
'pagesData',
@@ -11,9 +9,7 @@ angular.module('docsApp', [
119
'examples',
1210
'search',
1311
'tutorials',
14-
'versions',
15-
'bootstrap',
16-
'ui.bootstrap.dropdown'
12+
'versions'
1713
])
1814

1915
.config(['$locationProvider', function($locationProvider) {

docs/bower.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"dependencies": {
44
"jquery": "2.1.1",
55
"lunr.js": "0.4.3",
6-
"open-sans-fontface": "1.0.4",
76
"google-code-prettify": "1.0.1",
8-
"bootstrap": "3.1.1"
7+
"angular-material": "master",
8+
"angular-sanitize": "1.3.x"
99
}
1010
}

docs/config/services/deployments/debug.js

+12-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
module.exports = function debugDeployment(getVersion) {
3+
module.exports = function debugDeployment(getComponentPath) {
44
return {
55
name: 'debug',
66
examples: {
@@ -10,27 +10,23 @@ module.exports = function debugDeployment(getVersion) {
1010
dependencyPath: '../../../'
1111
},
1212
scripts: [
13-
'../angular.js',
14-
'../angular-resource.js',
15-
'../angular-route.js',
16-
'../angular-cookies.js',
17-
'../angular-sanitize.js',
18-
'../angular-touch.js',
19-
'../angular-animate.js',
20-
'components/marked-' + getVersion('marked', 'node_modules', 'package.json') + '/lib/marked.js',
21-
'js/angular-bootstrap/bootstrap.js',
22-
'js/angular-bootstrap/dropdown-toggle.js',
23-
'components/lunr.js-' + getVersion('lunr.js') + '/lunr.js',
24-
'components/google-code-prettify-' + getVersion('google-code-prettify') + '/src/prettify.js',
25-
'components/google-code-prettify-' + getVersion('google-code-prettify') + '/src/lang-css.js',
13+
getComponentPath('hammerjs', 'hammer.js'),
14+
getComponentPath('angular'),
15+
getComponentPath('angular-animate'),
16+
getComponentPath('angular-aria'),
17+
getComponentPath('angular-material'),
18+
getComponentPath('angular-sanitize'),
19+
getComponentPath('marked', 'lib/marked.js', 'node_modules', 'package.json'),
20+
getComponentPath('lunr.js', 'lunr.js'),
21+
getComponentPath('google-code-prettify', 'src/prettify.js'),
22+
getComponentPath('google-code-prettify', 'src/lang-css.js'),
2623
'js/versions-data.js',
2724
'js/pages-data.js',
2825
'js/nav-data.js',
2926
'js/docs.js'
3027
],
3128
stylesheets: [
32-
'components/bootstrap-' + getVersion('bootstrap') + '/css/bootstrap.css',
33-
'components/open-sans-fontface-' + getVersion('open-sans-fontface') + '/open-sans.css',
29+
getComponentPath('angular-material', 'angular-material.css'),
3430
'css/prettify-theme.css',
3531
'css/docs.css',
3632
'css/animations.css'

docs/config/services/deployments/default.js

+12-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
module.exports = function defaultDeployment(getVersion) {
3+
module.exports = function defaultDeployment(getComponentPath) {
44
return {
55
name: 'default',
66
examples: {
@@ -10,27 +10,23 @@ module.exports = function defaultDeployment(getVersion) {
1010
dependencyPath: '../../../'
1111
},
1212
scripts: [
13-
'../angular.min.js',
14-
'../angular-resource.min.js',
15-
'../angular-route.min.js',
16-
'../angular-cookies.min.js',
17-
'../angular-sanitize.min.js',
18-
'../angular-touch.min.js',
19-
'../angular-animate.min.js',
20-
'components/marked-' + getVersion('marked', 'node_modules', 'package.json') + '/lib/marked.js',
21-
'js/angular-bootstrap/bootstrap.min.js',
22-
'js/angular-bootstrap/dropdown-toggle.min.js',
23-
'components/lunr.js-' + getVersion('lunr.js') + '/lunr.min.js',
24-
'components/google-code-prettify-' + getVersion('google-code-prettify') + '/src/prettify.js',
25-
'components/google-code-prettify-' + getVersion('google-code-prettify') + '/src/lang-css.js',
13+
getComponentPath('hammerjs', 'hammer.js'),
14+
getComponentPath('angular'),
15+
getComponentPath('angular-animate'),
16+
getComponentPath('angular-aria'),
17+
getComponentPath('angular-material'),
18+
getComponentPath('angular-sanitize'),
19+
getComponentPath('marked', 'lib/marked.js', 'node_modules', 'package.json'),
20+
getComponentPath('lunr.js', 'lunr.min.js'),
21+
getComponentPath('google-code-prettify', 'src/prettify.js'),
22+
getComponentPath('google-code-prettify', 'src/lang-css.js'),
2623
'js/versions-data.js',
2724
'js/pages-data.js',
2825
'js/nav-data.js',
2926
'js/docs.min.js'
3027
],
3128
stylesheets: [
32-
'components/bootstrap-' + getVersion('bootstrap') + '/css/bootstrap.min.css',
33-
'components/open-sans-fontface-' + getVersion('open-sans-fontface') + '/open-sans.css',
29+
getComponentPath('angular-material', 'angular-material.css'),
3430
'css/prettify-theme.css',
3531
'css/docs.css',
3632
'css/animations.css'

docs/config/services/deployments/jquery.js

+14-18
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,36 @@
11
"use strict";
22

3-
module.exports = function jqueryDeployment(getVersion) {
3+
module.exports = function jqueryDeployment(getComponentPath) {
44
return {
55
name: 'jquery',
66
examples: {
77
commonFiles: {
88
scripts: [
9-
'../../components/jquery-' + getVersion('jquery') + '/jquery.js',
9+
'../../' + getComponentPath('jquery'),
1010
'../../../angular.js'
1111
]
1212
},
1313
dependencyPath: '../../../'
1414
},
1515
scripts: [
16-
'components/jquery-' + getVersion('jquery') + '/jquery.js',
17-
'../angular.min.js',
18-
'../angular-resource.min.js',
19-
'../angular-route.min.js',
20-
'../angular-cookies.min.js',
21-
'../angular-sanitize.min.js',
22-
'../angular-touch.min.js',
23-
'../angular-animate.min.js',
24-
'components/marked-' + getVersion('marked', 'node_modules', 'package.json') + '/lib/marked.js',
25-
'js/angular-bootstrap/bootstrap.min.js',
26-
'js/angular-bootstrap/dropdown-toggle.min.js',
27-
'components/lunr.js-' + getVersion('lunr.js') + '/lunr.min.js',
28-
'components/google-code-prettify-' + getVersion('google-code-prettify') + '/src/prettify.js',
29-
'components/google-code-prettify-' + getVersion('google-code-prettify') + '/src/lang-css.js',
16+
getComponentPath('jquery'),
17+
getComponentPath('hammerjs', 'hammer.js'),
18+
getComponentPath('angular'),
19+
getComponentPath('angular-animate'),
20+
getComponentPath('angular-aria'),
21+
getComponentPath('angular-material'),
22+
getComponentPath('angular-sanitize'),
23+
getComponentPath('marked', 'lib/marked.js', 'node_modules', 'package.json'),
24+
getComponentPath('lunr.js', 'lunr.min.js'),
25+
getComponentPath('google-code-prettify', 'src/prettify.js'),
26+
getComponentPath('google-code-prettify', 'src/lang-css.js'),
3027
'js/versions-data.js',
3128
'js/pages-data.js',
3229
'js/nav-data.js',
3330
'js/docs.min.js'
3431
],
3532
stylesheets: [
36-
'components/bootstrap-' + getVersion('bootstrap') + '/css/bootstrap.min.css',
37-
'components/open-sans-fontface-' + getVersion('open-sans-fontface') + '/open-sans.css',
33+
getComponentPath('angular-material', 'angular-material.css'),
3834
'css/prettify-theme.css',
3935
'css/docs.css',
4036
'css/animations.css'

docs/config/services/deployments/production.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ module.exports = function productionDeployment(getVersion) {
2121
cdnUrl + '/angular-touch.min.js',
2222
cdnUrl + '/angular-animate.min.js',
2323
'components/marked-' + getVersion('marked', 'node_modules', 'package.json') + '/lib/marked.js',
24-
'js/angular-bootstrap/bootstrap.min.js',
25-
'js/angular-bootstrap/dropdown-toggle.min.js',
2624
'components/lunr.js-' + getVersion('lunr.js') + '/lunr.min.js',
2725
'components/google-code-prettify-' + getVersion('google-code-prettify') + '/src/prettify.js',
2826
'components/google-code-prettify-' + getVersion('google-code-prettify') + '/src/lang-css.js',
@@ -32,8 +30,6 @@ module.exports = function productionDeployment(getVersion) {
3230
'js/docs.min.js'
3331
],
3432
stylesheets: [
35-
'components/bootstrap-' + getVersion('bootstrap') + '/css/bootstrap.min.css',
36-
'components/open-sans-fontface-' + getVersion('open-sans-fontface') + '/open-sans.css',
3733
'css/prettify-theme.css',
3834
'css/docs.css',
3935
'css/animations.css'

docs/gulpfile.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,14 @@ gulp.task('assets', ['bower'], function() {
7777
.pipe(gulp.dest(outputFolder));
7878
}
7979
})),
80-
copyComponent('bootstrap', '/dist/**/*'),
81-
copyComponent('open-sans-fontface'),
80+
copyComponent('angular'),
81+
copyComponent('angular-animate'),
82+
copyComponent('angular-aria'),
83+
copyComponent('angular-material'),
84+
copyComponent('angular-sanitize'),
85+
copyComponent('hammerjs'),
8286
copyComponent('lunr.js','/*.js'),
8387
copyComponent('google-code-prettify'),
84-
copyComponent('jquery', '/dist/*.js'),
8588
copyComponent('marked', '/**/*.js', '../node_modules', 'package.json')
8689
);
8790
});

0 commit comments

Comments
 (0)