Init 2.0
This commit is contained in:
commit
ff8ecde0da
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
node_modules/
|
21
LICENSE
Executable file
21
LICENSE
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2020 Jan Jastrow
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
5
README.md
Executable file
5
README.md
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
# MinisteriumFuerInternet.de
|
||||||
|
|
||||||
|
## About the project
|
||||||
|
|
||||||
|
A fake ministry for the german internet.
|
30
_source/favicon.svg
Normal file
30
_source/favicon.svg
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg width="100%" height="100%" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;">
|
||||||
|
<g id="Flag" transform="matrix(1.92672,0,0,1.958,-1012.58,-320.379)">
|
||||||
|
<g id="Rot" transform="matrix(1,0,0,0.598206,0,72.609)">
|
||||||
|
<rect x="554.58" y="163.508" width="4.177" height="32.824" style="fill:rgb(255,0,0);"/>
|
||||||
|
</g>
|
||||||
|
<g id="Gold" transform="matrix(1,0,0,0.329976,0,131.529)">
|
||||||
|
<rect x="554.58" y="163.508" width="4.177" height="32.824" style="fill:rgb(255,196,0);"/>
|
||||||
|
</g>
|
||||||
|
<g id="Schwarz" transform="matrix(1,0,0,0.329976,0,109.677)">
|
||||||
|
<rect x="554.58" y="163.508" width="4.177" height="32.824"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(2.33563,0,0,2.33563,-3.00688,-3.00688)">
|
||||||
|
<circle cx="12" cy="12" r="9" style="fill:none;stroke:black;stroke-width:2px;"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(2.33563,0,0,2.33563,-3.00688,-3.00688)">
|
||||||
|
<path d="M3.6,9L20.4,9" style="fill:none;fill-rule:nonzero;stroke:black;stroke-width:2px;"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(2.33563,0,0,2.33563,-3.00688,-3.00688)">
|
||||||
|
<path d="M3.6,15L20.4,15" style="fill:none;fill-rule:nonzero;stroke:black;stroke-width:2px;"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(2.33563,0,0,2.33563,-3.00688,-3.00688)">
|
||||||
|
<path d="M11.5,3C8.068,8.499 8.068,15.501 11.5,21" style="fill:none;fill-rule:nonzero;stroke:black;stroke-width:2px;"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(2.33563,0,0,2.33563,-3.00688,-3.00688)">
|
||||||
|
<path d="M12.5,3C15.932,8.499 15.932,15.501 12.5,21" style="fill:none;fill-rule:nonzero;stroke:black;stroke-width:2px;"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.9 KiB |
23
_source/index.html
Executable file
23
_source/index.html
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>Title goes here</title>
|
||||||
|
<meta name="description" content="description goes here" />
|
||||||
|
<meta name="author" content="Jan Jastrow" />
|
||||||
|
<meta http-equiv="x-ua-compatible" content="ie=edge" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="stylesheet" href="css/addons.min.css" type="text/css" />
|
||||||
|
<link rel="stylesheet" href="css/styles.min.css" type="text/css" />
|
||||||
|
<!-- for development only
|
||||||
|
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
|
||||||
|
<meta http-equiv="Pragma" content="no-cache" />
|
||||||
|
<meta http-equiv="Expires" content="0" />
|
||||||
|
-->
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Foo</h1>
|
||||||
|
<p>Bar</p>
|
||||||
|
<p>Baz…</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
5
_source/robots.txt
Executable file
5
_source/robots.txt
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
# www.robotstxt.org/
|
||||||
|
|
||||||
|
# Allow crawling of all content
|
||||||
|
User-agent: *
|
||||||
|
Disallow:
|
6
_source/scss/styles.scss
Executable file
6
_source/scss/styles.scss
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
body {
|
||||||
|
background-color: #eeeeee;
|
||||||
|
color: #111111;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
20
changelog.md
Executable file
20
changelog.md
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
## 3.0.2 (2020-05-04)
|
||||||
|
|
||||||
|
- Updated npm dependencies
|
||||||
|
- Update year in LICENSE
|
||||||
|
|
||||||
|
## 3.0.0 (2019-10-17)
|
||||||
|
|
||||||
|
- Rewritten for gulp v4
|
||||||
|
|
||||||
|
## 2.0.1 (2018-09-29)
|
||||||
|
|
||||||
|
- Replaced `del` package with `rimraf`
|
||||||
|
- Added `sanitize.css` as dependency
|
||||||
|
- Updated structure of gulpfile
|
||||||
|
|
||||||
|
## 2.0.0
|
||||||
|
|
||||||
|
- Rewritten most of the gulpfile and packacke.json
|
112
gulpfile.js
Executable file
112
gulpfile.js
Executable file
@ -0,0 +1,112 @@
|
|||||||
|
'use strict'
|
||||||
|
|
||||||
|
//----------------
|
||||||
|
//:: Initiate npm-modules
|
||||||
|
const gulp = require('gulp'),
|
||||||
|
sass = require('gulp-sass'),
|
||||||
|
concat = require('gulp-concat'),
|
||||||
|
livereload = require('gulp-livereload'),
|
||||||
|
notify = require('gulp-notify'),
|
||||||
|
plumber = require('gulp-plumber'),
|
||||||
|
rename = require('gulp-rename'),
|
||||||
|
postcss = require('gulp-postcss'),
|
||||||
|
autoprefixer = require('autoprefixer'),
|
||||||
|
cssnano = require('cssnano'),
|
||||||
|
merge2 = require('merge2'),
|
||||||
|
rimraf = require('rimraf');
|
||||||
|
|
||||||
|
//----------------
|
||||||
|
//:: configs
|
||||||
|
var Config = {
|
||||||
|
inputDir: '_source/',
|
||||||
|
outputDir: '_dist/'
|
||||||
|
}
|
||||||
|
|
||||||
|
var SassConfig = {
|
||||||
|
inputDir: '_source/scss/',
|
||||||
|
outputDir: '_dist/css/',
|
||||||
|
options: {
|
||||||
|
outputStyle: 'expanded'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var postcss_plugins = [
|
||||||
|
cssnano,
|
||||||
|
autoprefixer
|
||||||
|
];
|
||||||
|
|
||||||
|
//----------------
|
||||||
|
//:: Tasks
|
||||||
|
|
||||||
|
// compile scss
|
||||||
|
function scss() {
|
||||||
|
var onError = function(err) {
|
||||||
|
notify.onError({
|
||||||
|
title: 'gulp',
|
||||||
|
subtitle: 'Error!',
|
||||||
|
message: '❌ <%= error.message %>',
|
||||||
|
sound: 'Submarine'
|
||||||
|
})(err);
|
||||||
|
this.emit('end');
|
||||||
|
};
|
||||||
|
|
||||||
|
return merge2(
|
||||||
|
gulp.src([
|
||||||
|
'node_modules/sanitize.css/sanitize.css'
|
||||||
|
]))
|
||||||
|
.pipe(concat('addons.css'))
|
||||||
|
.pipe(gulp.dest(SassConfig.outputDir))
|
||||||
|
.pipe(postcss(postcss_plugins))
|
||||||
|
.pipe(rename({suffix: '.min'}))
|
||||||
|
.pipe(gulp.dest(SassConfig.outputDir)),
|
||||||
|
|
||||||
|
gulp.src(SassConfig.inputDir + '*.scss')
|
||||||
|
.pipe(concat('styles.css'))
|
||||||
|
.pipe(plumber({errorHandler: onError}))
|
||||||
|
.pipe(postcss(postcss_plugins))
|
||||||
|
.pipe(sass(SassConfig.options).on('error', sass.logError))
|
||||||
|
.pipe(gulp.dest(SassConfig.outputDir))
|
||||||
|
.pipe(rename({suffix: '.min'}))
|
||||||
|
.pipe(gulp.dest(SassConfig.outputDir))
|
||||||
|
.pipe(livereload())
|
||||||
|
.pipe(notify({
|
||||||
|
title: 'gulp',
|
||||||
|
subtitle: 'Success!',
|
||||||
|
message: '✅ SCSS compiled',
|
||||||
|
timeout: '2'
|
||||||
|
}));
|
||||||
|
};
|
||||||
|
|
||||||
|
// Copy those other files
|
||||||
|
function copy(done) {
|
||||||
|
gulp.src([Config.inputDir + '*.*'])
|
||||||
|
.pipe(gulp.dest(Config.outputDir))
|
||||||
|
.pipe(livereload())
|
||||||
|
done();
|
||||||
|
};
|
||||||
|
|
||||||
|
// watch for changes
|
||||||
|
function watch() {
|
||||||
|
livereload.listen();
|
||||||
|
gulp.watch(SassConfig.inputDir + '*.scss', scss);
|
||||||
|
gulp.watch(Config.inputDir + '*.html', copy);
|
||||||
|
};
|
||||||
|
|
||||||
|
// delete everything in _dist
|
||||||
|
function cleanup(cb) {
|
||||||
|
return rimraf(Config.outputDir + '*', cb)
|
||||||
|
};
|
||||||
|
|
||||||
|
//----------------
|
||||||
|
//:: Export tasks
|
||||||
|
|
||||||
|
// complex tasks
|
||||||
|
const build = gulp.series(cleanup, gulp.parallel(copy, scss));
|
||||||
|
|
||||||
|
// export tasks
|
||||||
|
exports.scss = scss;
|
||||||
|
exports.copy = copy;
|
||||||
|
exports.watch = watch;
|
||||||
|
exports.cleanup = cleanup;
|
||||||
|
exports.build = build;
|
||||||
|
exports.default = build;
|
6333
package-lock.json
generated
Executable file
6333
package-lock.json
generated
Executable file
File diff suppressed because it is too large
Load Diff
40
package.json
Executable file
40
package.json
Executable file
@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"name": "mfi.de",
|
||||||
|
"description": "ministry for internet",
|
||||||
|
"version": "2.0.0",
|
||||||
|
"author": "Jan Jastrow",
|
||||||
|
"license": "MIT",
|
||||||
|
"homepage": "https://ministeriumfuerinternet.de",
|
||||||
|
"url": "",
|
||||||
|
"email": "jan@schwerkraftlabor.de",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "gulp"
|
||||||
|
},
|
||||||
|
"main": "gulpfile.js",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://gitea.schwerkraftlabor.de/jan/Website_MFI.de"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"autoprefixer": "^9.7.6",
|
||||||
|
"caniuse-lite": "^1.0.30001050",
|
||||||
|
"cssnano": "^4.1.10",
|
||||||
|
"gulp": "^4.0.2",
|
||||||
|
"gulp-concat": "^2.6.1",
|
||||||
|
"gulp-livereload": "^4.0.2",
|
||||||
|
"gulp-notify": "^3.2.0",
|
||||||
|
"gulp-plumber": "^1.2.1",
|
||||||
|
"gulp-postcss": "^8.0.0",
|
||||||
|
"gulp-rename": "^2.0.0",
|
||||||
|
"gulp-sass": "^4.1.0",
|
||||||
|
"merge2": "^1.3.0",
|
||||||
|
"rimraf": "^3.0.2",
|
||||||
|
"sanitize.css": "^11.0.0"
|
||||||
|
},
|
||||||
|
"browserslist": [
|
||||||
|
"last 2 version",
|
||||||
|
"> 2%",
|
||||||
|
"android >= 5.0",
|
||||||
|
"IE 11"
|
||||||
|
]
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user