Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat]: add shipwright to mellow-react #72

Merged
merged 4 commits into from
Dec 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
github: DominusKelvin
patreon: dominuskelvin
Binary file added .github/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ npx create-sails <project-name>
```

<div align="center">
<a href="https://sailscasts.com/boring"><img src="https://github.com/sailscastshq/boring-stack/blob/main/logo.png" alt="The Boring JavaScript Stack" width="25%" height="25%"></a>
<a href="https://sailscasts.com/boring"><img src="https://github.com/sailscastshq/boring-stack/blob/develop/.github/banner.png" alt="The Boring JavaScript Stack"></a>
</div>

[The Boring JavaScript Stack](https://sailscasts.com/boring)
Expand Down Expand Up @@ -80,7 +80,7 @@ To launch the respective templates on StackBlitz, click on the 'Open in StackBli

## Watch Kelvin's Introduction to The Boring JavaScript Stack

<a href="https://youtu.be/qX69jEyAIc0"><img src="https://github.com/sailscastshq/boring-stack/blob/main/thumbnail.png" alt="The Boring JavaScript Stack" width="100%"></a>
<a href="https://youtu.be/qX69jEyAIc0"><img src="https://github.com/sailscastshq/boring-stack/blob/develop/.github/thumbnail.png" alt="The Boring JavaScript Stack" width="100%"></a>

[The Boring JavaScript - Kelvin Omereshone at #Sailsconf 2023](https://youtu.be/qX69jEyAIc0)

Expand All @@ -104,6 +104,10 @@ To launch the respective templates on StackBlitz, click on the 'Open in StackBli
</p>
</a>

## Sponsors

If you'd like to become a sponsor, check out [DominusKelvin](https://github.com/sponsors/DominusKelvin) sponsor page and tiers.

## Thanks

You rock 🤘🏾
10 changes: 5 additions & 5 deletions templates/mellow-react/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# react
# mellow-react

This template should help get you started developing with a modern Sails fullstack application with Inertia and React.
This template should help get you started developing with a modern Sails fullstack application with Sails and React.

This scaffold contains:

- webpack
- tailwind
- react
- Sails
- React
- Tailwind
72 changes: 0 additions & 72 deletions templates/mellow-react/api/hooks/webpack/index.js

This file was deleted.

10 changes: 0 additions & 10 deletions templates/mellow-react/assets/js/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default function Index({ name }) {
<Link href="/example" className="text-purple-600 underline">
Go to example page
</Link>

<ul className="flex space-x-4 text-gray-400">
<li>
<a
Expand Down Expand Up @@ -52,15 +51,6 @@ export default function Index({ name }) {
Tailwind CSS
</a>
</li>
<li>
<a
href="https://webpack.org"
target="_blank"
className="hover:text-gray-600 hover:underline"
>
Webpack
</a>
</li>
</ul>
</div>
)
Expand Down
17 changes: 0 additions & 17 deletions templates/mellow-react/config/env/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
* http://sailsjs.com/docs/concepts/deployment
*/

const TerserPlugin = require('terser-webpack-plugin')

module.exports = {
hookTimeout: 80000,
/**************************************************************************
Expand Down Expand Up @@ -316,20 +314,5 @@ module.exports = {
// sails_custom__stripeSecret=sk_prod__fake_Nfgh82401348jaDa3lkZ0d9Hm
// ```
//--------------------------------------------------------------------------
},

/***************************************************************************
* *
* Override the default webpack plugin list to add the UglifyJsPlugin, *
* which minifies the outputted JavaScript. *
* *
***************************************************************************/

webpack: {
mode: 'production',
optimization: {
minimize: true,
minimizer: [new TerserPlugin()]
}
}
}
6 changes: 6 additions & 0 deletions templates/mellow-react/config/shipwright.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const { pluginReact } = require('@rsbuild/plugin-react')
module.exports.shipwright = {
build: {
plugins: [pluginReact()]
}
}
106 changes: 0 additions & 106 deletions templates/mellow-react/config/webpack.js

This file was deleted.

5 changes: 3 additions & 2 deletions templates/mellow-react/jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"include": ["api/**/*", "assets/js/**/*", "types/index.d.ts"],

"exclude": [".tmp/**/*"],
"compilerOptions": {
"types": ["node"],
"typeRoots": ["./types", "./node_modules/@types"],
Expand All @@ -17,7 +17,8 @@
"noErrorTruncation": true,
"baseUrl": ".",
"paths": {
"@/*": ["assets/js/*"]
"@/*": ["assets/js/*"],
"~/*": ["assets/*"]
}
}
}
Loading