Skip to content
Permalink
Browse files

Initial release to io.benfrain.com

  • Loading branch information...
Benjamin Frain Benjamin Frain
Benjamin Frain authored and Benjamin Frain committed Aug 2, 2018
1 parent 444d6d1 commit 9994cae5281e096b356d54b4aebdeb3ffd0b794c

This file was deleted.

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="192px" height="192px" viewBox="0 0 192 192" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 51.1 (57501) - http://www.bohemiancoding.com/sketch -->
<title>192</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="192" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="io_logo" transform="translate(8.000000, 16.000000)">
<path d="M0,83.8510638 L177,83.8510638 L177,144.451532 C177,148.354272 174.018855,151.610555 170.131274,151.954193 L88.4963222,159.170213 L6.86867179,151.954238 C2.98111382,151.610574 2.15036625e-15,148.354301 1.67242107e-15,144.451582 L0,83.8510638 Z" id="Shape" fill="#545454" fill-rule="nonzero"></path>
<path d="M50.2529362,96.0979574 C56.3588389,96.0979574 60.616839,97.6746226 63.0270638,100.828 C65.4372886,103.981377 66.642383,109.595109 66.642383,117.669362 C66.642383,125.743615 65.4372886,131.357346 63.0270638,134.510723 C60.616839,137.664101 56.3588389,139.240766 50.2529362,139.240766 C44.1470335,139.240766 39.878991,137.664101 37.4486809,134.510723 C35.0183708,131.357346 33.803234,125.743615 33.803234,117.669362 C33.803234,109.595109 35.0183708,103.981377 37.4486809,100.828 C39.878991,97.6746226 44.1470335,96.0979574 50.2529362,96.0979574 Z M50.2529362,100.858128 C46.1555541,100.858128 43.3235824,102.073264 41.7569362,104.503574 C40.19029,106.933885 39.4069787,111.322436 39.4069787,117.669362 C39.4069787,124.016287 40.19029,128.404839 41.7569362,130.835149 C43.3235824,133.265459 46.1555541,134.480596 50.2529362,134.480596 C54.3503182,134.480596 57.18229,133.265459 58.7489362,130.835149 C60.3155824,128.404839 61.0988936,124.016287 61.0988936,117.669362 C61.0988936,111.322436 60.3155824,106.933885 58.7489362,104.503574 C57.18229,102.073264 54.3503182,100.858128 50.2529362,100.858128 Z M105.567319,96.8812766 L105.567319,122.550043 C105.567319,128.615775 104.442564,132.913945 102.193021,135.444681 C99.9434782,137.975417 96.1072612,139.240766 90.6842553,139.240766 C85.0603974,139.240766 81.0936286,137.975417 78.7838298,135.444681 C76.474031,132.913945 75.3191489,128.615775 75.3191489,122.550043 L75.3191489,96.8812766 L80.621617,96.8812766 L80.621617,122.550043 C80.621617,127.008958 81.3446737,130.112076 82.7908085,131.859489 C84.2369433,133.606902 86.7877265,134.480596 90.443234,134.480596 C94.0585713,134.480596 96.5993117,133.606902 98.0655319,131.859489 C99.5317521,130.112076 100.264851,127.008958 100.264851,122.550043 L100.264851,96.8812766 L105.567319,96.8812766 Z M144.070468,101.581191 L130.633532,101.581191 L130.633532,138.457447 L125.331064,138.457447 L125.331064,101.581191 L111.954383,101.581191 L111.954383,96.8812766 L144.070468,96.8812766 L144.070468,101.581191 Z" id="Shape" fill="#FFFFFF" fill-rule="nonzero"></path>
<g id="Group" transform="translate(88.500000, 42.351064) scale(-1, 1) rotate(-180.000000) translate(-88.500000, -42.351064) translate(0.000000, 0.851064)">
<g id="a-link" fill="#F8F8F8" fill-rule="nonzero">
<path d="M-1.33226763e-15,0 L177,0 L177,67.4104903 C177,71.2879254 174.056234,74.5318055 170.196999,74.9070511 L88.4963222,82.8510638 L6.80294077,74.9071001 C2.94373163,74.5318262 -8.57421558e-16,71.2879574 -1.33226763e-15,67.4105453 L-1.33226763e-15,0 Z" id="a"></path>
</g>
<path d="M0.882978723,0.882978723 L176.117021,0.882978723 L176.117021,67.4104903 C176.117021,70.8333675 173.518358,73.696962 170.111547,74.0282169 L88.4108706,81.9722295 L88.2168796,81.9721869 L6.88839961,74.0282669 C3.4816119,73.6969868 0.882978723,70.8334021 0.882978723,67.4105453 L0.882978723,0.882978723 Z" id="Shape" stroke="#545454" stroke-width="2"></path>
</g>
<path d="M70.8,65.0212766 L65.4975319,65.0212766 L65.4975319,23.4451064 L70.8,23.4451064 L70.8,65.0212766 Z M113.28,23.4451064 L113.28,62.9123404 C113.28,64.3183049 112.597113,65.0212766 111.231319,65.0212766 L106.049362,65.0212766 C104.964761,65.0212766 104.181449,64.4588994 103.699404,63.3341277 L89.6599149,33.8692766 C88.2941208,30.896666 87.5108095,29.0689396 87.3099574,28.3860426 L86.3458723,28.3860426 C86.5065541,29.9928591 86.5868936,31.8205855 86.5868936,33.8692766 L86.5868936,65.0212766 L81.2844255,65.0212766 L81.2844255,25.5540426 C81.2844255,24.1480781 81.9873972,23.4451064 83.3933617,23.4451064 L88.3945532,23.4451064 C89.4791542,23.4451064 90.2624658,24.0074837 90.7445106,25.1322553 L104.362213,53.8740426 C105.366473,55.8423929 106.310464,57.8508834 107.194213,59.8995745 L108.218553,59.8995745 C108.098042,57.7303721 108.037787,55.621457 108.037787,53.572766 L108.037787,23.4451064 L113.28,23.4451064 Z" id="Shape" fill="#585858" fill-rule="nonzero"></path>
</g>
</g>
</svg>
BIN +5.87 KB PWA/homescreen_192.png
Binary file not shown.
BIN +19.7 KB PWA/homescreen_512.png
Binary file not shown.
@@ -0,0 +1,26 @@
{
"name": "In/Out",
"short_name": "I/O",
"lang": "en-US",
"start_url": "/index.html",
"display": "standalone",
"orientation": "portrait",
"theme_color": "#ff9900",
"icons": [
{
"src": "homescreen_192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "homescreen_512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "homescreen.svg",
"type": "image/svg"
}
],
"background_color": "#ffffff"
}
@@ -0,0 +1,24 @@
var CACHE_NAME = "io-v2";
var urlsToCache = ["/", "/styles.css", "/inout.js", "/index.html"];

self.addEventListener("install", function(event) {
// Perform install steps
event.waitUntil(
caches.open(CACHE_NAME).then(function(cache) {
console.log("Opened cache");
return cache.addAll(urlsToCache);
})
);
});

self.addEventListener("fetch", function(event) {
event.respondWith(
caches.match(event.request).then(function(response) {
// Cache hit - return response
if (response) {
return response;
}
return fetch(event.request);
})
);
});
@@ -1,6 +1,8 @@
var gulp = require("gulp");
var ts = require("gulp-typescript");
var uglify = require("gulp-uglify");
var postcss = require("gulp-postcss");
var cssnano = require("cssnano");
var simplevars = require("postcss-simple-vars")();
var autoprefixer = require("autoprefixer");
var browserSync = require("browser-sync");
@@ -11,6 +13,9 @@ var nested = require("postcss-nested");
var tsProject = ts.createProject("tsconfig.json");
var del = require("del");
var sourcemaps = require("gulp-sourcemaps");
var htmlmin = require("gulp-htmlmin");

var compress = true;

gulp.task("css", function() {
var processors = [
@@ -23,7 +28,8 @@ gulp.task("css", function() {
relative: true
}),
postcssColorFunction(),
autoprefixer({ browsers: ["defaults"] })
autoprefixer({ browsers: ["defaults"] }),
cssnano()
];

// Produce a file list off all needed css files and move them to /build
@@ -56,8 +62,24 @@ gulp.task("default", ["clean:mobile"]);

// HTML
gulp.task("html", function() {
gulp.src("./libs/**/*").pipe(gulp.dest("./build/libs"));
return gulp.src("./index.html").pipe(gulp.dest("./build"));
// gulp.src("./libs/**/*").pipe(gulp.dest("./build/libs"));
// .pipe(htmlmin({collapseWhitespace: true}))
return gulp
.src("./index.html")
.pipe(htmlmin({ collapseWhitespace: true }))
.pipe(gulp.dest("./build"));
});

gulp.task("pwa", function() {
// gulp.src("./libs/**/*").pipe(gulp.dest("./build/libs"));
// .pipe(htmlmin({collapseWhitespace: true}))
return gulp.src("PWA/**/*").pipe(gulp.dest("./build"));
});

gulp.task("cssImg", function() {
// gulp.src("./libs/**/*").pipe(gulp.dest("./build/libs"));
// .pipe(htmlmin({collapseWhitespace: true}))
return gulp.src("preCSS/img/*").pipe(gulp.dest("./build/img"));
});

// Watch
@@ -76,9 +98,10 @@ gulp.task("ts", function() {
tsProject
.src()
.pipe(sourcemaps.init())
.pipe(ts(tsProject))
.pipe(tsProject())
.js.pipe(sourcemaps.write())
.pipe(uglify())
.pipe(gulp.dest("./build"));
});

gulp.task("default", ["clean", "html", "css", "browser-sync", "ts", "watch"]);
gulp.task("default", ["clean", "html", "css", "browser-sync", "ts", "pwa", "cssImg", "watch"]);

0 comments on commit 9994cae

Please sign in to comment.
You can’t perform that action at this time.