metaowl 0.1.2 → 0.1.3
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/README.md +2 -8
- package/bin/metaowl-create.js +6 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -72,17 +72,11 @@ npm install metaowl
|
|
|
72
72
|
|
|
73
73
|
## Create a New Project
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
```bash
|
|
78
|
-
npx metaowl-create my-app
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
Or install metaowl globally and run it interactively:
|
|
75
|
+
Install metaowl globally and run it interactively:
|
|
82
76
|
|
|
83
77
|
```bash
|
|
84
78
|
npm install -g metaowl
|
|
85
|
-
metaowl-create
|
|
79
|
+
metaowl-create app_name
|
|
86
80
|
```
|
|
87
81
|
|
|
88
82
|
This generates a ready-to-run project:
|
package/bin/metaowl-create.js
CHANGED
|
@@ -91,10 +91,10 @@ module.exports = createPostcssConfig()
|
|
|
91
91
|
write('jsconfig.json', JSON.stringify({
|
|
92
92
|
extends: './node_modules/metaowl/config/jsconfig.base.json',
|
|
93
93
|
compilerOptions: {
|
|
94
|
-
baseUrl: '
|
|
94
|
+
baseUrl: '.',
|
|
95
95
|
paths: {
|
|
96
|
-
'@pages/*': ['pages/*'],
|
|
97
|
-
'@components/*': ['components/*']
|
|
96
|
+
'@pages/*': ['src/pages/*'],
|
|
97
|
+
'@components/*': ['src/components/*']
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
include: ['src']
|
|
@@ -159,8 +159,7 @@ export default class Index extends Component {
|
|
|
159
159
|
|
|
160
160
|
// --- src/pages/index/Index.xml ---
|
|
161
161
|
write('src/pages/index/Index.xml',
|
|
162
|
-
|
|
163
|
-
<templates>
|
|
162
|
+
`<templates>
|
|
164
163
|
<t t-name="Index">
|
|
165
164
|
<div class="layout">
|
|
166
165
|
<AppHeader />
|
|
@@ -198,8 +197,7 @@ export default class AppHeader extends Component {
|
|
|
198
197
|
|
|
199
198
|
// --- src/components/AppHeader/AppHeader.xml ---
|
|
200
199
|
write('src/components/AppHeader/AppHeader.xml',
|
|
201
|
-
|
|
202
|
-
<templates>
|
|
200
|
+
`<templates>
|
|
203
201
|
<t t-name="AppHeader">
|
|
204
202
|
<header class="app-header">
|
|
205
203
|
<span class="app-header__logo">${name}</span>
|
|
@@ -235,8 +233,7 @@ export default class AppFooter extends Component {
|
|
|
235
233
|
|
|
236
234
|
// --- src/components/AppFooter/AppFooter.xml ---
|
|
237
235
|
write('src/components/AppFooter/AppFooter.xml',
|
|
238
|
-
|
|
239
|
-
<templates>
|
|
236
|
+
`<templates>
|
|
240
237
|
<t t-name="AppFooter">
|
|
241
238
|
<footer class="app-footer">
|
|
242
239
|
<span>Built with metaowl</span>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "metaowl",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Lightweight meta-framework for Odoo OWL — file-based routing, app mounting, Fetch helper, Cache, Meta tags, SSG generator, and a Vite plugin.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|