Skip to content

Commit

Permalink
feat: move from webpack to Shipwright
Browse files Browse the repository at this point in the history
  • Loading branch information
DominusKelvin committed Dec 24, 2023
1 parent 9e38ce1 commit 5d2ae22
Show file tree
Hide file tree
Showing 12 changed files with 326 additions and 4,001 deletions.
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 🤘🏾
4 changes: 0 additions & 4 deletions templates/mellow-react/.sailsrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"hooks": {
"webpack": false,
"shipwright": true
},
"generators": {
"modules": {}
},
Expand Down
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
81 changes: 0 additions & 81 deletions templates/mellow-react/api/hooks/shipwright/index.js

This file was deleted.

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

This file was deleted.

9 changes: 0 additions & 9 deletions templates/mellow-react/assets/js/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,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()]
}
}
}
106 changes: 0 additions & 106 deletions templates/mellow-react/config/webpack.js

This file was deleted.

2 changes: 1 addition & 1 deletion templates/mellow-react/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"baseUrl": ".",
"paths": {
"@/*": ["assets/js/*"],
"~/*": ["assets/css/*"]
"~/*": ["assets/*"]
}
}
}
Loading

0 comments on commit 5d2ae22

Please sign in to comment.