metaowl 0.1.0
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/CONTRIBUTING.md +49 -0
- package/LICENSE +147 -0
- package/README.md +543 -0
- package/bin/metaowl-build.js +12 -0
- package/bin/metaowl-create.js +270 -0
- package/bin/metaowl-dev.js +12 -0
- package/bin/metaowl-generate.js +176 -0
- package/bin/metaowl-lint.js +71 -0
- package/bin/utils.js +61 -0
- package/config/jsconfig.base.json +3 -0
- package/config/tsconfig.base.json +18 -0
- package/eslint.js +49 -0
- package/index.js +32 -0
- package/modules/app-mounter.js +40 -0
- package/modules/cache.js +57 -0
- package/modules/fetch.js +44 -0
- package/modules/file-router.js +60 -0
- package/modules/meta.js +119 -0
- package/modules/router.js +62 -0
- package/modules/templates-manager.js +20 -0
- package/package.json +68 -0
- package/postcss.cjs +43 -0
- package/test/cache.test.js +55 -0
- package/test/fetch.test.js +100 -0
- package/test/file-router.test.js +55 -0
- package/test/meta.test.js +146 -0
- package/test/router.test.js +77 -0
- package/test/templates-manager.test.js +62 -0
- package/vite/plugin.js +216 -0
- package/vitest.config.js +8 -0
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Contributing to metaowl
|
|
2
|
+
|
|
3
|
+
Thank you for considering a contribution! Here is how to get started.
|
|
4
|
+
|
|
5
|
+
## Reporting Issues
|
|
6
|
+
|
|
7
|
+
Before opening a new issue, please [search existing issues](https://github.com/dennisschott/metaowl/issues) to avoid duplicates. When filing a bug report, include:
|
|
8
|
+
|
|
9
|
+
- metaowl version (`npm ls metaowl`)
|
|
10
|
+
- Node.js version (`node --version`)
|
|
11
|
+
- Minimal reproduction steps or a repository link
|
|
12
|
+
- Expected vs. actual behaviour
|
|
13
|
+
|
|
14
|
+
## Development Setup
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
git clone https://github.com/dennisschott/metaowl.git
|
|
18
|
+
cd metaowl
|
|
19
|
+
npm install
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Submitting a Pull Request
|
|
23
|
+
|
|
24
|
+
1. **Open an issue first** to discuss significant changes before investing time in an implementation.
|
|
25
|
+
2. Fork the repository and create a feature branch from `main`:
|
|
26
|
+
```bash
|
|
27
|
+
git checkout -b feat/my-feature
|
|
28
|
+
```
|
|
29
|
+
3. Make your changes, keeping scope minimal and focused.
|
|
30
|
+
4. Ensure the project is lint-clean:
|
|
31
|
+
```bash
|
|
32
|
+
node bin/metaowl-lint.js
|
|
33
|
+
```
|
|
34
|
+
5. Commit using [Conventional Commits](https://www.conventionalcommits.org):
|
|
35
|
+
- `feat:` — new features
|
|
36
|
+
- `fix:` — bug fixes
|
|
37
|
+
- `docs:` — documentation only
|
|
38
|
+
- `chore:` — tooling, dependencies
|
|
39
|
+
6. Push your branch and open a pull request against `main`.
|
|
40
|
+
|
|
41
|
+
## Code Style
|
|
42
|
+
|
|
43
|
+
- ES modules (`import`/`export`) throughout.
|
|
44
|
+
- No semicolons; single quotes; no trailing commas (enforced by ESLint).
|
|
45
|
+
- Keep public API surface minimal — prefer extending existing modules over adding new entry points.
|
|
46
|
+
|
|
47
|
+
## License
|
|
48
|
+
|
|
49
|
+
By contributing you agree that your contributions will be licensed under the [MIT License](LICENSE).
|
package/LICENSE
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2026 Dennis Schott
|
|
5
|
+
|
|
6
|
+
Everyone is permitted to copy and distribute verbatim copies of this license
|
|
7
|
+
document, but changing it is not allowed.
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates the terms
|
|
10
|
+
and conditions of version 3 of the GNU General Public License, supplemented by
|
|
11
|
+
the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser General
|
|
16
|
+
Public License, and the "GNU GPL" refers to version 3 of the GNU General Public
|
|
17
|
+
License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License, other than an
|
|
20
|
+
Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided by the
|
|
23
|
+
Library, but which is not otherwise based on the Library. Defining a subclass of
|
|
24
|
+
a class defined by the Library is deemed a mode of using an interface provided
|
|
25
|
+
by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an Application
|
|
28
|
+
with the Library. The particular version of the Library with which the Combined
|
|
29
|
+
Work was made is also called the "Linked Version".
|
|
30
|
+
|
|
31
|
+
The "Minimal Corresponding Source" for a Combined Work means the Corresponding
|
|
32
|
+
Source for the Combined Work, excluding any source code for portions of the
|
|
33
|
+
Combined Work that, considered in isolation, are based on the Application, and
|
|
34
|
+
not on the Linked Version.
|
|
35
|
+
|
|
36
|
+
The "Corresponding Application Code" for a Combined Work means the object code
|
|
37
|
+
and/or source code for the Application, including any data and utility programs
|
|
38
|
+
needed for reproducing the Combined Work from the Application, but excluding the
|
|
39
|
+
System Libraries of the Combined Work.
|
|
40
|
+
|
|
41
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
42
|
+
|
|
43
|
+
You may convey a verbatim copy of the Library's object code under the terms of
|
|
44
|
+
sections 4-7 of this License provided that you also convey the machine-readable
|
|
45
|
+
Corresponding Source under the terms of this License, in one of these ways:
|
|
46
|
+
|
|
47
|
+
a) Convey the object code in, or embodied in, a physical product (including a
|
|
48
|
+
physical distribution medium), accompanied by the Corresponding Source fixed
|
|
49
|
+
on a durable physical medium customarily used for software interchange.
|
|
50
|
+
|
|
51
|
+
b) Convey the object code in, or embodied in, a physical product (including a
|
|
52
|
+
physical distribution medium), accompanied by a written offer, valid for at
|
|
53
|
+
least three years and valid for anyone who possesses the object code, to
|
|
54
|
+
provide the Corresponding Source for a fee no more than the cost of physically
|
|
55
|
+
performing this source distribution.
|
|
56
|
+
|
|
57
|
+
c) Convey individual copies of the object code with a copy of the written
|
|
58
|
+
offer to provide the Corresponding Source.
|
|
59
|
+
|
|
60
|
+
d) Convey the object code by offering access from a designated place (gratis
|
|
61
|
+
or for a charge), and offer equivalent access to the Corresponding Source in
|
|
62
|
+
the same way through the same place at no further charge.
|
|
63
|
+
|
|
64
|
+
e) Convey the object code using peer-to-peer transmission, provided you inform
|
|
65
|
+
other peers where the object code and Corresponding Source of the work are
|
|
66
|
+
being offered to the general public at no charge under subsection 6d.
|
|
67
|
+
|
|
68
|
+
2. No Surrender of Others' Freedom.
|
|
69
|
+
|
|
70
|
+
Nothing in this License grants you permission to use the trade names,
|
|
71
|
+
trademarks, service marks, or product names of the Licensor, except as required
|
|
72
|
+
for reasonable and customary use in describing the origin of the work.
|
|
73
|
+
|
|
74
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
75
|
+
|
|
76
|
+
The Corresponding Source for a Combined Work may include the Corresponding
|
|
77
|
+
Source for the Application, and any portion of the Library required to link that
|
|
78
|
+
Application. The object code and/or source code for the Application's interface
|
|
79
|
+
to the Library need not be included.
|
|
80
|
+
|
|
81
|
+
4. Combined Works.
|
|
82
|
+
|
|
83
|
+
You may convey a Combined Work under terms of your choice that, taken
|
|
84
|
+
together, effectively do not restrict modification of the portions of the
|
|
85
|
+
Library contained in the Combined Work and reverse engineering for debugging such
|
|
86
|
+
modifications, if you also do each of the following:
|
|
87
|
+
|
|
88
|
+
a) Give prominent notice with each copy of the Combined Work that the Library
|
|
89
|
+
is used in it and that the Library and its use are covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during execution, include
|
|
95
|
+
the copyright notice for the Library among these notices, as well as a
|
|
96
|
+
reference directing the user to the copies of the GNU GPL and this License.
|
|
97
|
+
|
|
98
|
+
d) Do one of the following:
|
|
99
|
+
0) Convey the Minimal Corresponding Source under the terms of this License,
|
|
100
|
+
and the Corresponding Application Code in a form suitable for, and under
|
|
101
|
+
terms that permit, the user to recombine or relink the Application with a
|
|
102
|
+
modified version of the Linked Version.
|
|
103
|
+
1) Use a suitable shared library mechanism for linking with the Library.
|
|
104
|
+
|
|
105
|
+
e) Provide Installation Information, but only if you are otherwise required to
|
|
106
|
+
provide such information under section 6 of the GNU GPL, and only to the
|
|
107
|
+
extent that such information is necessary to install and execute a modified
|
|
108
|
+
version of the Combined Work.
|
|
109
|
+
|
|
110
|
+
5. Combined Libraries.
|
|
111
|
+
|
|
112
|
+
You may place library facilities that are a work based on the Library side by
|
|
113
|
+
side in a single library together with other library facilities that are not
|
|
114
|
+
Applications and are not covered by this License, and convey such a combined
|
|
115
|
+
library under terms of your choice, if you do both of the following:
|
|
116
|
+
|
|
117
|
+
a) Accompany the combined library with a copy of the same work based on the
|
|
118
|
+
Library, uncombined with any other library facilities, conveyed under the
|
|
119
|
+
terms of this License.
|
|
120
|
+
|
|
121
|
+
b) Give prominent notice with the combined library that part of it is a work
|
|
122
|
+
based on the Library, and explaining where to find the accompanying uncombined
|
|
123
|
+
form of the same work.
|
|
124
|
+
|
|
125
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
126
|
+
|
|
127
|
+
The Free Software Foundation may publish revised and/or new versions of the
|
|
128
|
+
GNU Lesser General Public License from time to time. Such new versions will be
|
|
129
|
+
similar in spirit to the present version, but may differ in detail to address
|
|
130
|
+
new problems or concerns.
|
|
131
|
+
|
|
132
|
+
Each version is given a distinguishing version number. If the Library as you
|
|
133
|
+
received it specifies that a certain numbered version of the GNU Lesser General
|
|
134
|
+
Public License "or any later version" applies to it, you have the option of
|
|
135
|
+
following the terms and conditions either of that published version or of any
|
|
136
|
+
later version published by the Free Software Foundation. If the Library as you
|
|
137
|
+
received it does not specify a version number, you may choose any version of
|
|
138
|
+
the GNU Lesser General Public License ever published by the Free Software
|
|
139
|
+
Foundation.
|
|
140
|
+
|
|
141
|
+
If the Library as you received it specifies that a proxy can decide whether
|
|
142
|
+
future versions of the GNU Lesser General Public License shall apply, that
|
|
143
|
+
proxy's public statement of acceptance of any version is permanent authorization
|
|
144
|
+
for you to choose that version for the Library.
|
|
145
|
+
|
|
146
|
+
For the full text of the GNU GPL v3, see:
|
|
147
|
+
https://www.gnu.org/licenses/gpl-3.0.html
|