Skip to content

Commit 0f3982d

Browse files
committed
Añado gulp con browsersync + sass.
1 parent d0bae89 commit 0f3982d

File tree

6 files changed

+4523
-13
lines changed

6 files changed

+4523
-13
lines changed

Gulpfile.js

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
"use strict"
2+
var gulp = require('gulp');
3+
var browserSync = require('browser-sync').create();
4+
var sass = require('gulp-sass');
5+
6+
var STATIC_PATH = 'app/static';
7+
var SASS_PATTERN = STATIC_PATH + '/scss/**/*.scss';
8+
9+
gulp.task('styles', function(){
10+
return gulp.src(SASS_PATTERN)
11+
.pipe(sass().on('error', sass.logError))
12+
.pipe(gulp.dest(STATIC_PATH + '/css/'))
13+
.pipe(browserSync.stream());
14+
})
15+
16+
gulp.task('serve', ['styles'], function(){
17+
browserSync.init({
18+
server: 'app/'
19+
})
20+
21+
22+
gulp.watch(SASS_PATTERN, ['styles']);
23+
gulp.watch('app/**/*.js').on('change', browserSync.stream);
24+
gulp.watch('app/**/*.html').on('change', browserSync.reload);
25+
})
26+
27+
gulp.task('default', ['serve']);

app/index.html

+1-13
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,7 @@
88
<link href="bower_components/angular-ui-select/dist/select.css" rel="stylesheet">
99
<link href="bower_components/selectize/dist/css/selectize.css" rel="stylesheet"/>
1010
<link href="bower_components/components-font-awesome/css/font-awesome.min.css" rel="stylesheet">
11-
<style>
12-
ul {
13-
padding-left: 0;
14-
}
15-
li.high-scores{
16-
list-style: none;
17-
background-color: #ffff66;
18-
font-size: 0.8em;
19-
border: 1px dashed #f2f2f2;
20-
cursor: pointer;
21-
padding-left: 0;
22-
}
23-
</style>
11+
<link href="static/css/high-score.css" rel="stylesheet">
2412
</head>
2513
<body ng-app="gameDevApp">
2614

app/static/css/high-score.css

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
ul {
2+
padding-left: 0; }
3+
4+
li.high-scores {
5+
list-style: none;
6+
background-color: #ffff66;
7+
font-size: 0.8em;
8+
border: 1px dashed #f2f2f2;
9+
cursor: pointer;
10+
padding-left: 0; }
11+
12+
small {
13+
font-size: 4em; }

app/static/scss/high-score.scss

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ul {
2+
padding-left: 0;
3+
}
4+
li.high-scores{
5+
list-style: none;
6+
background-color: #ffff66;
7+
font-size: 0.8em;
8+
border: 1px dashed #f2f2f2;
9+
cursor: pointer;
10+
padding-left: 0;
11+
}
12+
13+
small{
14+
font-size:4em;
15+
}

0 commit comments

Comments
 (0)