Commit 642537b4 authored by David Rhoderick's avatar David Rhoderick
Browse files

Initial commit of basic Frontity boilerplate as we like to make them.

parents
{
"git.ignoreLimitWarning": true
}
\ No newline at end of file
# mvm-frontity
This project was bootstrapped with [Frontity](https://frontity.org/).
#### Table of Contents
- [Launch a development server](#launch-a-development-server)
- [Create your custom theme](#create-your-custom-theme)
- [Create a production-ready build](#create-a-production-ready-build)
- [Deploy](#deploy)
### Launch a development server
```
npx frontity dev
```
Runs the app in development mode. Open http://localhost:3000 to view it in the browser.
The site will automatically reload if you make changes inside the `packages` folder. You will see the build errors in the console.
> Have a look at our [Quick Start Guide](https://docs.frontity.org/getting-started/quick-start-guide)
### Create your custom theme
```
npx frontity create-package your-custom-theme
```
Use the command `npx frontity create-package` to create a new package that can be set in your `frontity.settings.js` as your theme
> Have a look at our blog post [How to Create a React WordPress Theme in 30 Minutes](https://frontity.org/blog/how-to-create-a-react-theme-in-30-minutes/)
### Create a production-ready build
```
npx frontity build
```
Builds the app for production to the `build` folder.
This will create a `/build` folder with a `server.js` (a [serverless function](https://vercel.com/docs/v2/serverless-functions/introduction)) file and a `/static` folder with all your javascript files and other assets.
Your app is ready to be deployed.
> Get more info about [Frontity's architecture](https://docs.frontity.org/architecture)
### Deploy
With the files generated in the _build_ you can deploy your project
#### As a node app
Use `npx frontity serve` to run it like a normal Node app.
This command generates (and runs) a small web server that uses the generated `server.js` and `/static` to serve your content
#### As a serverless service
Upload your `static` folder to a CDN and your `server.js` file to a serverless service, like Now or Netlify.
> Get more info about [how to deploy](https://docs.frontity.org/deployment) a Frontity project
---
### » Frontity Channels 🌎
We have different channels at your disposal where you can find information about the project, discuss about it and get involved:
- 📖 **[Docs](https://docs.frontity.org)**: this is the place to learn how to build amazing sites with Frontity.
- 👨‍👩‍👧‍👦 **[Community](https://community.frontity.org/)**: use our forum to [ask any questions](https://community.frontity.org/c/dev-talk-questions), feedback and meet great people. This is your place too to share [what are you building with Frontity](https://community.frontity.org/c/showcases)!
- 🐞 **[GitHub](https://github.com/frontity/frontity)**: we use GitHub for bugs and pull requests. Questions are answered in the [community forum](https://community.frontity.org/)!
- 🗣 **Social media**: a more informal place to interact with Frontity users, reach out to us on [Twitter](https://twitter.com/frontity).
- 💌 **Newsletter**: do you want to receive the latest framework updates and news? Subscribe [here](https://frontity.org/)
### » Get involved 🤗
Got questions or feedback about Frontity? We'd love to hear from you. Use our [community forum](https://community.frontity.org) yo ! ❤️
Frontity also welcomes contributions. There are many ways to support the project! If you don't know where to start, this guide might help → [How to contribute?](https://docs.frontity.org/contributing/how-to-contribute)
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"errors": [],
"warnings": [],
"version": "4.44.2",
"hash": "ce6cb3041125490d39a7",
"publicPath": "/static/",
"outputPath": "/home/davidrhoderick/Development/mvm/mvm-frontity/build/static",
"assetsByChunkName": {
"mvm-frontity": [
"mvm-frontity.module.js",
"mvm-frontity.e895132cb7f2080129a7.hot-update.js"
]
},
"assets": [
{
"name": "e895132cb7f2080129a7.hot-update.json",
"size": 54,
"chunks": [],
"chunkNames": [],
"info": {
"hotModuleReplacement": true,
"immutable": true
},
"emitted": false
},
{
"name": "images/slick.svg",
"size": 2152,
"chunks": [],
"chunkNames": [],
"info": {},
"emitted": false
},
{
"name": "mvm-frontity.e895132cb7f2080129a7.hot-update.js",
"size": 5911,
"chunks": [
"mvm-frontity"
],
"chunkNames": [
"mvm-frontity"
],
"info": {
"hotModuleReplacement": true,
"immutable": true
},
"emitted": false
},
{
"name": "mvm-frontity.module.js",
"size": 6251168,
"chunks": [
"mvm-frontity"
],
"chunkNames": [
"mvm-frontity"
],
"info": {},
"emitted": false
}
],
"filteredAssets": 0,
"entrypoints": {
"mvm-frontity": {
"chunks": [
"mvm-frontity"
],
"assets": [
"mvm-frontity.module.js",
"mvm-frontity.e895132cb7f2080129a7.hot-update.js"
],
"children": {},
"childAssets": {}
}
},
"namedChunkGroups": {
"mvm-frontity": {
"chunks": [
"mvm-frontity"
],
"assets": [
"mvm-frontity.module.js",
"mvm-frontity.e895132cb7f2080129a7.hot-update.js"
],
"children": {},
"childAssets": {}
}
},
"logging": {
"webpack.buildChunkGraph.visitModules": {
"entries": [],
"filteredEntries": 2,
"debug": false
}
},
"children": []
}
\ No newline at end of file
import client from "@frontity/core/src/client";
import mvmuseum_theme_default from "mvmuseum-theme/src/index";
import frontity__wp_source_default from "@frontity/wp-source/src/index";
import frontity__tiny_router_default from "@frontity/tiny-router/src/index";
import frontity__html2react_default from "@frontity/html2react/src/index";
import frontity_contact_form_7_default from "frontity-contact-form-7/src/index";
import frontity__yoast_default from "@frontity/yoast/src/index";
import frontity__google_analytics_default from "@frontity/google-analytics/src/index";
const packages = {
mvmuseum_theme_default,
frontity__wp_source_default,
frontity__tiny_router_default,
frontity__html2react_default,
frontity_contact_form_7_default,
frontity__yoast_default,
frontity__google_analytics_default,
};
export default client({ packages });
if (module["hot"]) {
module["hot"].accept(
[
"@frontity/core/src/client",
"mvmuseum-theme/src/index",
"@frontity/wp-source/src/index",
"@frontity/tiny-router/src/index",
"@frontity/html2react/src/index",
"frontity-contact-form-7/src/index",
"@frontity/yoast/src/index",
"@frontity/google-analytics/src/index",
],
() => {
const client = require("@frontity/core/src/client").default;
const mvmuseum_theme_default = require("mvmuseum-theme/src/index").default;
const frontity__wp_source_default = require("@frontity/wp-source/src/index").default;
const frontity__tiny_router_default = require("@frontity/tiny-router/src/index").default;
const frontity__html2react_default = require("@frontity/html2react/src/index").default;
const frontity_contact_form_7_default = require("frontity-contact-form-7/src/index").default;
const frontity__yoast_default = require("@frontity/yoast/src/index").default;
const frontity__google_analytics_default = require("@frontity/google-analytics/src/index").default;
const packages = {
mvmuseum_theme_default,
frontity__wp_source_default,
frontity__tiny_router_default,
frontity__html2react_default,
frontity_contact_form_7_default,
frontity__yoast_default,
frontity__google_analytics_default,
};
client({ packages });
}
);
}
\ No newline at end of file
import server from "@frontity/core/src/server";
import mvmuseum_theme_default from "mvmuseum-theme/src/index";
import frontity__wp_source_default from "@frontity/wp-source/src/index";
import frontity__tiny_router_default from "@frontity/tiny-router/src/index";
import frontity__html2react_default from "@frontity/html2react/src/index";
import frontity_contact_form_7_default from "frontity-contact-form-7/src/index";
import frontity__yoast_default from "@frontity/yoast/src/index";
import frontity__google_analytics_default from "@frontity/google-analytics/src/index";
const packages = {
mvmuseum_theme_default,
frontity__wp_source_default,
frontity__tiny_router_default,
frontity__html2react_default,
frontity_contact_form_7_default,
frontity__yoast_default,
frontity__google_analytics_default,
};
export default server({ packages });
This diff is collapsed.
{"h":"e895132cb7f2080129a7","c":{"mvm-frontity":true}}
\ No newline at end of file
{"h":"c11c4eeba251d268569a","c":{"mvm-frontity":true}}
\ No newline at end of file
{"h":"0a5121b4170c8599643a","c":{"mvm-frontity":true}}
\ No newline at end of file
{"h":"ce6cb3041125490d39a7","c":{"mvm-frontity":true}}
\ No newline at end of file
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>Generated by Fontastic.me</metadata>
<defs>
<font id="slick" horiz-adv-x="512">
<font-face font-family="slick" units-per-em="512" ascent="480" descent="-32"/>
<missing-glyph horiz-adv-x="512" />
<glyph unicode="&#8594;" d="M241 113l130 130c4 4 6 8 6 13 0 5-2 9-6 13l-130 130c-3 3-7 5-12 5-5 0-10-2-13-5l-29-30c-4-3-6-7-6-12 0-5 2-10 6-13l87-88-87-88c-4-3-6-8-6-13 0-5 2-9 6-12l29-30c3-3 8-5 13-5 5 0 9 2 12 5z m234 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
<glyph unicode="&#8592;" d="M296 113l29 30c4 3 6 7 6 12 0 5-2 10-6 13l-87 88 87 88c4 3 6 8 6 13 0 5-2 9-6 12l-29 30c-3 3-8 5-13 5-5 0-9-2-12-5l-130-130c-4-4-6-8-6-13 0-5 2-9 6-13l130-130c3-3 7-5 12-5 5 0 10 2 13 5z m179 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
<glyph unicode="&#8226;" d="M475 256c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
<glyph unicode="&#97;" d="M475 439l0-128c0-5-1-9-5-13-4-4-8-5-13-5l-128 0c-8 0-13 3-17 11-3 7-2 14 4 20l40 39c-28 26-62 39-100 39-20 0-39-4-57-11-18-8-33-18-46-32-14-13-24-28-32-46-7-18-11-37-11-57 0-20 4-39 11-57 8-18 18-33 32-46 13-14 28-24 46-32 18-7 37-11 57-11 23 0 44 5 64 15 20 9 38 23 51 42 2 1 4 3 7 3 3 0 5-1 7-3l39-39c2-2 3-3 3-6 0-2-1-4-2-6-21-25-46-45-76-59-29-14-60-20-93-20-30 0-58 5-85 17-27 12-51 27-70 47-20 19-35 43-47 70-12 27-17 55-17 85 0 30 5 58 17 85 12 27 27 51 47 70 19 20 43 35 70 47 27 12 55 17 85 17 28 0 55-5 81-15 26-11 50-26 70-45l37 37c6 6 12 7 20 4 8-4 11-9 11-17z"/>
</font></defs></svg>
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
webpackHotUpdate("mvm-frontity",{
/***/ "./packages/mvmuseum-theme/src/components/loading.js":
/*!***********************************************************!*\
!*** ./packages/mvmuseum-theme/src/components/loading.js ***!
\***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @emotion/styled-base */ \"./packages/mvmuseum-theme/node_modules/@emotion/styled-base/dist/styled-base.browser.esm.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var frontity__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! frontity */ \"./packages/mvmuseum-theme/node_modules/frontity/dist/src/index.js\");\n/* harmony import */ var frontity__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(frontity__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react_loader_spinner__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-loader-spinner */ \"./packages/mvmuseum-theme/node_modules/react-loader-spinner/index.js\");\n/* harmony import */ var react_loader_spinner__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_loader_spinner__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react_loader_spinner_dist_loader_css_react_spinner_loader_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-loader-spinner/dist/loader/css/react-spinner-loader.css */ \"./packages/mvmuseum-theme/node_modules/react-loader-spinner/dist/loader/css/react-spinner-loader.css\");\n/* harmony import */ var _emotion_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @emotion/core */ \"./packages/mvmuseum-theme/node_modules/@emotion/core/dist/core.browser.esm.js\");\nfunction _EMOTION_STRINGIFIED_CSS_ERROR__(){return\"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).\";}var Loading=(_ref)=>{var{state}=_ref;return Object(_emotion_core__WEBPACK_IMPORTED_MODULE_5__[\"jsx\"])(LoadingPage,null,Object(_emotion_core__WEBPACK_IMPORTED_MODULE_5__[\"jsx\"])(react_loader_spinner__WEBPACK_IMPORTED_MODULE_3___default.a,{type:\"TailSpin\",color:state.theme.colors.midDarkBlue,height:80,width:80}));};/* harmony default export */ __webpack_exports__[\"default\"] = (Object(frontity__WEBPACK_IMPORTED_MODULE_2__[\"connect\"])(Loading));var LoadingPage=Object(_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(\"div\",{target:\"e1cbsehm0\",label:\"LoadingPage\"})( false?undefined:{name:\"8xrv7a\",styles:\"margin:10rem auto;text-align:center;\",map:\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL2RhdmlkcmhvZGVyaWNrL0RldmVsb3BtZW50L212bS9tdm0tZnJvbnRpdHkvcGFja2FnZXMvbXZtdXNldW0tdGhlbWUvc3JjL2NvbXBvbmVudHMvbG9hZGluZy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFlOEIiLCJmaWxlIjoiL2hvbWUvZGF2aWRyaG9kZXJpY2svRGV2ZWxvcG1lbnQvbXZtL212bS1mcm9udGl0eS9wYWNrYWdlcy9tdm11c2V1bS10aGVtZS9zcmMvY29tcG9uZW50cy9sb2FkaW5nLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHtjb25uZWN0LCBzdHlsZWR9IGZyb20gJ2Zyb250aXR5J1xuaW1wb3J0IExvYWRlciBmcm9tICdyZWFjdC1sb2FkZXItc3Bpbm5lcidcbmltcG9ydCAncmVhY3QtbG9hZGVyLXNwaW5uZXIvZGlzdC9sb2FkZXIvY3NzL3JlYWN0LXNwaW5uZXItbG9hZGVyLmNzcydcblxuY29uc3QgTG9hZGluZyA9ICh7c3RhdGV9KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPExvYWRpbmdQYWdlPlxuICAgICAgPExvYWRlciB0eXBlPVwiVGFpbFNwaW5cIiBjb2xvcj17c3RhdGUudGhlbWUuY29sb3JzLm1pZERhcmtCbHVlfSBoZWlnaHQ9ezgwfSB3aWR0aD17ODB9IC8+XG4gICAgPC9Mb2FkaW5nUGFnZT5cbiAgKVxufVxuXG5leHBvcnQgZGVmYXVsdCBjb25uZWN0KExvYWRpbmcpXG5cbmNvbnN0IExvYWRpbmdQYWdlID0gc3R5bGVkLmRpdmBcbiAgbWFyZ2luOiAxMHJlbSBhdXRvO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG5gIl19 */\",toString:_EMOTION_STRINGIFIED_CSS_ERROR__});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9wYWNrYWdlcy9tdm11c2V1bS10aGVtZS9zcmMvY29tcG9uZW50cy9sb2FkaW5nLmpzP2YzZGQiXSwibmFtZXMiOlsiTG9hZGluZyIsInN0YXRlIiwidGhlbWUiLCJjb2xvcnMiLCJtaWREYXJrQmx1ZSIsImNvbm5lY3QiLCJMb2FkaW5nUGFnZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztxUkFLQSxHQUFNQSxRQUFPLENBQUcsUUFBYSxJQUFaLENBQUNDLEtBQUQsQ0FBWSxNQUMzQixNQUNFLDJEQUFDLFdBQUQsTUFDRSwwREFBQywyREFBRCxFQUFRLElBQUksQ0FBQyxVQUFiLENBQXdCLEtBQUssQ0FBRUEsS0FBSyxDQUFDQyxLQUFOLENBQVlDLE1BQVosQ0FBbUJDLFdBQWxELENBQStELE1BQU0sQ0FBRSxFQUF2RSxDQUEyRSxLQUFLLENBQUUsRUFBbEYsRUFERixDQURGLENBS0QsQ0FORCxDQVFlQyx1SEFBTyxDQUFDTCxPQUFELENBQXRCLEVBRUEsR0FBTU0sWUFBVyx5MENBQWpCIiwiZmlsZSI6Ii4vcGFja2FnZXMvbXZtdXNldW0tdGhlbWUvc3JjL2NvbXBvbmVudHMvbG9hZGluZy5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7Y29ubmVjdCwgc3R5bGVkfSBmcm9tICdmcm9udGl0eSdcbmltcG9ydCBMb2FkZXIgZnJvbSAncmVhY3QtbG9hZGVyLXNwaW5uZXInXG5pbXBvcnQgJ3JlYWN0LWxvYWRlci1zcGlubmVyL2Rpc3QvbG9hZGVyL2Nzcy9yZWFjdC1zcGlubmVyLWxvYWRlci5jc3MnXG5cbmNvbnN0IExvYWRpbmcgPSAoe3N0YXRlfSkgPT4ge1xuICByZXR1cm4gKFxuICAgIDxMb2FkaW5nUGFnZT5cbiAgICAgIDxMb2FkZXIgdHlwZT1cIlRhaWxTcGluXCIgY29sb3I9e3N0YXRlLnRoZW1lLmNvbG9ycy5taWREYXJrQmx1ZX0gaGVpZ2h0PXs4MH0gd2lkdGg9ezgwfSAvPlxuICAgIDwvTG9hZGluZ1BhZ2U+XG4gIClcbn1cblxuZXhwb3J0IGRlZmF1bHQgY29ubmVjdChMb2FkaW5nKVxuXG5jb25zdCBMb2FkaW5nUGFnZSA9IHN0eWxlZC5kaXZgXG4gIG1hcmdpbjogMTByZW0gYXV0bztcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuYCJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./packages/mvmuseum-theme/src/components/loading.js\n");
/***/ })
})
\ No newline at end of file
This diff is collapsed.
favicon.ico

1.17 KB

const settings = {
name: 'mvm-frontity',
state: {
frontity: {
url: 'https://test.frontity.org',
title: 'Test Frontity Blog',
description: 'WordPress installation for Frontity development'
}
},
packages: [
{
name: 'mvmuseum-theme',
state: {
theme: { }
}
}, {
name: '@frontity/wp-source',
state: {
source: {
url: 'https://test.frontity.org'
}
}
},
'@frontity/tiny-router',
'@frontity/html2react',
'frontity-contact-form-7',
'@frontity/yoast',
{
name: '@frontity/google-analytics',
state: {
// googleAnalytics: {
// trackingId: 'UA-184351735-1'
// }
}
}
]
};
export default settings;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment