Skip to content

Commit de91370

Browse files
committed
Revert master to pre v6
1 parent 4309c79 commit de91370

File tree

403 files changed

+64603
-11037
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

403 files changed

+64603
-11037
lines changed

.eslintrc.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,4 @@ module.exports = {
33
env: {
44
jest: true,
55
},
6-
rules: {
7-
'import/no-unresolved': 0,
8-
'import/extensions': 0,
9-
},
106
}

.prettierrc.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
sudo: false
21
language: node_js
32
node_js:
4-
- stable
5-
script:
6-
- npm test
3+
- "10"
4+
- "9"
5+
- "8"
6+
- "7"
7+
script: npm test

CHANGELOG.md

Lines changed: 213 additions & 241 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 67 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -18,51 +18,50 @@ React-Static is a fast, lightweight, and powerful framework for building static-
1818

1919
## Features
2020

21-
- ⚛️ 100% React (or Preact!)
22-
- 🚀 [Blazing](https://twitter.com/acdlite/status/974390255393505280) fast builds and performance.
23-
- 🚚 Data Agnostic. Supply your site with data from anywhere, **however you want**.
24-
- ✂️ Automatic code and data splitting for routes!
25-
- 💥 Instant page views via [PRPL](https://developers.google.com/web/fundamentals/performance/prpl-pattern/) pattern.
26-
- 🎯 Built for **SEO**.
27-
- 🥇 React-first developer experience.
28-
- 😌 Painless project setup & migration.
29-
- 💯 Supports 100% of the React ecosystem. Including CSS-in-JS libraries, custom Query layers like GraphQL, and even Redux.
30-
- 🔥 Hot Reloadable out-of-the-box. Edit React components & styles in real-time.
31-
- 📲 LAN accessible dev environment for testing on other devices like phones and tablets.
21+
* ⚛️ 100% React (or Preact!)
22+
* 🚀 [Blazing](https://twitter.com/acdlite/status/974390255393505280) fast builds and performance.
23+
* 🚚 Data Agnostic. Supply your site with data from anywhere, **however you want**.
24+
* ✂️ Automatic code and data splitting for routes!
25+
* 💥 Instant page views via [PRPL](https://developers.google.com/web/fundamentals/performance/prpl-pattern/) pattern.
26+
* 🎯 Built for **SEO**.
27+
* 🥇 React-first developer experience.
28+
* 😌 Painless project setup & migration.
29+
* 💯 Supports 100% of the React ecosystem. Including CSS-in-JS libraries, custom Query layers like GraphQL, and even Redux.
30+
* 🔥 Hot Reloadable out-of-the-box. Edit React components & styles in real-time.
31+
* 📲 LAN accessible dev environment for testing on other devices like phones and tablets.
3232

3333
## Videos & Tutorials
3434

35-
- [Quick Start with Styled Components](https://www.youtube.com/watch?v=KvlTVZPlmgs) (20 min)
36-
- [Introducing React-Static! How it works and why we built it!](https://www.youtube.com/watch?v=OqbJ5swVpDQ) (80 min)
37-
- [Using React-Static to replace create-react-app](https://youtu.be/1pBzh7IM1s8) (5 min)
35+
* [Quick Start with Styled Components](https://www.youtube.com/watch?v=KvlTVZPlmgs) (20 min)
36+
* [Introducing React-Static! How it works and why we built it!](https://www.youtube.com/watch?v=OqbJ5swVpDQ) (80 min)
37+
* [Using React-Static to replace create-react-app](https://youtu.be/1pBzh7IM1s8) (5 min)
3838

3939
## Sites Built with React-Static
4040

41-
- [React-Static.js.org](https://react-static.js.org) ([source](https://github.com/nozzle/react-static/tree/master/www))
42-
- [React-Charts.js.org](https://react-charts.js.org) ([source](https://github.com/nozzle/react-charts/tree/master/www))
43-
- [Nozzle.io](https://nozzle.io) ([source](https://github.com/nozzle/nozzle.io))
44-
- [Timber.io](https://timber.io)
45-
- [HeadlessCMS.org](https://headlesscms.org) ([source](https://github.com/netlify/headlesscms.org))
46-
- [Manta.life](https://manta.life) ([source](https://github.com/MantaApp/Website))
47-
- [Manticore Games](http://manticoregames.com)
48-
- [BlackSandSolutions.co](https://www.blacksandsolutions.co)
49-
- [David York - Personal Blog](http://davideyork.com)
50-
- [Cryptagon - Crypto Portfolio Tracker](https://cryptagon.io 'Crypto Portfolio Tracker')
51-
- [Typetalk - Chat App for Businesses and Teams](https://www.typetalk.com 'Chat App for Businesses and Teams')
52-
- [Lam Hieu - Personal Website](https://lamhieu.info)
53-
- [Elsa Salonen - Artist Portfolio](https://elsasalonen.com/)
54-
- [PSD Wizard: On-demand Front-End Coding Service](https://psdwizard.com)
55-
- [NYC Vintage Map](https://nycvintagemap.com)
56-
- [Eldar Labs - Utilities and Productivity Tools](https://eldarlabs.com)
57-
- [Dan Webb - Personal Website](https://danwebb.co) ([source](https://github.com/DanWebb/danwebb.co))
58-
- [Intuit Turbo](http://turbo.com)
59-
- [Messenger Corp. client asset ordering](http://chartwells.messengercorp.com/)
60-
- [Digital Neighborhood watch service](https://neighborhoodwatch.io/)
61-
- [Carmen Marcos Art - Artist Portfolio](http://carmen-marcos.art/) ([source](https://github.com/rafacm/carmen-marcos-art-portfolio))
62-
- [BlockAce - Blockchain Jobs Board](https://blockace.io 'The Best Blockchain Jobs Board')
63-
- [Luke Haas - Personal Website](https://lukehaas.me)
64-
- [KleineKoning.nl - Webshop](https://kleinekoning.nl)
65-
- [blue-frontend.com - Company Website](https://blue-frontend.com)
41+
* [React-Static.js.org](https://react-static.js.org) ([source](https://github.com/nozzle/react-static/tree/master/www))
42+
* [React-Charts.js.org](https://react-charts.js.org) ([source](https://github.com/nozzle/react-charts/tree/master/www))
43+
* [Nozzle.io](https://nozzle.io) ([source](https://github.com/nozzle/nozzle.io))
44+
* [Timber.io](https://timber.io)
45+
* [HeadlessCMS.org](https://headlesscms.org) ([source](https://github.com/netlify/headlesscms.org))
46+
* [Manta.life](https://manta.life) ([source](https://github.com/MantaApp/Website))
47+
* [Manticore Games](http://manticoregames.com)
48+
* [BlackSandSolutions.co](https://www.blacksandsolutions.co)
49+
* [David York - Personal Blog](http://davideyork.com)
50+
* [Cryptagon - Crypto Portfolio Tracker](https://cryptagon.io 'Crypto Portfolio Tracker')
51+
* [Typetalk - Chat App for Businesses and Teams](https://www.typetalk.com 'Chat App for Businesses and Teams')
52+
* [Lam Hieu - Personal Website](https://lamhieu.info)
53+
* [Elsa Salonen - Artist Portfolio](https://elsasalonen.com/)
54+
* [PSD Wizard: On-demand Front-End Coding Service](https://psdwizard.com)
55+
* [NYC Vintage Map](https://nycvintagemap.com)
56+
* [Eldar Labs - Utilities and Productivity Tools](https://eldarlabs.com)
57+
* [Dan Webb - Personal Website](https://danwebb.co) ([source](https://github.com/DanWebb/danwebb.co))
58+
* [Intuit Turbo](http://turbo.com)
59+
* [Messenger Corp. client asset ordering](http://chartwells.messengercorp.com/)
60+
* [Digital Neighborhood watch service](https://neighborhoodwatch.io/)
61+
* [Carmen Marcos Art - Artist Portfolio](http://carmen-marcos.art/) ([source](https://github.com/rafacm/carmen-marcos-art-portfolio))
62+
* [BlockAce - Blockchain Jobs Board](https://blockace.io 'The Best Blockchain Jobs Board')
63+
* [Luke Haas - Personal Website](https://lukehaas.me)
64+
* [KleineKoning.nl - Webshop](https://kleinekoning.nl)
6665

6766
## Quick Start
6867

@@ -108,49 +107,41 @@ $ yarn build # or react-static build
108107

109108
Once you've installed and test driven sufficiently, you may want to:
110109

111-
- [Read about the core concepts of React Static](/docs/concepts.md)
112-
- [Join the React Static Spectrum community!](https://spectrum.chat/react-static)
110+
* [Read about the core concepts of React Static](/docs/concepts.md)
111+
* [Join the React Static Spectrum community!](https://spectrum.chat/react-static)
113112

114-
* [Familiarize yourself with the API and all that is possible!](/docs/config.md)
115-
116-
### Plugins
117-
118-
- CSS & Style Tooling
119-
- [react-static-plugin-emotion](https://github.com/nozzle/react-static-plugin-emotion) - Adds SSR support for Emotion components.
120-
- [react-static-plugin-styled-components](https://github.com/nozzle/react-static-plugin-styled-components) - Adds SSR support for Styled-Components
121-
- [react-static-plugin-sass](https://github.com/nozzle/react-static-plugin-sass) - Adds SSR and general support for SASS
122-
- React Alternatives
123-
- [react-static-plugin-preact](https://github.com/nozzle/react-static-plugin-preact) - Adds preact support
113+
- [Familiarize yourself with the API and all that is possible!](/docs/config.md)
124114

125115
## Examples and Templates
126116

127117
All of the following examples can be used as a template at project creation.
128118

129-
- [Basic](https://github.com/nozzle/react-static/tree/master/examples/basic)
130-
- [Blank (Create-React-App)](https://github.com/nozzle/react-static/tree/master/examples/blank)
131-
- [Preact](https://github.com/nozzle/react-static/tree/master/examples/preact)
132-
- [Animated Routes](https://github.com/nozzle/react-static/tree/master/examples/animated-routes)
133-
- [Custom Routing](https://github.com/nozzle/react-static/tree/master/examples/custom-routing)
134-
- [Dynamic Imports (code-splitting)](https://github.com/nozzle/react-static/tree/master/examples/dynamic-imports)
135-
- [Emotion](https://github.com/nozzle/react-static/tree/master/examples/emotion)
136-
- [Styled-Components](https://github.com/nozzle/react-static/tree/master/examples/styled-components)
137-
- [LESS & Antdesign](https://github.com/nozzle/react-static/tree/master/examples/less-antdesign)
138-
- [Firebase Auth](https://github.com/nozzle/react-static/tree/master/examples/firebase-auth)
139-
- [Redux](https://github.com/nozzle/react-static/tree/master/examples/redux)
140-
- [Apollo GraphQL](https://github.com/nozzle/react-static/tree/master/examples/apollo)
141-
- [Apollo & Redux](https://github.com/nozzle/react-static/tree/master/examples/apollo-redux)
142-
- [TypeScript](https://github.com/nozzle/react-static/tree/master/examples/typescript)
143-
- [Cordova (Hybrid App)](https://github.com/nozzle/react-static/tree/master/examples/cordova)
144-
- [Basic Prismic (Headless CMS)](https://github.com/nozzle/react-static/tree/master/examples/basic-prismic)
145-
- [GraphCMS](https://github.com/nozzle/react-static/tree/master/examples/graphql-request)
146-
- [Sass](https://github.com/nozzle/react-static/tree/master/examples/sass)
147-
- [Tailwind CSS](https://github.com/nozzle/react-static/tree/master/examples/tailwindcss)
148-
- [Algolia](https://github.com/nozzle/react-static/tree/master/examples/algolia)
149-
- [Styled-JSX](https://github.com/nozzle/react-static/tree/master/examples/styled-jsx)
150-
- [Netlify CMS](https://github.com/nozzle/react-static/tree/master/examples/netlifycms)
151-
- [Gentics Mesh CMS](https://github.com/nozzle/react-static/tree/master/examples/gentics-mesh)
152-
- [Markdown](https://github.com/nozzle/react-static/tree/master/examples/markdown)
153-
- [Documentation](https://github.com/nozzle/react-static/tree/master/examples/documentation)
119+
* [Basic](https://github.com/nozzle/react-static/tree/master/examples/basic)
120+
* [Blank (Create-React-App)](https://github.com/nozzle/react-static/tree/master/examples/blank)
121+
* [Preact](https://github.com/nozzle/react-static/tree/master/examples/preact)
122+
* [Animated Routes](https://github.com/nozzle/react-static/tree/master/examples/animated-routes)
123+
* [Custom Routing](https://github.com/nozzle/react-static/tree/master/examples/custom-routing)
124+
* [Dynamic Imports (code-splitting)](https://github.com/nozzle/react-static/tree/master/examples/dynamic-imports)
125+
* [Firebase Auth](https://github.com/nozzle/react-static/tree/master/examples/firebase-auth)
126+
* [Glamorous & Tailwind CSS](https://github.com/nozzle/react-static/tree/master/examples/glamorous-tailwind)
127+
* [Glamorous](https://github.com/nozzle/react-static/tree/master/examples/glamorous)
128+
* [LESS & Antdesign](https://github.com/nozzle/react-static/tree/master/examples/less-antdesign)
129+
* [Styled-Components](https://github.com/nozzle/react-static/tree/master/examples/styled-components)
130+
* [Redux](https://github.com/nozzle/react-static/tree/master/examples/redux)
131+
* [Apollo GraphQL](https://github.com/nozzle/react-static/tree/master/examples/apollo)
132+
* [Apollo & Redux](https://github.com/nozzle/react-static/tree/master/examples/apollo-redux)
133+
* [TypeScript](https://github.com/nozzle/react-static/tree/master/examples/typescript)
134+
* [Cordova (Hybrid App)](https://github.com/nozzle/react-static/tree/master/examples/cordova)
135+
* [Basic Prismic (Headless CMS)](https://github.com/nozzle/react-static/tree/master/examples/basic-prismic)
136+
* [GraphCMS](https://github.com/nozzle/react-static/tree/master/examples/graphql-request)
137+
* [Sass](https://github.com/nozzle/react-static/tree/master/examples/sass)
138+
* [Tailwind CSS](https://github.com/nozzle/react-static/tree/master/examples/tailwindcss)
139+
* [Algolia](https://github.com/nozzle/react-static/tree/master/examples/algolia)
140+
* [Styled-JSX](https://github.com/nozzle/react-static/tree/master/examples/styled-jsx)
141+
* [Netlify CMS](https://github.com/nozzle/react-static/tree/master/examples/netlifycms)
142+
* [Gentics Mesh CMS](https://github.com/nozzle/react-static/tree/master/examples/gentics-mesh)
143+
* [Markdown](https://github.com/nozzle/react-static/tree/master/examples/markdown)
144+
* [Documentation](https://github.com/nozzle/react-static/tree/master/examples/documentation)
154145

155146
Can't find an example? We invite you to write one! Simply copy the `basic` or `blank` templates and make the necessary changes. Then submit a PR including your new example directory and a new item in the list above. When merged, your example will automatically become a template in the CLI. How magical!
156147

babel-preset.js

Lines changed: 25 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,27 @@
1-
const r = require.resolve
2-
3-
module.exports = (api, options = {}) => {
4-
const { NODE_ENV, BABEL_ENV } = process.env
5-
6-
const PRODUCTION = (BABEL_ENV || NODE_ENV) === 'production'
7-
8-
return {
9-
presets: [
10-
[
11-
r('@babel/preset-env'),
12-
{
13-
modules: options.modules,
14-
useBuiltIns: false,
15-
targets: {
16-
browsers: PRODUCTION
17-
? ['last 4 versions', 'safari >= 7', 'ie >= 9']
18-
: ['last 2 versions', 'not ie <= 11', 'not android 4.4.3'],
19-
},
20-
},
21-
],
22-
[r('@babel/preset-react'), { development: !PRODUCTION }],
1+
module.exports = {
2+
presets: ['env', 'stage-0', 'react'],
3+
plugins: [
4+
[
5+
'universal-import'
236
],
24-
plugins: [
25-
PRODUCTION
26-
? r('babel-plugin-universal-import')
27-
: r('react-hot-loader/babel'),
28-
[
29-
r('@babel/plugin-transform-runtime'),
30-
{
31-
helpers: false,
32-
regenerator: true,
33-
},
34-
],
35-
r('@babel/plugin-syntax-dynamic-import'),
36-
r('@babel/plugin-proposal-class-properties'),
37-
r('@babel/plugin-proposal-optional-chaining'),
38-
r('@babel/plugin-proposal-export-default-from'),
39-
].filter(Boolean),
40-
}
7+
[
8+
'transform-runtime',
9+
{
10+
helpers: false,
11+
polyfill: false,
12+
regenerator: true,
13+
moduleName: 'babel-runtime',
14+
},
15+
],
16+
'transform-class-properties',
17+
],
18+
env: {
19+
development: {
20+
plugins: ['react-hot-loader/babel'],
21+
},
22+
test: {
23+
presets: ['env', 'stage-0', 'react'],
24+
},
25+
},
26+
compact: false,
4127
}

bin/react-static-build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env node
22

3+
require('babel-register')
34
require('../lib/utils/binHelper')
45
const program = require('commander')
56
const buildCmd = require('../lib/commands/build')
@@ -26,4 +27,4 @@ buildCmd
2627
.catch(err => {
2728
console.error(err)
2829
process.exit(1)
29-
})
30+
})

bin/react-static-bundle

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env node
22

3+
require('babel-register')
34
require('../lib/utils/binHelper')
45
const program = require('commander')
56
const bundleCmd = require('../lib/commands/bundle')
@@ -13,13 +14,13 @@ program
1314

1415
const { config, staging, debug } = program
1516

16-
bundleCmd
17-
.default({
18-
config,
19-
staging,
20-
debug,
21-
isCLI: true,
22-
})
17+
18+
bundleCmd.default({
19+
config,
20+
staging,
21+
debug,
22+
isCLI: true,
23+
})
2324
.then(() => {
2425
process.exit(0)
2526
})

bin/react-static-create

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env node
22

3+
require('babel-register')
34
require('../lib/utils/binHelper')
45
const program = require('commander')
56
const chalk = require('chalk')

bin/react-static-export

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env node
22

3+
require('babel-register')
34
require('../lib/utils/binHelper')
45
const program = require('commander')
56
const exportCmd = require('../lib/commands/export')
@@ -13,13 +14,12 @@ program
1314

1415
const { config, staging, debug } = program
1516

16-
exportCmd
17-
.default({
18-
config,
19-
staging,
20-
debug,
21-
isCLI: true,
22-
})
17+
exportCmd.default({
18+
config,
19+
staging,
20+
debug,
21+
isCLI: true,
22+
})
2323
.then(() => {
2424
process.exit(0)
2525
})

bin/react-static-start

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env node
22

3+
require('babel-register')
34
require('../lib/utils/binHelper')
45
const program = require('commander')
56
const startCmd = require('../lib/commands/start')

codecov.yml

Whitespace-only changes.

0 commit comments

Comments
 (0)