Skip to content

Commit 104d516

Browse files
committed
Move to Next.js
1 parent e19c45e commit 104d516

File tree

242 files changed

+4747
-22460
lines changed

Some content is hidden

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

242 files changed

+4747
-22460
lines changed

.babelrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"presets": [
3+
[
4+
"next/babel",
5+
{
6+
"preset-env": {},
7+
"transform-runtime": {},
8+
"styled-jsx": {
9+
"plugins": ["@thedadi/styled-jsx-plugin-postcss"]
10+
},
11+
"class-properties": {}
12+
}
13+
]
14+
],
15+
"plugins": []
16+
}

.env.example

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

.eslintignore

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

.eslintrc.js

Lines changed: 33 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,41 @@
11
module.exports = {
2-
root: true,
2+
root: true,
3+
parser: 'babel-eslint',
34
env: {
5+
node: true,
46
browser: true,
5-
es6: true,
6-
commonjs: true,
7+
es6: true,
8+
commonjs: true,
79
},
8-
extends: [
9-
'eslint:recommended',
10-
'plugin:vue/essential',
11-
'plugin:prettier/recommended'
12-
],
13-
globals: {
14-
Atomics: 'readonly',
15-
SharedArrayBuffer: 'readonly',
16-
route: 'readonly',
17-
},
10+
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:jsx-a11y/recommended', 'plugin:prettier/recommended'],
1811
parserOptions: {
19-
parser: 'babel-eslint',
20-
ecmaVersion: 2018,
21-
sourceType: 'module'
12+
ecmaFeatures: {
13+
jsx: true,
14+
},
15+
ecmaVersion: 2020,
2216
},
23-
plugins: [
24-
'vue'
25-
],
17+
plugins: ['react'],
2618
rules: {
27-
indent: [
28-
'error',
29-
'tab'
30-
],
31-
'linebreak-style': [
32-
'error',
33-
'unix'
34-
],
35-
quotes: [
36-
'error',
37-
'single'
38-
],
39-
semi: [
40-
'error',
41-
'never'
42-
],
43-
'vue/html-end-tags': [
44-
'error'
45-
],
46-
'vue/html-quotes': [
47-
'error',
48-
'double'
49-
],
50-
'vue/mustache-interpolation-spacing': [
51-
'error',
52-
'always'
53-
],
54-
'vue/no-multi-spaces': [
55-
'error'
56-
],
57-
'vue/require-prop-types': [
58-
'error'
59-
],
60-
'vue/this-in-template': [
61-
'error',
62-
'never'
63-
],
64-
},
65-
reportUnusedDisableDirectives: true
19+
'import/prefer-default-export': 0,
20+
'no-console': 'warn',
21+
'no-nested-ternary': 0,
22+
'no-underscore-dangle': 0,
23+
'no-unused-expressions': ['error', { allowTernary: true }],
24+
camelcase: 0,
25+
'react/self-closing-comp': 1,
26+
'react/jsx-filename-extension': [1, { extensions: ['.js', 'jsx'] }],
27+
'react/prop-types': 0,
28+
'react/destructuring-assignment': 0,
29+
'react/jsx-no-comment-textnodes': 0,
30+
'react/jsx-props-no-spreading': 0,
31+
'react/no-array-index-key': 0,
32+
'react/no-unescaped-entities': 0,
33+
'react/require-default-props': 0,
34+
'jsx-a11y/label-has-for': 0,
35+
'jsx-a11y/anchor-is-valid': 0,
36+
'react/react-in-jsx-scope': 0,
37+
'linebreak-style': ['error', 'unix'],
38+
semi: ['error', 'never'],
39+
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
40+
},
6641
}

.gitattributes

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

.github/FUNDING.yml

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

.gitignore

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,34 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
14
/node_modules
2-
/public/hot
3-
/public/storage
4-
/public/vendor/statamic
5-
/public/css/*.css
6-
/public/js/*.js
7-
/public/mix-manifest.json
8-
/public/sitemap.xml
9-
/storage/*.key
10-
/vendor
11-
.env
12-
.env.backup
13-
.phpunit.result.cache
14-
Homestead.json
15-
Homestead.yaml
16-
npm-debug.log
17-
yarn-error.log
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env.local
29+
.env.development.local
30+
.env.test.local
31+
.env.production.local
32+
33+
# vercel
34+
.vercel

.prettierignore

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

.prettierrc.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
module.exports = {
2-
trailingComma: 'all',
3-
useTabs: true,
4-
tabWidth: 4,
5-
printWidth: 9999,
6-
semi: false,
7-
singleQuote: true
8-
};
2+
semi: false,
3+
singleQuote: true,
4+
printWidth: 1000,
5+
tabWidth: 4,
6+
trailingComma: "es5",
7+
useTabs: true,
8+
bracketSpacing: true,
9+
arrowParens: 'avoid'
10+
}

README.md

Lines changed: 18 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,30 @@
1-
<p align="center"><img src="https://statamic.com/assets/branding/Statamic-Logo+Wordmark-Rad.svg" width="400" alt="Statamic Logo" /></p>
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
22

3-
## About Statamic 3
3+
## Getting Started
44

5-
Statamic 3 is the very latest and greatest version of Statamic, a uniquely powerful CMS built on [Laravel](https://laravel.com) and designed to make building and managing bespoke websites radically efficient and enjoyable.
5+
First, run the development server:
66

7-
It's important to note that while this repo is open and we welcome your feedback and contributions, Statamic is not FOSS (Free and Open Source Software). Please review our [contritubtion guidelines][contribution] guidelines for more details!
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
```
812

9-
> **Note:** This repository contains the code for the Statamic application. To contribute to the core package, visit the [Statamic core package repository][app-repo].
13+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
1014

15+
You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
1116

12-
## Open Beta
17+
## Learn More
1318

14-
Statamic 3 is now in **open beta!** We welcome you try it out, [read the docs](https://statamic.dev), experiment, send [bug reports][contribution], provide thoughtful feedback, and otherwise do anything you feel will make the platform better and more stable for launch.
19+
To learn more about Next.js, take a look at the following resources:
1520

16-
If this is your first experience with Statamic, please reserve your final judgement until we're out of beta. We've built a solid and flexible foundation and most bugs and rough edges should be minor efforts to address.
21+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
22+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
1723

24+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
1825

19-
### Not for Production Use
26+
## Deploy on Vercel
2027

21-
**Statamic 3 Beta is NOT intended for production use.** You may encounter show-stopping bugs. Features may be removed last minute. There may still be **breaking changes** resulting in tedious manual labor and refactoring on _your_ end to get back in sync with master.
28+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/import?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
2229

23-
So when you're tempted to launch that site you built anyway even after reading this warning, just remember &mdash; we told you not to do it and we still love you. :heart:
24-
25-
26-
### Pricing, Editions, and Features
27-
28-
**Statamic is commercial, paid software** (Statamic v2 is $199/site). During the beta you're welcome to use Statamic as much as you'd like in development for free. Start new projects, upgrade your v2 sites, build addons, try dropping it into existing Laravel apps, and so on. When we launch Statamic 3 all you'll need to do is buy or upgrade the appropriate license and be on your way.
29-
30-
After the beta there may be changes to pricing, new or different editions, and other changes to how the features and capabilities are organized. But since you're not going to use Statamic 3 Beta in production it shouldn't be much an issue, right? :blush:
31-
32-
33-
## Learning Statamic
34-
35-
Statamic 3 has extensive (in progress) [documentation][docs]. We dedicate a significant amount of time and energy every day to improving them, so if something is unclear, wait a day or two and check back again. If it's still confusing, feel free to open an issue or chat with us on [Discord][discord] about it!
36-
37-
38-
## Support & Feedback
39-
40-
We aren't able to provide "official support" for Statamic 3 in the way we do for Statamic 2. This is a beta, after all. We prefer to think of this phase as a collaborative process. And while we **do not** recommend using Statamic 3 in production, we **do** want to know about any issues you run into, any aspects that are confusing, and anything that is horribly broken. Please review the [contribution guide][contribution] before opening issues or pull requests. Thanks!
41-
42-
43-
### Discord
44-
45-
Our [#v3 channel][discord] is the best place to casually chat with us and other developers about the Statamic 3 beta.
46-
47-
48-
## Contributing
49-
50-
Thank you for considering contributing to Statamic! Please review the [contribution guide][contribution] before you open issues or send pull requests.
51-
52-
53-
## Code of Conduct
54-
55-
In order to ensure that the Statamic community is welcoming to all and generally a rad place to belong, please review and abide by the [Code of Conduct](https://github.com/statamic/cms/wiki/Code-of-Conduct).
56-
57-
58-
## Important Links
59-
60-
- [Statamic 3 Documentation][docs]
61-
- [Statamic 3 Application Repo][app-repo]
62-
- [Statamic 3 Migrator](https://github.com/statamic/migrator)
63-
- [Statamic 3 Development Blog](https://v3.statamic.com)
64-
- [Statamic Discord][discord]
65-
66-
[docs]: https://statamic.dev/
67-
[discord]: https://statamic.com/discord
68-
[contribution]: https://github.com/statamic/cms/blob/master/CONTRIBUTING.md
69-
[app-repo]: https://github.com/statamic/statamic
30+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

0 commit comments

Comments
 (0)