Bachir Soussi Chiadmi 8 vuotta sitten
vanhempi
commit
442593e0b9
6 muutettua tiedostoa jossa 142 lisäystä ja 0 poistoa
  1. 1 0
      server/.gitignore
  2. 23 0
      server/bower.json
  3. 28 0
      server/composer.json
  4. 44 0
      server/gulpfile.js
  5. 23 0
      server/index.html
  6. 23 0
      server/package.json

+ 1 - 0
server/.gitignore

@@ -0,0 +1 @@
+node_modules

+ 23 - 0
server/bower.json

@@ -0,0 +1,23 @@
+{
+  "name": "hehe-rover",
+  "description": "hehe rover website",
+  "main": "gulpfile.js",
+  "authors": [
+    "Bachir Soussi Chiadmi"
+  ],
+  "license": "MIT",
+  "moduleType": [],
+  "homepage": "",
+  "ignore": [
+    "**/.*",
+    "node_modules",
+    "bower_components",
+    "test",
+    "tests"
+  ],
+  "dependencies": {
+    "jquery": "^2.2.1",
+    "normalize-css": "normalize.css#^3.0.3"
+  },
+  "devDependencies": {}
+}

+ 28 - 0
server/composer.json

@@ -0,0 +1,28 @@
+{
+    "name": "getgrav/grav-theme-antimatter",
+    "type": "grav-theme",
+    "description": "The default theme for the Grav flat-file CMS",
+    "keywords": ["theme","grav"],
+    "homepage": "http://getgrav.org",
+    "license": "MIT",
+    "support": {
+        "irc": "irc://irc.freenode.org/grav"
+    },
+    "authors": [
+        {
+            "name": "Team Grav",
+            "email": "devs@getgrav.org",
+            "homepage": "http://getgrav.org"
+        }
+    ],
+    "require": {
+        "php": ">=5.4.0",
+        "composer/installers": "~1.0"
+    },
+    "extra": {
+        "installer-name": "antimatter",
+        "installer-paths": {
+            "user/themes/{$name}/": ["getgrav/grav-theme-antimatter"]
+        }
+    }
+}

+ 44 - 0
server/gulpfile.js

@@ -0,0 +1,44 @@
+'use strict';
+
+var gulp = require('gulp');
+var sass = require('gulp-sass');
+var watch = require('gulp-watch');
+var autoprefixer = require('gulp-autoprefixer');
+var cleancss = require('gulp-clean-css');
+var jsmin = require('gulp-jsmin');
+var rename = require('gulp-rename');
+
+gulp.task('scripts', function () {
+    gulp.src('./js/*.js')
+        .pipe(jsmin())
+        .pipe(rename({suffix: '.min'}))
+        .pipe(gulp.dest('./js/dist/'));
+});
+
+gulp.task('scss', function () {
+  gulp.src('./scss/*.scss')
+    .pipe(sass().on('error', sass.logError))
+    .pipe(gulp.dest('./css'));
+});
+
+gulp.task('css', function () {
+
+  gulp.src('./css/*.css')
+    //autoprefixer
+    .pipe(autoprefixer({
+        browsers: ['last 2 versions'],
+        cascade: false
+    }))
+    .pipe(gulp.dest('./css'))
+    // cleancss
+    .pipe(cleancss())
+    .pipe(rename({ suffix: '.min' }))
+    .pipe(gulp.dest('./css/dist'));
+});
+
+// default gulp task
+gulp.task('default', ['scripts', 'scss', 'css'], function() {
+  gulp.watch('./scss/**/*.scss', ['scss']);
+  gulp.watch('./css/**/*.css', ['css']);
+  gulp.watch('./js/**/*.js', ['scripts']);
+});

+ 23 - 0
server/index.html

@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <title>Hehe rover - lot explorer</title>
+  </head>
+  <body>
+    <div class="root">
+
+      <section id="pictures">
+        <!-- add timelapse pictures -->
+      </section>
+      <section id="timeline">
+        <!-- add viz.js here -->
+      </section>
+      <section id="map">
+        <!-- add leaflet map here -->
+        <!-- or a striped map https://bl.ocks.org/veltman/3ad474e52925d007b292eefbe676174d -->
+      </section>
+
+    </div>
+  </body>
+</html>

+ 23 - 0
server/package.json

@@ -0,0 +1,23 @@
+{
+  "name": "hehe-rover",
+  "version": "0.0.1",
+  "description": "hehe rover website",
+  "main": "gulpfile.js",
+  "repository": {
+    "type": "git",
+    "url": ""
+  },
+  "author": "Bachir Soussi Chiadmi",
+  "license": "MIT",
+  "homepage": "http://scbh.me",
+  "devDependencies": {
+    "gulp": "",
+    "gulp-autoprefixer": "^3.1.0",
+    "gulp-jsmin": "^0.1.5",
+    "gulp-sass": "^2.0.1",
+    "gulp-watch": "^4.2.4",
+    "gulp-clean-css": "^2.0.3"
+  },
+  "dependencies": {
+  }
+}