@haxtheweb/create 9.0.19 → 9.0.21
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/dist/create.js
CHANGED
|
@@ -353,7 +353,7 @@ async function main() {
|
|
|
353
353
|
let themes = await (0, _site.siteThemeList)();
|
|
354
354
|
if (results.type === "site" && !commandRun.options.theme) {
|
|
355
355
|
// support having no theme but autoselecting
|
|
356
|
-
if (
|
|
356
|
+
if (commandRun.options.auto && commandRun.options.skip) {
|
|
357
357
|
commandRun.options.theme = themes[0];
|
|
358
358
|
} else {
|
|
359
359
|
return p.select({
|
package/dist/docs/hax.1
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
.TH HAX\-CREATE 1 hax 9.0.18 "HAX COMMAND INTERFACE MANUAL"
|
|
2
|
+
|
|
3
|
+
.SH NAME
|
|
4
|
+
hax \- a tool to create HAX websites and web components quickly.
|
|
5
|
+
|
|
6
|
+
.SH SYNOPSIS
|
|
7
|
+
hax [options] [command]
|
|
8
|
+
|
|
9
|
+
.SH DESCRIPTION
|
|
10
|
+
HAX seeks to be the smallest possible back-end CMS to make HAX work and be able to build websites with it. Leveraging JSON Outline Schema, HAX is able to author multiple pages, which it then writes onto the file system. This way a slim server layer is just for basic authentication, knowing how to save files, and placing them in version control.
|
|
11
|
+
|
|
12
|
+
This command line tool can be used to create and modify two different HAX based file structures. Web components (essentially custom HTML tags) using Lit or HAX Single-Sites (a single website editable in the browser with the CMS tools)
|
|
13
|
+
|
|
14
|
+
.SH COMMANDS
|
|
15
|
+
.PP
|
|
16
|
+
.B start
|
|
17
|
+
\- Interactive program to pick options
|
|
18
|
+
.PP
|
|
19
|
+
.B site
|
|
20
|
+
[options] [action] \- Create a HAX website
|
|
21
|
+
.PP
|
|
22
|
+
.B webcomponent
|
|
23
|
+
[options] [name] \- Create Lit based web components, with HAX recommendations
|
|
24
|
+
.PP
|
|
25
|
+
.B help
|
|
26
|
+
[command] \- Display help for command
|
|
27
|
+
|
|
28
|
+
.SH OPTIONS
|
|
29
|
+
.TP
|
|
30
|
+
\--v
|
|
31
|
+
Verbose output
|
|
32
|
+
.TP
|
|
33
|
+
\--debug
|
|
34
|
+
Output for developers
|
|
35
|
+
.TP
|
|
36
|
+
\--format [format]
|
|
37
|
+
Output format\; json (default), yaml
|
|
38
|
+
.TP
|
|
39
|
+
\--path [path]
|
|
40
|
+
Where to perform operation
|
|
41
|
+
.TP
|
|
42
|
+
\--npm\-client [client]
|
|
43
|
+
NPM client to use (must be installed); npm (default), yarn, pnpm
|
|
44
|
+
.TP
|
|
45
|
+
\--y, \--auto
|
|
46
|
+
Yes to all questions
|
|
47
|
+
.TP
|
|
48
|
+
\--skip
|
|
49
|
+
Skip extras (e.g. animations) in tool
|
|
50
|
+
.TP
|
|
51
|
+
\--quiet
|
|
52
|
+
Remove console logging
|
|
53
|
+
.TP
|
|
54
|
+
\--no\-i
|
|
55
|
+
Prevent interactions / sub\-process, good for scripting
|
|
56
|
+
.TP
|
|
57
|
+
\--to\-file [char]
|
|
58
|
+
Redirect command output to a file
|
|
59
|
+
.TP
|
|
60
|
+
\--org [organization]
|
|
61
|
+
Organization for package.json
|
|
62
|
+
.TP
|
|
63
|
+
\--author [author]
|
|
64
|
+
Author for site / package.json
|
|
65
|
+
.TP
|
|
66
|
+
\--writeHaxProperties
|
|
67
|
+
Write haxProperties for the element
|
|
68
|
+
.TP
|
|
69
|
+
\--import\-site [url]
|
|
70
|
+
URL of site to import
|
|
71
|
+
.TP
|
|
72
|
+
\--import\-structure [method]
|
|
73
|
+
Import method to use: pressbooksToSite | elsmlnToSite | haxcmsToSite | notionToSite | gitbookToSite | evolutionToSite | htmlToSite | docxToSite
|
|
74
|
+
.TP
|
|
75
|
+
\--node\-op [operation]
|
|
76
|
+
Node operation to perform
|
|
77
|
+
.TP
|
|
78
|
+
\--item\-id [id]
|
|
79
|
+
Node ID to operate on
|
|
80
|
+
.TP
|
|
81
|
+
\--name [name]
|
|
82
|
+
Name of the project
|
|
83
|
+
.TP
|
|
84
|
+
\--domain [name]
|
|
85
|
+
Published domain name
|
|
86
|
+
.TP
|
|
87
|
+
\--items\-import [char]
|
|
88
|
+
Import items from a file / site
|
|
89
|
+
.TP
|
|
90
|
+
\--title [title]
|
|
91
|
+
Title
|
|
92
|
+
.TP
|
|
93
|
+
\--content [content]
|
|
94
|
+
Page content
|
|
95
|
+
.TP
|
|
96
|
+
\--slug [slug]
|
|
97
|
+
Path (slug)
|
|
98
|
+
.TP
|
|
99
|
+
\--published [status]
|
|
100
|
+
Publishing status
|
|
101
|
+
.TP
|
|
102
|
+
\--tags [tag]
|
|
103
|
+
Tags
|
|
104
|
+
.TP
|
|
105
|
+
\--parent [parent]
|
|
106
|
+
Parent
|
|
107
|
+
.TP
|
|
108
|
+
\--order [order]
|
|
109
|
+
Order
|
|
110
|
+
.TP
|
|
111
|
+
\--theme [theme]
|
|
112
|
+
Theme
|
|
113
|
+
.TP
|
|
114
|
+
\--hide\-in\-menu [char]
|
|
115
|
+
Hide in menu
|
|
116
|
+
.TP
|
|
117
|
+
\-h, \--help
|
|
118
|
+
Display help for command
|
|
119
|
+
|
|
120
|
+
.SH EXAMPLES
|
|
121
|
+
.TP
|
|
122
|
+
.B hax start
|
|
123
|
+
Navigatable interface
|
|
124
|
+
.TP
|
|
125
|
+
.B hax webcomponent my-element --y
|
|
126
|
+
Make a new HAX capable, i18n wired, design system (DDD) driven web component
|
|
127
|
+
.TP
|
|
128
|
+
.B hax site mysite --y
|
|
129
|
+
Create a new HAXsite (HAXcms, single site)
|
|
130
|
+
|
|
131
|
+
.SH BUGS
|
|
132
|
+
Bugs can be viewed at GitHub Issues: https://github.com/haxtheweb/issues/issues
|
|
133
|
+
|
|
134
|
+
Bugs can also be submitted through Merlin on a HAX Site (in the browser) by typing "Issue" to jump start a report!
|
|
135
|
+
|
|
136
|
+
.SH EXTRA
|
|
137
|
+
.PP
|
|
138
|
+
.B Website:
|
|
139
|
+
https://haxtheweb.org/
|
|
140
|
+
.PP
|
|
141
|
+
.B CLI Repository:
|
|
142
|
+
https://github.com/haxtheweb/create
|
|
143
|
+
.PP
|
|
144
|
+
.B Web Components Repository:
|
|
145
|
+
https://github.com/haxtheweb/webcomponents
|
|
146
|
+
|
|
147
|
+
.SH AUTHORS
|
|
148
|
+
.PP
|
|
149
|
+
.B CLI Contributors:
|
|
150
|
+
https://github.com/haxtheweb/create/graphs/contributors
|
|
151
|
+
.PP
|
|
152
|
+
.B Web Components Contributors:
|
|
153
|
+
https://github.com/haxtheweb/webcomponents/graphs/contributors
|
|
@@ -177,6 +177,7 @@ async function webcomponentProcess(commandRun, project, port = "8000") {
|
|
|
177
177
|
await HAXCMS.recurseCopy(`${process.mainModule.path}/templates/${project.type}/hax/`, `${project.path}/${project.name}`);
|
|
178
178
|
// rename gitignore to improve copy cross platform compat
|
|
179
179
|
await fs.renameSync(`${project.path}/${project.name}/_github`, `${project.path}/${project.name}/.github`);
|
|
180
|
+
await fs.renameSync(`${project.path}/${project.name}/_vscode`, `${project.path}/${project.name}/.vscode`);
|
|
180
181
|
await fs.renameSync(`${project.path}/${project.name}/_editorconfig`, `${project.path}/${project.name}/.editorconfig`);
|
|
181
182
|
await fs.renameSync(`${project.path}/${project.name}/_gitignore`, `${project.path}/${project.name}/.gitignore`);
|
|
182
183
|
await fs.renameSync(`${project.path}/${project.name}/_nojekyll`, `${project.path}/${project.name}/.nojekyll`);
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"test:watch": "web-test-runner test/**/*.test.js --node-resolve --watch"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"lit": "^3.2.
|
|
31
|
-
"@haxtheweb/d-d-d": "^9.0.
|
|
32
|
-
"@haxtheweb/i18n-manager": "^9.0.
|
|
30
|
+
"lit": "^3.2.1",
|
|
31
|
+
"@haxtheweb/d-d-d": "^9.0.21",
|
|
32
|
+
"@haxtheweb/i18n-manager": "^9.0.18"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@babel/preset-env": "^7.16.4",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haxtheweb/create",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.21",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"haxcms-nodejs": "haxcms-nodejs"
|
|
28
28
|
},
|
|
29
29
|
"man": [
|
|
30
|
-
"./docs/hax.1"
|
|
30
|
+
"./dist/docs/hax.1"
|
|
31
31
|
],
|
|
32
32
|
"bin": {
|
|
33
33
|
"create-haxtheweb": "./dist/create.js",
|