Skip to content

Commit

Permalink
[feat] update starter templates to shipwright v0.2.0 (#110)
Browse files Browse the repository at this point in the history
* chore: remove console log

* chore(create-sails-generator): bump version

* feat(mellow-react): update shipright and plugin-react

* feat(mellow-react): update app.ejs with shipwright methods to inject assets

* feat(mellow-vue): update shipwright and plugin-vue

* feat(mellow-vue): update template to use shipwright methods to inject scripts and styles

* feat(mellow-vue): remove sockets dependency

* feat(mellow-react): remove socket deps

* feat(mellow-svelte): update dependencies

* feat(mellow-svelte): update template to use shipwright methods for injecting scripts and styles

* feat(mellow-svelte): remove sockets
  • Loading branch information
DominusKelvin authored Jun 6, 2024
1 parent ac84fd4 commit a431d20
Show file tree
Hide file tree
Showing 14 changed files with 347 additions and 1,747 deletions.
1 change: 0 additions & 1 deletion create-sails-generator/generators/page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ module.exports = {

scope.pageRelPath = roughName.replace(/\.+/g, '/')
scope.pagePath = scope.pageRelPath
console.log(scope.pagePath)
scope.pageRelPath += getFileExtensionForUi(uiFramework)
scope.uiFramework = uiFramework
if (uiFramework == 'react') {
Expand Down
2 changes: 1 addition & 1 deletion create-sails-generator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-sails-generator",
"version": "0.0.2",
"version": "0.0.3",
"description": "Sails generator for The Boring JavaScript Stack.",
"scripts": {
"test": "node --test"
Expand Down
6 changes: 0 additions & 6 deletions templates/mellow-react/assets/dependencies/sockets.js

This file was deleted.

380 changes: 103 additions & 277 deletions templates/mellow-react/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions templates/mellow-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"sails-hook-sockets": "^2.0.0"
},
"devDependencies": {
"@rsbuild/plugin-react": "^0.6.2",
"@rsbuild/plugin-react": "^0.7.3",
"create-sails-generator": "^0.0.1",
"prettier": "^2.6.2",
"prettier-plugin-tailwindcss": "^0.1.11",
"sails-hook-shipwright": "^0.1.1",
"sails-hook-shipwright": "^0.2.0",
"sails.io.js": "^1.2.1",
"socket.io-client": "^2.2.0",
"tailwindcss": "^3.0.24"
Expand Down
7 changes: 2 additions & 5 deletions templates/mellow-react/views/app.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/css/app.css?version=<%=page.version%>" />
<%- shipwright.styles() %>
</head>
<body>
<div id="app" data-page="<%= JSON.stringify(page) %>"></div>
<script
type="text/javascript"
src="/js/app.js?version=<%=page.version%>"
></script>
<%- shipwright.scripts() %>
</body>
</html>
6 changes: 0 additions & 6 deletions templates/mellow-svelte/assets/dependencies/sockets.js

This file was deleted.

Loading

0 comments on commit a431d20

Please sign in to comment.