Skip to content

Commit

Permalink
Merge pull request #27 from bensmithett/bye-webpack-hi-vite
Browse files Browse the repository at this point in the history
Replace Webpack with Vite
  • Loading branch information
bensmithett authored Jul 17, 2021
2 parents 9272830 + d707717 commit e983e9d
Show file tree
Hide file tree
Showing 48 changed files with 557 additions and 10,604 deletions.
3 changes: 0 additions & 3 deletions .browserslistrc

This file was deleted.

7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
node_modules
output
yarn-error.log
.DS_Store
dist
dist-ssr
*.local
storybook-static
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.15.4
16.4.2
14 changes: 12 additions & 2 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
module.exports = {
stories: ['../app/components/**/*.stories.@(js|mdx)']
}
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials"
],
"core": {
"builder": "storybook-builder-vite"
}
}
13 changes: 11 additions & 2 deletions .storybook/preview.js → .storybook/preview.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}

import React from 'react'
import { createRenderer } from 'fela'
import { RendererProvider } from 'react-fela'
import cssReset from '../app/components/cssReset'
import cssReset from '../src/cssReset'

// Setup Fela client runtime
const renderer = createRenderer({ devMode: true })
cssReset(renderer)
export const decorators = [
Expand Down
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
# [Tropical](https://tropical.js.org/) 🏝

This is a [template repo](https://github.blog/2019-06-06-generate-new-repositories-with-repository-templates/). Click the green "Use this template" button 👆 to get started, or [read the docs](https://tropical.js.org/) to find out more about building static sites with Tropical.
This is a [template repo](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/creating-a-repository-from-a-template). Click the green "Use this template" button 👆 to get started, or [read the docs](https://tropical.js.org/) to find out more about building static sites with Tropical.

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/bensmithett/tropical)

---

Welcome to your new [Tropical](https://tropical.js.org/) site!

- Install dependencies: `yarn` or `npm install`
- Start [Storybook](https://storybook.js.org/): `yarn storybook` or `npm run storybook`
- Start the preview server: `yarn start` or `npm start` & visit http://localhost:5000
Install dependencies with `yarn`, then...

Explore the `app` folder or [read the docs](https://tropical.js.org/) for more.
- **`yarn dev`** starts a dev server at [localhost:5000](http://localhost:5000/)
- **`yarn build`** builds the static site into `dist/static`
- **`yarn storybook`** starts [Storybook](https://storybook.js.org/)
- **`yarn page my-new-page`** scaffolds a file for a new page
- **`yarn component MyNewComponent`** scaffolds files for a new component

(`npm` equivalients to `yarn` commands should work too)

Check out [the docs](https://tropical.js.org) or dive in and explore the `src` directory.
72 changes: 0 additions & 72 deletions app/README.md

This file was deleted.

208 changes: 0 additions & 208 deletions app/build.js

This file was deleted.

36 changes: 0 additions & 36 deletions app/client.js

This file was deleted.

Loading

0 comments on commit e983e9d

Please sign in to comment.