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]: move to Shipwright WIP #74

Merged
merged 4 commits into from
Dec 25, 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
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