Commit b55515a8 authored by Dan Pudsey's avatar Dan Pudsey

[DP-003] - Added concat module

Trying to get Lottie working like a pro
parent a1b59b7a

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

......@@ -103,7 +103,7 @@
</p>
</div>
<div class="panel-content__read-more">
<p><a href="#" target="_blank">View source code on gitlab ></a></p>
<p><a href="https://gitlab.com/DPudsey/personal-site/" target="_blank">View source code on gitlab ></a></p>
</div>
</div>
</div>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
/*!
* fastshell
* Fiercely quick and opinionated front-ends
* https://HosseinKarami.github.io/fastshell
* @author Hossein Karami
* @version 1.0.5
* Copyright 2018. MIT licensed.
*/
var animation = bodymovin.loadAnimation({
container: document.getElementById('lottie-logo'),
renderer: 'svg',
loop: true,
autoplay: true,
path: 'logo.json'
})
\ No newline at end of file
This diff is collapsed.
/*!
* fastshell
* Fiercely quick and opinionated front-ends
* https://HosseinKarami.github.io/fastshell
* @author Hossein Karami
* @version 1.0.5
* Copyright 2018. MIT licensed.
*/
var animation=bodymovin.loadAnimation({container:document.getElementById("lottie-logo"),renderer:"svg",loop:!0,autoplay:!0,path:"logo.json"});
\ No newline at end of file
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -31,6 +31,7 @@
/>
</a>
</div>
<div id="lottie-logo"></div>
<div class="header__cta">
<a href="assets/pdf/Dan_Pudsey_CV_DP_V01_11112018.pdf" class="btn btn--klein" target="_blank">Download CV</a>
</div>
......@@ -77,7 +78,7 @@
<a href="#recent-projects">projects &darr;</a>.
</p>
<p class="delay--3">
Because you're only as good as your last <span>commit</span>.
Because you're only as good as your last <a href="https://gitlab.com/DPudsey/personal-site/commits/master" target="_blank">commit</a>.
</p>
<p class="delay--4">...</p>
</div>
......@@ -218,7 +219,7 @@
</p>
</div>
<div class="panel-content__read-more">
<p><a href="#" target="_blank">View source code on gitlab ></a></p>
<p><a href="https://gitlab.com/DPudsey/personal-site/" target="_blank">View source code on gitlab ></a></p>
</div>
</div>
</div>
......
......@@ -221,7 +221,7 @@
</p>
</div>
<div class="panel-content__read-more">
<p><a href="/womad-festival">View source code on gitlab ></a></p>
<p><a href="https://gitlab.com/DPudsey/personal-site/" target="_blank">View source code on gitlab ></a></p>
</div>
</div>
</div>
......
......@@ -6,7 +6,8 @@ var gulp = require('gulp'),
header = require('gulp-header'),
rename = require('gulp-rename'),
cssnano = require('gulp-cssnano'),
package = require('./package.json');
package = require('./package.json'),
concat = require('gulp-concat');
var banner = [
......@@ -44,6 +45,23 @@ gulp.task('js',function(){
.pipe(browserSync.reload({stream:true, once: true}));
});
gulp.task('js-lottie',function(){
gulp.src('src/js/lottie.js')
.pipe(header(banner, { package : package }))
.pipe(gulp.dest('app/assets/js'))
.pipe(uglify())
.pipe(header(banner, { package : package }))
.pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest('app/assets/js'))
.pipe(browserSync.reload({stream:true, once: true}));
});
gulp.task('scripts', function() {
return gulp.src('src/js/*.js')
.pipe(concat('all.js'))
.pipe(gulp.dest('app/assets/js'));
});
gulp.task('browser-sync', function() {
browserSync.init(null, {
server: {
......@@ -57,6 +75,6 @@ gulp.task('bs-reload', function () {
gulp.task('default', ['css', 'js', 'browser-sync'], function () {
gulp.watch("src/scss/*/*.scss", ['css']);
gulp.watch("src/js/*.js", ['js']);
gulp.watch("src/js/*.js", ['js', 'js-lottie', 'scripts']);
gulp.watch("app/*.html", ['bs-reload']);
});
\ No newline at end of file
../extract-zip/cli.js
\ No newline at end of file
../jshint/bin/jshint
\ No newline at end of file
../phantomjs-prebuilt/bin/phantomjs
\ No newline at end of file
../shelljs/bin/shjs
\ No newline at end of file
../strip-json-comments/cli.js
\ No newline at end of file
The MIT License (MIT)
Copyright (c) <%= year() %>, Jon Schlinkert.
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.
/*!
* ansi-cyan <https://github.com/jonschlinkert/ansi-cyan>
*
* Copyright (c) 2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
'use strict';
var wrap = require('ansi-wrap');
module.exports = function cyan(message) {
return wrap(36, 39, message);
};
{
"_from": "[email protected]^0.1.1",
"_id": "[email protected]",
"_inBundle": false,
"_integrity": "sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM=",
"_location": "/ansi-cyan",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "[email protected]^0.1.1",
"name": "ansi-cyan",
"escapedName": "ansi-cyan",
"rawSpec": "^0.1.1",
"saveSpec": null,
"fetchSpec": "^0.1.1"
},
"_requiredBy": [
"/gulp-jshint/plugin-error"
],
"_resolved": "https://registry.npmjs.org/ansi-cyan/-/ansi-cyan-0.1.1.tgz",
"_shasum": "538ae528af8982f28ae30d86f2f17456d2609873",
"_spec": "[email protected]^0.1.1",
"_where": "/Users/dpudsey/Desktop/8 Personal/2 Source code/node_modules/gulp-jshint/node_modules/plugin-error",