+
diff --git a/app/views/result.html b/app/views/result.html
index bbd3583..587a31d 100644
--- a/app/views/result.html
+++ b/app/views/result.html
@@ -1,3 +1,6 @@
+
+
@@ -28,4 +31,11 @@
.t {
font-weight:bold;
}
->
+
+
+
+
diff --git a/app/views/shop.html b/app/views/shop.html
index 0876251..1eab237 100644
--- a/app/views/shop.html
+++ b/app/views/shop.html
@@ -1,3 +1,6 @@
+
+
+
+
+
+
+
+
+
diff --git a/app/views/skiclubs.html b/app/views/skiclubs.html
index dcfadb9..fbc5b67 100644
--- a/app/views/skiclubs.html
+++ b/app/views/skiclubs.html
@@ -1,3 +1,6 @@
+
+
+
+
+
-
+
diff --git a/app/views/sponsors.html b/app/views/sponsors.html
index b3ea945..610e543 100644
--- a/app/views/sponsors.html
+++ b/app/views/sponsors.html
@@ -24,18 +24,19 @@
Soutenons la relève!
extrêmement importants car un jeune a besoin de sentir que beaucoup de
gens sont derrière lui, même s’il ne les connaît pas. Et c’est justement
sur ce point que votre aide nous est indispensable!
-
De manière très concrète, pour chaque soutien que nous réussirons à décrocher,
- nous appliquerons la clé de répartition suivante:
-
-
- - la moitié des fonds récoltés sera directement versée aux blogueurs
- tooski;
-
- - l’autre moitié servira à couvrir les frais techniques dépassant ceux
- que tooski prend déjà à sa charge, nous permettant par conséquent
- de gérer plus de blogs.
-
-
+
Pour devenir mentor
diff --git a/gulpfile.js b/gulpfile.js
new file mode 100644
index 0000000..11d9d5e
--- /dev/null
+++ b/gulpfile.js
@@ -0,0 +1,180 @@
+var gulp = require('gulp');
+
+// Load plugins
+var $ = require('gulp-load-plugins')();
+
+// Config
+var config = {
+
bowerDir: './app/bower_components'
,
+ buildPath: './dist',
+
cssPath: './dist/styles',
+ fontsPath: './app/fonts',
+
htmlPath: './app',
+ imagesPath: './app/images',
+
jsPath: './app/scripts',
+
sassPath: './app/styles',
+}
+
+gulp.task('connectDev', function () {
+ $.connect.server({
+ root: ['app', 'tmp'],
+ port: 8001,
+ livereload: true
+ });
+});
+
+gulp.task('connectDist', function () {
+ $.connect.server({
+ root: 'dist',
+ port: 8002,
+ livereload: true
+ });
+});
+
+gulp.task('bower', function() {
+ return $.bower()
+
.pipe(gulp.dest(config.bowerDir))
;
+});
+
+gulp.task('bower-components', function() {
+ return gulp.src(config.htmlPath + '/bower_components/**/*')
+
.pipe(gulp.dest(config.buildPath + '/bower_components'))
;
+});
+
+gulp.task('fonts', function () {
+ return gulp.src(config.fontsPath + '/*.ttf')
+ .pipe(gulp.dest(config.buildPath + '/fonts'))
+ .pipe($.connect.reload());
+});
+
+gulp.task('html', ["styles"], function () {
+ return gulp.src([
+ config.htmlPath + '/**/*.html',
+ '!' + config.htmlPath + '/bower_components/**/*.html'
+ ])
+ .pipe($.useref())
+ .pipe($.if('*.js', $.uglify()))
+ .pipe($.if('*.css', $.cleanCss()))
+ .pipe(gulp.dest(config.buildPath))
+ .pipe($.connect.reload());
+});
+
+gulp.task('images', function () {
+ return gulp.src([config.imagesPath + '/**/*.{gif,ico,jpg,png,svg}'])
+ .pipe(gulp.dest(config.buildPath + '/images'))
+ .pipe($.connect.reload());
+});
+
+gulp.task('misc', function () {
+ return gulp.src([
+ config.htmlPath + '/favicon.ico',
+ config.htmlPath + '/robots.txt'
+ ])
+ .pipe($.cache(gulp.dest(config.buildPath)))
+ .pipe($.connect.reload());
+});
+
+gulp.task('styles', function () {
+ return gulp.src(config.sassPath + '/main.scss')
+ .pipe($.sass({
+ style: 'expanded',
+ loadPath: [
+ config.sassPath,
+ config.bowerDir
+ ]
+ }))
+ .pipe($.autoprefixer({
+ browsers: ['last 2 versions'],
+ cascade: false
+ }))
+ .pipe($.cache(gulp.dest(config.sassPath)))
+ .pipe($.cleanCss())
+ .pipe($.cache(gulp.dest(config.cssPath)))
+ .pipe($.connect.reload());
+});
+
+// gulp.task('scripts', function () {
+// return gulp.src(config.jsPath + '/**/*.js')
+// .pipe($.concat('scripts.js'))
+// .pipe($.rename({suffix: '.min'}))
+// .pipe($.uglify())
+// .pipe($.cache(gulp.dest(config.buildPath + '/scripts')))
+// .pipe($.rev())
+// .pipe($.cache(gulp.dest(config.buildPath + '/scripts')))
+// .pipe($.rev.manifest(config.buildPath + '/rev-manifest.json', {
+// base: config.buildPath,
+// merge: true
+// }))
+// .pipe($.cache(gulp.dest(config.buildPath)))
+// .pipe($.connect.reload());
+// });
+
+gulp.task("revision", ["html"], function(){
+ return gulp.src(["dist/**/*.css", "dist/**/*.js"])
+ .pipe($.rev())
+ .pipe(gulp.dest(config.buildPath))
+ .pipe($.rev.manifest())
+ .pipe(gulp.dest(config.buildPath))
+})
+
+gulp.task("revreplace", ["revision"], function(){
+ var manifest = gulp.src(config.buildPath + "/rev-manifest.json");
+
+ return gulp.src(config.buildPath + "/index.html")
+ .pipe($.revReplace({manifest: manifest}))
+ .pipe(gulp.dest(config.buildPath));
+});
+
+gulp.task('watch', function () {
+ // Watch font files
+ gulp.watch([config.fontsPath + '/*'], ['fonts']);
+
+ // Watch .html files
+ gulp.watch([
+ config.jsPath + '/**/*.js',
+ config.htmlPath + '/**/*.html',
+ config.htmlPath + '/favicon.ico',
+ config.htmlPath + '/robots.txt'
+ ], ['html']);
+
+ // Watch images
+ gulp.watch([config.imagesPath + '/**/*.{gif,ico,jpg,png,svg}'], ['images']);
+
+ // Watch misc files
+ gulp.watch([
+ config.htmlPath + '/favicon.ico',
+ config.htmlPath + '/robots.txt'
+ ], ['misc']);
+
+ // Watch .scss files
+ gulp.watch([config.sassPath + '/**/*.scss'], ['styles']);
+
+ // Watch .js files
+ // gulp.watch(config.jsPath + '/**/*.js', ['scripts']);
+});
+
+gulp.task('clean-cache', function () {
+ return $.cache.clearAll();
+});
+
+gulp.task('clean', ['clean-cache'], function () {
+ return gulp.src(config.buildPath + '/*', {read: false})
+ .pipe($.rimraf());
+});
+
+// Build
+gulp.task('build', ['clean'], function () {
+ gulp.run('bower', 'bower-components', 'fonts', 'html', 'images', 'revreplace');
+});
+
+// Deploy on gh-pages branch
+gulp.task('deploy', function() {
+ return gulp.src(config.buildPath + '/**/*')
+ .pipe($.ghPages());
+});
+
+// Dist serve
+gulp.task('serve', ['connectDist']);
+
+// Default task
+gulp.task('default', ['connectDev', 'build', 'watch']);
diff --git a/package.json b/package.json
index 10faf00..0ce210a 100644
--- a/package.json
+++ b/package.json
@@ -1,34 +1,43 @@
{
"name": "website",
"version": "0.0.0",
+ "description": "website =======",
+ "main": "Gruntfile.js",
+ "directories": {
+ "test": "test"
+ },
"dependencies": {},
"devDependencies": {
- "grunt": "~0.4.1",
- "grunt-autoprefixer": "~0.4.0",
- "grunt-bower-install": "~1.0.0",
- "grunt-concurrent": "~0.5.0",
- "grunt-contrib-clean": "~0.5.0",
- "grunt-contrib-compass": "~0.7.2",
- "grunt-contrib-concat": "~0.3.0",
- "grunt-contrib-connect": "~0.5.0",
- "grunt-contrib-copy": "~0.4.1",
- "grunt-contrib-cssmin": "~0.7.0",
- "grunt-contrib-htmlmin": "~0.1.3",
- "grunt-contrib-imagemin": "~0.3.0",
- "grunt-contrib-jshint": "~0.7.1",
- "grunt-contrib-uglify": "~0.2.0",
- "grunt-contrib-watch": "~0.5.2",
- "grunt-google-cdn": "~0.2.0",
- "grunt-newer": "~0.6.1",
- "grunt-ngmin": "~0.0.2",
- "grunt-rev": "~0.1.0",
- "grunt-svgmin": "~0.2.0",
- "grunt-usemin": "~2.0.0",
- "jshint-stylish": "~0.1.3",
- "load-grunt-tasks": "~0.4.0",
- "time-grunt": "~0.2.1"
+ "gulp": "^3.9.1",
+ "gulp-autoprefixer": "^3.1.0",
+ "gulp-bower": "0.0.13",
+ "gulp-cache": "^0.4.5",
+ "gulp-clean-css": "^2.0.11",
+ "gulp-concat": "^2.6.0",
+ "gulp-connect": "^4.1.0",
+ "gulp-copy": "0.0.2",
+ "gulp-gh-pages": "^0.5.4",
+ "gulp-if": "^2.0.1",
+ "gulp-image": "^2.0.1",
+ "gulp-imagemin": "^3.0.1",
+ "gulp-load-plugins": "^1.2.4",
+ "gulp-notify": "^2.2.0",
+ "gulp-rename": "^1.2.2",
+ "gulp-rev": "^7.1.0",
+ "gulp-rev-replace": "^0.4.3",
+ "gulp-rimraf": "^0.2.0",
+ "gulp-sass": "^2.3.2",
+ "gulp-uglify": "^1.5.4",
+ "gulp-useref": "^3.1.0"
+ },
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://diadzine@bitbucket.org/ab_tooskich/website.git"
},
- "engines": {
- "node": ">=0.10.0"
- }
+ "author": "",
+ "license": "ISC",
+ "homepage": "https://bitbucket.org/ab_tooskich/website#readme"
}