Skip to content

Commit

Permalink
[feat]: move to Shipwright WIP (#74)
Browse files Browse the repository at this point in the history
* feat(mellow-svelte): move to Shipwright wip)

* fix(mellow-svelte): upgrade Svelte plugin

* feat: remove all webpack related code

* chore(mellow-svelte): update readme
  • Loading branch information
DominusKelvin authored Dec 25, 2023
1 parent 860a119 commit eb2f68c
Show file tree
Hide file tree
Showing 12 changed files with 823 additions and 3,504 deletions.
8 changes: 4 additions & 4 deletions templates/mellow-svelte/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# svelte
# Svelte

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

This scaffold contains:

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

This file was deleted.

3 changes: 3 additions & 0 deletions templates/mellow-svelte/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ createInertiaApp({
resolve: (name) => require(`./pages/${name}`),
setup({ el, App, props }) {
new App({ target: el, props })
},
progress: {
color: '#6C25C1'
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<button
on:click={() => (count += 1)}
class="rounded-lg border border-purple-500 px-4 py-2 text-sm text-gray-600 hover:border-purple-600"
class="rounded-lg border border-purple-500 px-4 py-2 text-sm text-gray-600 hover:border-purple-600"
>
Clicked {count} times</button
>
10 changes: 1 addition & 9 deletions templates/mellow-svelte/assets/js/pages/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@
Tailwind CSS
</a>
</li>
<li>
<a
href="https://webpack.js.org/"
target="_blank"
class="hover:text-gray-600 hover:underline"
>
Webpack
</a>
</li>

</ul>
</div>
17 changes: 0 additions & 17 deletions templates/mellow-svelte/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-svelte/config/shipwright.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const { pluginSvelte } = require('@rsbuild/plugin-svelte')
module.exports.shipwright = {
build: {
plugins: [pluginSvelte()]
}
}
114 changes: 0 additions & 114 deletions templates/mellow-svelte/config/webpack.js

This file was deleted.

Loading

0 comments on commit eb2f68c

Please sign in to comment.