Skip to content

Commit

Permalink
fix: add note about config livereload build
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Mar 25, 2024
1 parent 7282e68 commit 3aadb83
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# --- WireDatabaseBackup {"time":"2024-03-25 19:07:55","user":"","dbName":"db","description":"","tables":[],"excludeTables":["pages_drafts","pages_roles","permissions","roles","roles_permissions","users","users_roles","user","role","permission"],"excludeCreateTables":[],"excludeExportTables":["field_roles","field_permissions","field_email","field_pass","caches","session_login_throttle","page_path_history"]}
# --- WireDatabaseBackup {"time":"2024-03-25 19:33:59","user":"","dbName":"db","description":"","tables":[],"excludeTables":["pages_drafts","pages_roles","permissions","roles","roles_permissions","users","users_roles","user","role","permission"],"excludeCreateTables":[],"excludeExportTables":["field_roles","field_permissions","field_email","field_pass","caches","session_login_throttle","page_path_history"]}

DROP TABLE IF EXISTS `caches`;
CREATE TABLE `caches` (
Expand Down Expand Up @@ -305,7 +305,7 @@ INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('175',
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('187', 'AdminThemeUikit', '10', '{\"logoURL\":\"\\/site\\/modules\\/AdminStyleRock\\/baumrock.svg\",\"cssVersion\":2,\"configPhpHash\":\"43879acd08fa2616b08f3349a3dad97e\",\"useAsLogin\":\"\",\"userAvatar\":\"icon.user-circle\",\"userLabel\":\"{Name}\",\"logoAction\":\"0\",\"layout\":\"\",\"ukGrid\":\"0\",\"maxWidth\":1600,\"groupNotices\":\"1\",\"cssURL\":\"\",\"inputSize\":\"m\",\"noBorderTypes\":[],\"offsetTypes\":[],\"toggleBehavior\":\"1\"}', '2024-03-16 10:17:51');
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('200', 'ProcessLogger', '1', '', '2024-03-16 10:17:52');
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('205', 'InputfieldIcon', '0', '', '2024-03-16 10:17:52');
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('275', 'RockFrontend', '3', '{\"livereloadBackend\":1,\"liveReloadModules\":1,\"noLayoutFile\":\"\",\"copyLayoutFile\":\"\",\"layoutFile\":\"layout.latte\",\"ideLinkHandler\":\"cursor:\\/\\/file\\/%file\",\"webfonts\":\"\",\"remBase\":16,\"features\":[\"RockFrontend.js\",\"topbar\"],\"topbarz\":999,\"m_name\":\"\",\"m_theme_color\":\"\",\"m_background_color\":\"\",\"postCssTool\":\"\",\"profile\":\"\",\"uikit\":\"\",\"installTailwind\":1}', '2024-03-16 12:21:06');
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('275', 'RockFrontend', '3', '{\"livereloadBackend\":1,\"liveReloadModules\":\"\",\"noLayoutFile\":\"\",\"copyLayoutFile\":\"\",\"layoutFile\":\"layout.latte\",\"ideLinkHandler\":\"cursor:\\/\\/file\\/%file\",\"webfonts\":\"\",\"remBase\":16,\"features\":[\"RockFrontend.js\",\"topbar\"],\"topbarz\":999,\"m_name\":\"\",\"m_theme_color\":\"\",\"m_background_color\":\"\",\"postCssTool\":\"\",\"profile\":\"\",\"uikit\":\"\",\"installTailwind\":1}', '2024-03-16 12:21:06');
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('280', 'TextformatterMarkdownExtra', '1', '', '2024-03-16 12:21:07');
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('315', 'Less', '0', '', '2024-03-16 15:10:07');
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('364', 'Site', '3', '', '2024-03-16 15:26:42');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2896,7 +2896,10 @@ private function configTailwind(&$inputfields)
<pre style="margin-top:10px;margin-bottom:10px;">npm install -D</pre>
Then execute "npm run build" to see if it works. It should show something like this:
<pre style="margin-top:10px;margin-bottom:10px;">Rebuilding...' . "\n"
. 'Done in 123ms</pre>',
. 'Done in 123ms</pre>
Running that on every change is no option, of course, so you can tell RockFrontend to build the CSS for you on every change:
<pre style="margin-top:10px;margin-bottom:10px;">$config->livereloadBuild = true;</pre>
This will run "npm run build" via PHP exec(). You can customise that from your package.json file; Make sure that you set this only for development!',
]);
}

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{* docs for the site profile
you can remove this file after installation *}
<section
n:if="is_file($config->paths->root.'tailwind.config.js')"
n:if="!is_file($config->paths->root.'tailwind.config.js')"
class="uk-alert uk-alert-warning"
style="color: #FF6F00"
>
Expand Down
2 changes: 1 addition & 1 deletion site/modules/RockFrontend
6 changes: 5 additions & 1 deletion site/templates/bundle/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion site/templates/sections/docs.latte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{* docs for the site profile
you can remove this file after installation *}
<section
n:if="is_file($config->paths->root.'tailwind.config.js')"
n:if="!is_file($config->paths->root.'tailwind.config.js')"
class="uk-alert uk-alert-warning"
style="color: #FF6F00"
>
Expand Down

0 comments on commit 3aadb83

Please sign in to comment.