@webmate-studio/cli 0.3.15 → 0.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webmate-studio/cli",
3
- "version": "0.3.15",
3
+ "version": "0.3.17",
4
4
  "type": "module",
5
5
  "description": "Webmate Studio CLI - Build and manage your Webmate components",
6
6
  "keywords": [
@@ -35,7 +35,7 @@
35
35
  "@webmate-studio/builder": "^0.2.1",
36
36
  "@webmate-studio/core": "^0.2.0",
37
37
  "@webmate-studio/parser": "^0.2.1",
38
- "@webmate-studio/preview": "^0.2.13",
38
+ "@webmate-studio/preview": "^0.2.15",
39
39
  "alpinejs": "^3.15.0",
40
40
  "commander": "^11.0.0",
41
41
  "esbuild": "^0.19.0",
@@ -5,21 +5,18 @@ import pc from 'picocolors';
5
5
 
6
6
  /**
7
7
  * Dev command - start preview server
8
- * Requires login to load design system CSS
8
+ * Login is optional - if logged in, design tokens will be loaded
9
9
  */
10
10
  export async function devCommand(options) {
11
- // Check if logged in
12
- if (!isLoggedIn()) {
13
- console.log('');
14
- logger.error('Nicht eingeloggt.');
15
- logger.info(`Bitte zuerst einloggen: ${pc.cyan('wm login')}`);
16
- console.log('');
17
- process.exit(1);
11
+ // Check if logged in (optional)
12
+ if (isLoggedIn()) {
13
+ const auth = loadAuth();
14
+ logger.info(`Projekt: ${pc.cyan(auth.tenant.name)}`);
15
+ } else {
16
+ logger.info('Nicht eingeloggt - verwende Standard Design Tokens');
17
+ logger.info(`Tipp: ${pc.cyan('wm login')} um Design Tokens vom CMS zu laden`);
18
18
  }
19
19
 
20
- const auth = loadAuth();
21
- logger.info(`Projekt: ${pc.cyan(auth.tenant.name)}`);
22
-
23
20
  try {
24
21
  await startPreviewServer(options);
25
22
  } catch (error) {