upstatement / puppy Goto Github PK
View Code? Open in Web Editor NEWStarter kit and delivery system for building static prototypes with Twig
Home Page: https://puppy-template.upstatement.com/
License: MIT License
Starter kit and delivery system for building static prototypes with Twig
Home Page: https://puppy-template.upstatement.com/
License: MIT License
"we should add a task to generate favicon, app icons, etc from an image file"
From looking, it seems like main.js
is the only place where jQuery is used. Is this something we could get rid to lighten the dependency load?
Puppy thumbnail images rely on ImageMagick, therefore I think we should add this to the ReadMe under installation:
brew install graphicsmagick
@NathanHass Has been using this one a bunch:
const resizeImages = async function() {
const sizes = [
{ width: 320, quality: 0.9, suffix: '' },
{ width: 640, quality: 0.9, suffix: '-640' },
{ width: 768, quality: 0.9, suffix: '-768' },
{ width: 1024, quality: 0.9, suffix: '-1024' },
{ width: 1440, quality: 0.9, suffix: '-1440' },
];
let stream;
sizes.forEach(size => {
stream = src('src/img/**/*.{jpg,png}')
// resize image
.pipe(
imageResize({
width: size.width,
upscale: false,
quality: size.quality,
}),
)
// add suffix to image
.pipe(
rename(path => {
path.basename += `${size.suffix}`;
}),
)
// output optimized images to a destination folder
.pipe(dest('dist/static/img'));
});
return stream;
};
The test files are needed for this repo, but not by projects scaffolded from it. The end result is failing TravisCI builds as soon as any updates are made.
Depenendabot is great, but requires manual testing to make sure dependency updates don't break things.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.