You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-46Lines changed: 16 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@
11
11
</p>
12
12
</div>
13
13
14
+
<!-- #region about -->
15
+
14
16
## About
15
17
16
18
This repository contains the source code of [os.prozilla.dev][demo] as well as multiple packages. You can find the main package at [`prozilla-os`][prozilla-os].
@@ -23,6 +25,10 @@ ProzillaOS is a web-based operating system inspired by Ubuntu Linux and Windows.
23
25
<br />
24
26
</div>
25
27
28
+
<!-- #endregion about -->
29
+
30
+
<!-- #region getting-started -->
31
+
26
32
## Getting started
27
33
28
34
Make sure you have [NodeJS](https://nodejs.org/en) (version v18.12 or higher) installed on your device.
@@ -37,8 +43,8 @@ Make sure you have [NodeJS](https://nodejs.org/en) (version v18.12 or higher) in
37
43
2. Install package manager and dependencies
38
44
39
45
```
40
-
npm i pnpm -g
41
-
pnpm i
46
+
npm install pnpm -g
47
+
pnpm install
42
48
```
43
49
44
50
3. Run project
@@ -49,8 +55,12 @@ Make sure you have [NodeJS](https://nodejs.org/en) (version v18.12 or higher) in
49
55
50
56
4. Test local dev server by visiting [localhost:3000](http://localhost:3000/)
51
57
52
-
> [!TIP]
53
-
> If you encounter an error saying `module not found`, that probably means you haven't built the packages yet. In most cases, you can fix this by typing `pnpm run packages:build`.
58
+
> [!WARNING]
59
+
> In a local environment, ProzillaOS packages will try to import uncompiled versions of other ProzillaOS packages from their respective `src` directory. If this does not happen correctly and a package tries to import a compiled version of another package from its respective `dist` directory, you might run into an error message saying `module not found`. Executing the command `pnpm run packages:build` will compile each package into their `dist` directories and resolve this error.
60
+
61
+
<!-- #endregion getting-started -->
62
+
63
+
<!-- #region packages -->
54
64
55
65
## Packages
56
66
@@ -84,48 +94,7 @@ These packages contains the source code of parts of the ProzillaOS website. They
84
94
-[`@prozilla-os/demo`](./packages/demo/): Demo site
85
95
-[`@prozilla-os/docs`](./packages/docs/): Documentation site
86
96
87
-
## Scripts
88
-
89
-
ProzillaOS uses the package manager [pnpm](https://pnpm.io/) to run scripts.
90
-
91
-
### Global
92
-
93
-
| Script | Description |
94
-
| --- | --- |
95
-
| <pre>pnpm run start</pre> | Run [`pnpm run demo:start`](#package-prozilla-os-demo). VSCode is configured to run this script whenever the project is opened.
96
-
| <pre>pnpm run build</pre> | Build every package in sequential order.
97
-
| <pre>pnpm run stage</pre> | Copy and combine the build of each package that comprises the website in the `dist` directory at the root.
98
-
| <pre>pnpm run deploy</pre> | Clear the `dist` directory, stage each package that comprises the website, then deploy to GitHub pages. This should trigger a GitHub Action that deploys the build to production.
99
-
100
-
### Public packages
101
-
102
-
| Script | Description |
103
-
| --- | --- |
104
-
| <pre>pnpm run packages:build</pre> | Build all dependencies of the `prozilla-os` package in sequential order and output to respective `dist` directories.
105
-
| <pre>pnpm run packages:update</pre> | Create a new changeset for packages and update their version accordingly.
106
-
| <pre>pnpm run packages:release</pre> | Publish the latest versions of each package to the npm registry.
107
-
108
-
> [!TIP]
109
-
> Use `pnpm --filter <package_selector> build` to build a sepecific subset of packages or a single package and output to respective `dist` directory/directories. For more information about selecting/filtering specific packages, read [pnpm's documentation on filtering](https://pnpm.io/filtering).
110
-
111
-
### Internal package: `@prozilla-os/demo`
112
-
113
-
| Script | Description |
114
-
| --- | --- |
115
-
| <pre>pnpm run demo:start</pre> | See [`pnpm run start`](./packages/demo/README.md#scripts)
116
-
| <pre>pnpm run demo:build</pre> | See [`pnpm run build`](./packages/demo/README.md#scripts)
117
-
| <pre>pnpm run demo:preview</pre> | See [`pnpm run preview`](./packages/demo/README.md#scripts)
118
-
| <pre>pnpm run demo:stage</pre> | See [`pnpm run stage`](./packages/demo/README.md#scripts)
119
-
| <pre>pnpm run demo:fetch</pre> | See [`pnpm run fetch`](./packages/demo/README.md#scripts)
120
-
121
-
### Internal package: `@prozilla-os/docs`
122
-
123
-
| Script | Description |
124
-
| --- | --- |
125
-
| <pre>pnpm run docs:start</pre> | See [`pnpm run start`](./packages/docs/README.md#scripts)
126
-
| <pre>pnpm run docs:build</pre> | See [`pnpm run build`](./packages/docs/README.md#scripts)
127
-
| <pre>pnpm run docs:preview</pre> | See [`pnpm run preview`](./packages/docs/README.md#scripts)
128
-
| <pre>pnpm run docs:generate</pre> | See [`pnpm run generate`](./packages/docs/README.md#scripts)
97
+
<!-- #endregion packages -->
129
98
130
99
## Links
131
100
@@ -141,6 +110,7 @@ ProzillaOS uses the package manager [pnpm](https://pnpm.io/) to run scripts.
141
110
These resources can help you get started with ProzillaOS.
142
111
143
112
-[Getting started guide](https://os.prozilla.dev/docs/guides/getting-started)
Copy file name to clipboardExpand all lines: packages/demo/README.md
+1-11Lines changed: 1 addition & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,17 +15,7 @@
15
15
16
16
**🔗 [os.prozilla.dev](https://os.prozilla.dev/)**
17
17
18
-
`@prozilla-os/demo` is a React Vite website that demonstrates the features of ProzillaOS.
19
-
20
-
## Scripts
21
-
22
-
| Script | Description |
23
-
| --- | --- |
24
-
| <pre>pnpm run start</pre> | Start Vite dev server at [localhost:3000](http://localhost:3000/). Changes to module will dynamically be hot-reloaded, so normally there is no need for hard-refreshes. VSCode is configured to run this script whenever the project is opened.
25
-
| <pre>pnpm run build</pre> | Compile project using TypeScript and bundle all files into the `dist` directory, or the directory specified in config file. This directory can be uploaded to a web server.
26
-
| <pre>pnpm run preview</pre> | Start web server with preview of build at [localhost:8080](http://localhost:8080/). Can be useful for validating build before deploying.
27
-
| <pre>pnpm run stage</pre> | Execute [stage.ts](./scripts/stage.ts), which stages the build and prepares it for deployment. Script will generate a sitemap, robots.txt and all other necessary files.
28
-
| <pre>pnpm run fetch</pre> | Fetch the repository tree using GitHub's API and store it as a JSON file that will be used to populate the virtual drive. More information can be found on the [virtual drive](./features/virtual-drive/README.md) page.
18
+
`@prozilla-os/demo` is a React Vite website that demonstrates the features of ProzillaOS. For more information about this package, visit the [self-hosting guide](https://os.prozilla.dev/docs/guides/self-hosting).
`@prozilla-os/docs` is a VitePress website that contains the documentation for ProzillaOS.
19
-
20
-
## Scripts
21
-
22
-
| Script | Description |
23
-
| --- | --- |
24
-
| <pre>pnpm run start</pre> | Start VitePress dev server at [localhost:3000](http://localhost:3000/). Changes to module will dynamically be hot-reloaded, so normally there is no need for hard-refreshes.
25
-
| <pre>pnpm run build</pre> | Compile project using VitePress and output to the `dist` directory.
26
-
| <pre>pnpm run preview</pre> | Start web server with preview of build at [localhost:8080](http://localhost:8080/). Can be useful for validating build before deploying.
27
-
| <pre>pnpm run generate</pre> | Generate basic information files in JSON format to use as a base for writing the documentation and output to the `data` directory.
18
+
`@prozilla-os/docs` is a VitePress website that contains the documentation for ProzillaOS. For more information about this package, visit the [self-hosting guide](https://os.prozilla.dev/docs/guides/self-hosting).
0 commit comments