diff --git a/.node-version b/.node-version index 9bbd0cb..d184537 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -12.16.0 +14.5.0 diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..b4352dc --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "printWidth": 120, + "quoteProps": "as-needed", + "semi": false, + "singleQuote": true, + "trailingComma": "none" +} diff --git a/.storybook/config.js b/.storybook/config.js index 2cdcd7e..3cc6226 100644 --- a/.storybook/config.js +++ b/.storybook/config.js @@ -2,7 +2,7 @@ import { configure, addDecorator, addParameters } from '@storybook/react' import React from 'react' import {createRenderer} from 'fela' import {RendererProvider} from 'react-fela' -import {cssReset} from '../app/components/global_css' +import cssReset from '../app/components/cssReset' // Setup Fela client runtime const renderer = createRenderer({devMode: true}) diff --git a/app/README.md b/app/README.md new file mode 100644 index 0000000..319f078 --- /dev/null +++ b/app/README.md @@ -0,0 +1,47 @@ +# Tropical's 4 core files + +## `build.js` + +A script run in Node.js that: + +- Uses Webpack to compile `prerender.js` and `client.js` so they can run, respectively, in Node.js and the browser. +- Calls the default export of `prerender.js` to (you guessed it!) prerender your static site. + +## `client.js` + +The JS file loaded by all pages in a `