@liorandb/studio 0.0.2 → 0.0.4

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/bin/index.js CHANGED
@@ -8,23 +8,50 @@ const __filename = fileURLToPath(import.meta.url);
8
8
  const __dirname = path.dirname(__filename);
9
9
 
10
10
  const templateDir = path.resolve(__dirname, "../template");
11
- const targetDir = process.argv[2]
12
- ? path.resolve(process.argv[2])
13
- : process.cwd();
11
+
12
+ const arg = process.argv[2];
13
+
14
+ let targetDir;
15
+
16
+ // If "." → current folder
17
+ if (arg === ".") {
18
+ targetDir = process.cwd();
19
+ }
20
+ // If folder name provided → ./<name>
21
+ else if (arg) {
22
+ targetDir = path.resolve(process.cwd(), arg);
23
+ }
24
+ // Default → ./liorandb-studio
25
+ else {
26
+ targetDir = path.resolve(process.cwd(), "liorandb-studio");
27
+ }
14
28
 
15
29
  console.log("🚀 Creating LioranDB Studio...\n");
30
+ console.log("📁 Target:", targetDir, "\n");
16
31
 
17
32
  if (!fs.existsSync(templateDir)) {
18
33
  console.error("❌ Template directory not found:", templateDir);
19
34
  process.exit(1);
20
35
  }
21
36
 
37
+ // Prevent overwriting existing directory unless "."
38
+ if (arg !== "." && fs.existsSync(targetDir)) {
39
+ console.error("❌ Directory already exists:", targetDir);
40
+ process.exit(1);
41
+ }
42
+
43
+ // Create directory if not "."
44
+ if (arg !== ".") {
45
+ fs.mkdirSync(targetDir, { recursive: true });
46
+ }
47
+
22
48
  fs.cpSync(templateDir, targetDir, { recursive: true });
23
49
 
24
50
  console.log("📦 Installing dependencies...\n");
25
-
26
51
  execSync("npm install", { stdio: "inherit", cwd: targetDir });
27
52
 
28
- console.log("\n🔥 Starting dev server...\n");
53
+ console.log("\n⚙️ Building project...\n");
54
+ execSync("npm run build", { stdio: "inherit", cwd: targetDir });
29
55
 
30
- execSync("npm run dev", { stdio: "inherit", cwd: targetDir });
56
+ console.log("\n🔥 Starting the server...\n");
57
+ execSync("npm run start", { stdio: "inherit", cwd: targetDir });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liorandb/studio",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "bin": {
5
5
  "liorandb-studio": "./bin/index.js"
6
6
  },
@@ -2,6 +2,10 @@ import type { NextConfig } from "next";
2
2
 
3
3
  const nextConfig: NextConfig = {
4
4
  /* config options here */
5
+ "output": "export",
6
+ "images": {
7
+ "unoptimized": true
8
+ }
5
9
  };
6
10
 
7
11
  export default nextConfig;
@@ -19,6 +19,7 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@tailwindcss/postcss": "^4",
22
+ "@tauri-apps/cli": "^2.10.0",
22
23
  "@types/node": "^20",
23
24
  "@types/react": "^19",
24
25
  "@types/react-dom": "^19",
@@ -1550,6 +1551,223 @@
1550
1551
  "tailwindcss": "4.1.18"
1551
1552
  }
1552
1553
  },
1554
+ "node_modules/@tauri-apps/cli": {
1555
+ "version": "2.10.0",
1556
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.10.0.tgz",
1557
+ "integrity": "sha512-ZwT0T+7bw4+DPCSWzmviwq5XbXlM0cNoleDKOYPFYqcZqeKY31KlpoMW/MOON/tOFBPgi31a2v3w9gliqwL2+Q==",
1558
+ "dev": true,
1559
+ "license": "Apache-2.0 OR MIT",
1560
+ "bin": {
1561
+ "tauri": "tauri.js"
1562
+ },
1563
+ "engines": {
1564
+ "node": ">= 10"
1565
+ },
1566
+ "funding": {
1567
+ "type": "opencollective",
1568
+ "url": "https://opencollective.com/tauri"
1569
+ },
1570
+ "optionalDependencies": {
1571
+ "@tauri-apps/cli-darwin-arm64": "2.10.0",
1572
+ "@tauri-apps/cli-darwin-x64": "2.10.0",
1573
+ "@tauri-apps/cli-linux-arm-gnueabihf": "2.10.0",
1574
+ "@tauri-apps/cli-linux-arm64-gnu": "2.10.0",
1575
+ "@tauri-apps/cli-linux-arm64-musl": "2.10.0",
1576
+ "@tauri-apps/cli-linux-riscv64-gnu": "2.10.0",
1577
+ "@tauri-apps/cli-linux-x64-gnu": "2.10.0",
1578
+ "@tauri-apps/cli-linux-x64-musl": "2.10.0",
1579
+ "@tauri-apps/cli-win32-arm64-msvc": "2.10.0",
1580
+ "@tauri-apps/cli-win32-ia32-msvc": "2.10.0",
1581
+ "@tauri-apps/cli-win32-x64-msvc": "2.10.0"
1582
+ }
1583
+ },
1584
+ "node_modules/@tauri-apps/cli-darwin-arm64": {
1585
+ "version": "2.10.0",
1586
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.10.0.tgz",
1587
+ "integrity": "sha512-avqHD4HRjrMamE/7R/kzJPcAJnZs0IIS+1nkDP5b+TNBn3py7N2aIo9LIpy+VQq0AkN8G5dDpZtOOBkmWt/zjA==",
1588
+ "cpu": [
1589
+ "arm64"
1590
+ ],
1591
+ "dev": true,
1592
+ "license": "Apache-2.0 OR MIT",
1593
+ "optional": true,
1594
+ "os": [
1595
+ "darwin"
1596
+ ],
1597
+ "engines": {
1598
+ "node": ">= 10"
1599
+ }
1600
+ },
1601
+ "node_modules/@tauri-apps/cli-darwin-x64": {
1602
+ "version": "2.10.0",
1603
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.10.0.tgz",
1604
+ "integrity": "sha512-keDmlvJRStzVFjZTd0xYkBONLtgBC9eMTpmXnBXzsHuawV2q9PvDo2x6D5mhuoMVrJ9QWjgaPKBBCFks4dK71Q==",
1605
+ "cpu": [
1606
+ "x64"
1607
+ ],
1608
+ "dev": true,
1609
+ "license": "Apache-2.0 OR MIT",
1610
+ "optional": true,
1611
+ "os": [
1612
+ "darwin"
1613
+ ],
1614
+ "engines": {
1615
+ "node": ">= 10"
1616
+ }
1617
+ },
1618
+ "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": {
1619
+ "version": "2.10.0",
1620
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.10.0.tgz",
1621
+ "integrity": "sha512-e5u0VfLZsMAC9iHaOEANumgl6lfnJx0Dtjkd8IJpysZ8jp0tJ6wrIkto2OzQgzcYyRCKgX72aKE0PFgZputA8g==",
1622
+ "cpu": [
1623
+ "arm"
1624
+ ],
1625
+ "dev": true,
1626
+ "license": "Apache-2.0 OR MIT",
1627
+ "optional": true,
1628
+ "os": [
1629
+ "linux"
1630
+ ],
1631
+ "engines": {
1632
+ "node": ">= 10"
1633
+ }
1634
+ },
1635
+ "node_modules/@tauri-apps/cli-linux-arm64-gnu": {
1636
+ "version": "2.10.0",
1637
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.10.0.tgz",
1638
+ "integrity": "sha512-YrYYk2dfmBs5m+OIMCrb+JH/oo+4FtlpcrTCgiFYc7vcs6m3QDd1TTyWu0u01ewsCtK2kOdluhr/zKku+KP7HA==",
1639
+ "cpu": [
1640
+ "arm64"
1641
+ ],
1642
+ "dev": true,
1643
+ "license": "Apache-2.0 OR MIT",
1644
+ "optional": true,
1645
+ "os": [
1646
+ "linux"
1647
+ ],
1648
+ "engines": {
1649
+ "node": ">= 10"
1650
+ }
1651
+ },
1652
+ "node_modules/@tauri-apps/cli-linux-arm64-musl": {
1653
+ "version": "2.10.0",
1654
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.10.0.tgz",
1655
+ "integrity": "sha512-GUoPdVJmrJRIXFfW3Rkt+eGK9ygOdyISACZfC/bCSfOnGt8kNdQIQr5WRH9QUaTVFIwxMlQyV3m+yXYP+xhSVA==",
1656
+ "cpu": [
1657
+ "arm64"
1658
+ ],
1659
+ "dev": true,
1660
+ "license": "Apache-2.0 OR MIT",
1661
+ "optional": true,
1662
+ "os": [
1663
+ "linux"
1664
+ ],
1665
+ "engines": {
1666
+ "node": ">= 10"
1667
+ }
1668
+ },
1669
+ "node_modules/@tauri-apps/cli-linux-riscv64-gnu": {
1670
+ "version": "2.10.0",
1671
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.10.0.tgz",
1672
+ "integrity": "sha512-JO7s3TlSxshwsoKNCDkyvsx5gw2QAs/Y2GbR5UE2d5kkU138ATKoPOtxn8G1fFT1aDW4LH0rYAAfBpGkDyJJnw==",
1673
+ "cpu": [
1674
+ "riscv64"
1675
+ ],
1676
+ "dev": true,
1677
+ "license": "Apache-2.0 OR MIT",
1678
+ "optional": true,
1679
+ "os": [
1680
+ "linux"
1681
+ ],
1682
+ "engines": {
1683
+ "node": ">= 10"
1684
+ }
1685
+ },
1686
+ "node_modules/@tauri-apps/cli-linux-x64-gnu": {
1687
+ "version": "2.10.0",
1688
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.10.0.tgz",
1689
+ "integrity": "sha512-Uvh4SUUp4A6DVRSMWjelww0GnZI3PlVy7VS+DRF5napKuIehVjGl9XD0uKoCoxwAQBLctvipyEK+pDXpJeoHng==",
1690
+ "cpu": [
1691
+ "x64"
1692
+ ],
1693
+ "dev": true,
1694
+ "license": "Apache-2.0 OR MIT",
1695
+ "optional": true,
1696
+ "os": [
1697
+ "linux"
1698
+ ],
1699
+ "engines": {
1700
+ "node": ">= 10"
1701
+ }
1702
+ },
1703
+ "node_modules/@tauri-apps/cli-linux-x64-musl": {
1704
+ "version": "2.10.0",
1705
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.10.0.tgz",
1706
+ "integrity": "sha512-AP0KRK6bJuTpQ8kMNWvhIpKUkQJfcPFeba7QshOQZjJ8wOS6emwTN4K5g/d3AbCMo0RRdnZWwu67MlmtJyxC1Q==",
1707
+ "cpu": [
1708
+ "x64"
1709
+ ],
1710
+ "dev": true,
1711
+ "license": "Apache-2.0 OR MIT",
1712
+ "optional": true,
1713
+ "os": [
1714
+ "linux"
1715
+ ],
1716
+ "engines": {
1717
+ "node": ">= 10"
1718
+ }
1719
+ },
1720
+ "node_modules/@tauri-apps/cli-win32-arm64-msvc": {
1721
+ "version": "2.10.0",
1722
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.10.0.tgz",
1723
+ "integrity": "sha512-97DXVU3dJystrq7W41IX+82JEorLNY+3+ECYxvXWqkq7DBN6FsA08x/EFGE8N/b0LTOui9X2dvpGGoeZKKV08g==",
1724
+ "cpu": [
1725
+ "arm64"
1726
+ ],
1727
+ "dev": true,
1728
+ "license": "Apache-2.0 OR MIT",
1729
+ "optional": true,
1730
+ "os": [
1731
+ "win32"
1732
+ ],
1733
+ "engines": {
1734
+ "node": ">= 10"
1735
+ }
1736
+ },
1737
+ "node_modules/@tauri-apps/cli-win32-ia32-msvc": {
1738
+ "version": "2.10.0",
1739
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.10.0.tgz",
1740
+ "integrity": "sha512-EHyQ1iwrWy1CwMalEm9z2a6L5isQ121pe7FcA2xe4VWMJp+GHSDDGvbTv/OPdkt2Lyr7DAZBpZHM6nvlHXEc4A==",
1741
+ "cpu": [
1742
+ "ia32"
1743
+ ],
1744
+ "dev": true,
1745
+ "license": "Apache-2.0 OR MIT",
1746
+ "optional": true,
1747
+ "os": [
1748
+ "win32"
1749
+ ],
1750
+ "engines": {
1751
+ "node": ">= 10"
1752
+ }
1753
+ },
1754
+ "node_modules/@tauri-apps/cli-win32-x64-msvc": {
1755
+ "version": "2.10.0",
1756
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.10.0.tgz",
1757
+ "integrity": "sha512-NTpyQxkpzGmU6ceWBTY2xRIEaS0ZLbVx1HE1zTA3TY/pV3+cPoPPOs+7YScr4IMzXMtOw7tLw5LEXo5oIG3qaQ==",
1758
+ "cpu": [
1759
+ "x64"
1760
+ ],
1761
+ "dev": true,
1762
+ "license": "Apache-2.0 OR MIT",
1763
+ "optional": true,
1764
+ "os": [
1765
+ "win32"
1766
+ ],
1767
+ "engines": {
1768
+ "node": ">= 10"
1769
+ }
1770
+ },
1553
1771
  "node_modules/@tybys/wasm-util": {
1554
1772
  "version": "0.10.1",
1555
1773
  "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz",
@@ -20,6 +20,7 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@tailwindcss/postcss": "^4",
23
+ "@tauri-apps/cli": "^2.10.0",
23
24
  "@types/node": "^20",
24
25
  "@types/react": "^19",
25
26
  "@types/react-dom": "^19",