Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
chore(website): Remove unnecessary scripts and css file from index.
Browse files Browse the repository at this point in the history
Fix bootstrap css path in less
Remove gulp task to copy files from bower
Remove unnecessary css/bootstrap.min.css, js/bootstrap.min.js, and js/lodash.min.js
  • Loading branch information
andresdominguez authored and sjelin committed Dec 26, 2014
1 parent 9c9945c commit 3f011fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion website/css/protractor.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import 'prettify.css';
@import 'bootstrap.min.css';
@import '../bower_components/bootstrap/dist/css/bootstrap.min.css';

@protractor-red: #e23237;
@protractor-red-dark: #b52e31;
Expand Down
17 changes: 4 additions & 13 deletions website/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ var paths = {
html: ['index.html', 'partials/*.html'],
js: [
'js/modules.js',
'js/**/*.js'
'js/**/*.js',
'bower_components/bootstrap/dist/js/bootstrap.min.js',
'bower_components/lodash/dist/lodash.min.js'
],
less: ['css/protractor.less'],
outputDir: 'build/'
Expand All @@ -42,16 +44,6 @@ gulp.task('dgeni', function() {
});
});

gulp.task('copyBowerFiles', function() {
// Bootstrap, lodash.
gulp.src([
'bower_components/bootstrap/dist/js/bootstrap.min.js',
'bower_components/lodash/dist/lodash.min.js'
]).pipe(gulp.dest(paths.outputDir + '/js'));
gulp.src('bower_components/bootstrap/dist/css/bootstrap.min.css')
.pipe(gulp.dest(paths.outputDir + '/css'));
});

gulp.task('copyFiles', function() {
// html.
gulp.src('index.html')
Expand Down Expand Up @@ -135,6 +127,5 @@ gulp.task('default', [
'less',
'markdown',
'js',
'copyFiles',
'copyBowerFiles'
'copyFiles'
]);
3 changes: 0 additions & 3 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="css/protractor.css"/>
<link rel="stylesheet" href="css/bootstrap.min.css"/>
<link rel="icon" href="img/favicon.ico" sizes="16x16 32x32 48x48 64x64"
type="image/x-icon">
<title>Protractor - end to end testing for AngularJS</title>
Expand Down Expand Up @@ -85,8 +84,6 @@
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.7/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.7/angular-route.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/lodash.min.js"></script>
<script src="protractorApp.js"></script>
</body>
</html>

0 comments on commit 3f011fd

Please sign in to comment.