@alstar/create 0.0.0-beta.5 → 0.0.0-beta.7

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/main.js CHANGED
@@ -23,6 +23,8 @@ console.log(`
23
23
 
24
24
  intro('@alstar/create')
25
25
 
26
+ log.info(`This will generate a new Alstar app`)
27
+
26
28
  let defaultName = 'alstar-app'
27
29
  let defaultDir = './'
28
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alstar/create",
3
- "version": "0.0.0-beta.5",
3
+ "version": "0.0.0-beta.7",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "create": "main.js"
package/template/index.ts CHANGED
@@ -1,21 +1,21 @@
1
- import { createStudio, defineStructure } from '@alstar/studio'
2
- import { createRefresher } from '@alstar/refresher'
1
+ import {
2
+ createStudio,
3
+ defineStructure,
4
+ defineBlock,
5
+ defineField,
6
+ } from '@alstar/studio'
3
7
 
4
- createRefresher({ rootdir: '.' })
5
-
6
- const structure = defineStructure([
7
- {
8
- name: 'entry',
9
- label: 'Entry',
10
- type: 'entry',
11
- fields: [
12
- {
13
- name: 'title',
14
- label: 'Title',
15
- type: 'text',
8
+ await createStudio({
9
+ structure: defineStructure({
10
+ entry: defineBlock({
11
+ label: 'Entry',
12
+ type: 'entry',
13
+ fields: {
14
+ title: defineField({
15
+ label: 'Title',
16
+ type: 'text',
17
+ }),
16
18
  },
17
- ],
18
- },
19
- ])
20
-
21
- await createStudio(structure)
19
+ }),
20
+ }),
21
+ })
@@ -9,7 +9,6 @@
9
9
  "@types/node": "^24.1.0"
10
10
  },
11
11
  "dependencies": {
12
- "@alstar/studio": "latest",
13
- "@alstar/refresher": "latest"
12
+ "@alstar/studio": "latest"
14
13
  }
15
14
  }
@@ -1,6 +1,6 @@
1
1
  import { defineEntry } from '@alstar/studio'
2
2
 
3
3
  import SiteLayout from '../components/SiteLayout.ts'
4
- import Welcome from '../components/Welcome/Welcome.ts'
4
+ import Welcome from '../components/Welcome.ts'
5
5
 
6
6
  export default defineEntry(() => SiteLayout(Welcome()))
@@ -11,13 +11,6 @@ section.welcome {
11
11
  padding-bottom: 10vh;
12
12
  margin-bottom: 0;
13
13
 
14
- color: #333;
15
- font-size: 15px;
16
-
17
- a {
18
- color: dodgerblue;
19
- }
20
-
21
14
  div {
22
15
  > h1 {
23
16
  display: flex;
@@ -35,8 +28,6 @@ section.welcome {
35
28
  }
36
29
 
37
30
  ol {
38
- font-family: monospace;
39
-
40
31
  margin-top: 2rem;
41
32
  padding-left: 1.2rem;
42
33
 
@@ -45,11 +36,5 @@ section.welcome {
45
36
  margin-bottom: 0.25rem;
46
37
  }
47
38
  }
48
-
49
- code {
50
- background-color: #eeeeee;
51
- padding: 0.375rem;
52
- border-radius: 4px;
53
- }
54
39
  }
55
40
  }
@@ -1,6 +1,5 @@
1
- <svg viewBox="0 0 1332 342" fill="none">
1
+ <svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path
3
- d="M7.152 342C2.88533 342 0.752001 339.867 0.752001 335.6V98.288C0.752001 95.5573 1.60533 92.9973 3.312 90.608L63.728 4.59198C65.6053 2.03198 68.336 0.751984 71.92 0.751984H163.568C167.323 0.751984 170.053 2.03198 171.76 4.59198L232.688 90.608C234.395 92.9973 235.248 95.5573 235.248 98.288V335.6C235.248 339.867 233.115 342 228.848 342H135.152C130.885 342 128.752 339.867 128.752 335.6V239.6H107.248V335.6C107.248 339.867 105.115 342 100.848 342H7.152ZM118 150.768C125.339 150.768 131.312 148.464 135.92 143.856C140.528 139.248 142.832 133.36 142.832 126.192C142.832 118.853 140.528 112.88 135.92 108.272C131.312 103.664 125.339 101.36 118 101.36C110.661 101.36 104.688 103.664 100.08 108.272C95.472 112.88 93.168 118.853 93.168 126.192C93.168 133.36 95.472 139.248 100.08 143.856C104.688 148.464 110.661 150.768 118 150.768ZM263.152 342C258.885 342 256.752 339.867 256.752 335.6V7.15198C256.752 2.88531 258.885 0.751984 263.152 0.751984H356.848C361.115 0.751984 363.248 2.88531 363.248 7.15198V239.6H406.512C410.779 239.6 412.912 241.733 412.912 246V335.6C412.912 339.867 410.779 342 406.512 342H263.152ZM440.652 342C436.385 342 434.252 339.867 434.252 335.6V263.408C434.252 261.36 434.337 259.739 434.508 258.544C434.849 257.179 435.873 255.984 437.58 254.96L491.852 223.728V210.928L438.348 182.768C435.617 181.232 434.252 178.672 434.252 175.088V59.888C434.252 57.1573 434.423 55.1947 434.764 54C435.105 52.6347 436.3 51.184 438.348 49.648L505.932 4.07999C507.297 3.05598 508.748 2.28797 510.284 1.77597C511.82 1.09331 513.783 0.751984 516.172 0.751984H606.54C610.807 0.751984 612.94 2.88531 612.94 7.15198V82.928C612.94 86.6826 611.66 89.2427 609.1 90.608L542.028 120.048V133.36L609.1 171.76C611.66 172.955 612.94 175.685 612.94 179.952V291.312C612.94 292.677 612.684 294.128 612.172 295.664C611.831 297.029 610.977 298.139 609.612 298.992L529.228 338.928C528.204 339.611 526.924 340.293 525.388 340.976C524.023 341.659 522.657 342 521.292 342H440.652ZM676.748 342C672.481 342 670.348 339.867 670.348 335.6V103.152H640.652C636.385 103.152 634.252 101.019 634.252 96.752V7.15198C634.252 2.88531 636.385 0.751984 640.652 0.751984H807.052C811.319 0.751984 813.452 2.88531 813.452 7.15198V96.752C813.452 101.019 811.319 103.152 807.052 103.152H777.1V335.6C777.1 339.867 774.967 342 770.7 342H676.748ZM841.152 342C836.885 342 834.752 339.867 834.752 335.6V98.288C834.752 95.5573 835.605 92.9973 837.312 90.608L897.728 4.59198C899.605 2.03198 902.336 0.751984 905.92 0.751984H997.568C1001.32 0.751984 1004.05 2.03198 1005.76 4.59198L1066.69 90.608C1068.39 92.9973 1069.25 95.5573 1069.25 98.288V335.6C1069.25 339.867 1067.11 342 1062.85 342H969.152C964.885 342 962.752 339.867 962.752 335.6V239.6H941.248V335.6C941.248 339.867 939.115 342 934.848 342H841.152ZM952 150.768C959.339 150.768 965.312 148.464 969.92 143.856C974.528 139.248 976.832 133.36 976.832 126.192C976.832 118.853 974.528 112.88 969.92 108.272C965.312 103.664 959.339 101.36 952 101.36C944.661 101.36 938.688 103.664 934.08 108.272C929.472 112.88 927.168 118.853 927.168 126.192C927.168 133.36 929.472 139.248 934.08 143.856C938.688 148.464 944.661 150.768 952 150.768ZM1097.15 342C1092.89 342 1090.75 339.867 1090.75 335.6V7.15198C1090.75 2.88531 1092.89 0.751984 1097.15 0.751984H1253.57C1258.01 0.751984 1261.42 1.86132 1263.81 4.07999L1322.69 62.448C1324.57 64.1547 1325.76 65.6053 1326.27 66.8C1326.78 67.9946 1327.04 69.9573 1327.04 72.688V142.832C1327.04 145.051 1325.59 147.611 1322.69 150.512L1287.36 185.84L1281.73 190.96L1297.6 214.768L1329.6 276.208C1330.45 277.744 1330.97 279.28 1331.14 280.816C1331.48 282.181 1331.65 283.973 1331.65 286.192V335.6C1331.65 339.867 1329.51 342 1325.25 342H1244.35C1240.6 342 1238.04 340.293 1236.67 336.88L1201.6 246.768H1197.25V335.6C1197.25 339.867 1195.11 342 1190.85 342H1097.15ZM1208.77 139.76C1215.77 139.76 1221.4 137.541 1225.66 133.104C1230.1 128.667 1232.32 123.035 1232.32 116.208C1232.32 109.381 1230.1 103.835 1225.66 99.568C1221.4 95.1307 1215.77 92.912 1208.77 92.912C1201.94 92.912 1196.31 95.1307 1191.87 99.568C1187.61 103.835 1185.47 109.381 1185.47 116.208C1185.47 123.035 1187.61 128.667 1191.87 133.104C1196.31 137.541 1201.94 139.76 1208.77 139.76Z"
4
- fill="#222222"
5
- />
3
+ d="M89.728 512C83.328 512 80.128 508.8 80.128 502.4V146.432C80.128 142.336 81.408 138.496 83.968 134.912L174.592 5.88797C177.408 2.04797 181.504 0.127975 186.88 0.127975H324.352C329.984 0.127975 334.08 2.04797 336.64 5.88797L428.032 134.912C430.592 138.496 431.872 142.336 431.872 146.432V502.4C431.872 508.8 428.672 512 422.272 512H281.728C275.328 512 272.128 508.8 272.128 502.4V358.4H239.872V502.4C239.872 508.8 236.672 512 230.272 512H89.728ZM256 225.152C267.008 225.152 275.968 221.696 282.88 214.784C289.792 207.872 293.248 199.04 293.248 188.288C293.248 177.28 289.792 168.32 282.88 161.408C275.968 154.496 267.008 151.04 256 151.04C244.992 151.04 236.032 154.496 229.12 161.408C222.208 168.32 218.752 177.28 218.752 188.288C218.752 199.04 222.208 207.872 229.12 214.784C236.032 221.696 244.992 225.152 256 225.152Z"
4
+ fill="#222222" />
6
5
  </svg>
@@ -1,3 +1,37 @@
1
+ @import './css/Welcome.css';
2
+
1
3
  body {
2
4
  margin: 0;
3
- }
5
+
6
+ font-family: monospace;
7
+ font-size: 15px;
8
+ color: #333;
9
+
10
+ text-rendering: geometricPrecision;
11
+ }
12
+
13
+ a {
14
+ color: dodgerblue;
15
+ }
16
+
17
+ code {
18
+ background-color: #eee;
19
+
20
+ padding: 0.255rem 0.375rem;
21
+ border-radius: 5px;
22
+ }
23
+
24
+ @media (prefers-color-scheme: dark) {
25
+ body {
26
+ background: #222;
27
+ color: #eee;
28
+ }
29
+
30
+ a {
31
+ color: lightskyblue;
32
+ }
33
+
34
+ code {
35
+ background-color: #555;
36
+ }
37
+ }
package/tsconfig.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "extends": "../../tsconfig.json",
3
- "exclude": ["/template"]
3
+ "exclude": ["/template/**/*"]
4
4
  }