preactjs / preact-netlify Goto Github PK
View Code? Open in Web Editor NEWPreact's netlify CMS template
Preact's netlify CMS template
Hey!
Thanks for fixing my last issue. Now I can successfully load the site and also set it up on Netlify. However the next problem I've encountered is it looks like blog entries are rendered alphabetically, not in the last posted order. I would think most people would expect a blog to be reverse-chrono sorted. Been trying to edit the crawler/index.js fs calls to sort after getting the list of files without any luck, would appreciate any help here.
After i try run test script it's fails.
➜ yarn test
yarn run v1.21.1
$ jest
● Validation Error:
Preset jest-preset-preact not found.
🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet.
We recommend using:
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.
I found this repo and another (https://github.com/preactjs-templates/netlify) related to setting up a preact blog with Netlify.
However the cli references the second one as it's located in the preactjs-templates org. But I see that this repo has more recent commits.
So which to use, and if this first one, how can I run it from the cli if it's not in the preactjs-templates org?
Also regardless of which repo I use the blog posts don't seem to render on /blogs?
This is due to the ImageminPlugin
, which I think waits for images to be available in the build directory to optimize them. However with the watch command, no build dir is created, which makes the plugin indefinitely wait for files that will never arrive.
The solution is to only push the plugin into the webpack config in build mode.
A small, related detail with the plugin is that it's being hardcoded to looking inside build
which may not be what the user set (depends on the --dest
option).
I try to use it and when i run app first time i see that /blogs
page not render any posts.
In dev mode i see error about missing parse-md
package
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.