mirror of
https://github.com/c8r/x0.git
synced 2024-08-16 17:00:24 +03:00
Merge branch 'master' into initial-props-path
This commit is contained in:
commit
751b0bdf81
16
cli.js
16
cli.js
@ -15,26 +15,26 @@ const pkg = readPkg().pkg
|
||||
log.name = 'x0'
|
||||
|
||||
const cli = meow(`
|
||||
Usage
|
||||
${chalk.gray('Usage')}
|
||||
|
||||
Dev Server
|
||||
${chalk.gray('Dev Server')}
|
||||
|
||||
x0 pages
|
||||
${chalk.cyan('x0 pages')}
|
||||
|
||||
Build
|
||||
${chalk.gray('Build')}
|
||||
|
||||
x0 build pages
|
||||
${chalk.cyan('x0 build pages')}
|
||||
|
||||
Options
|
||||
${chalk.gray('Options')}
|
||||
|
||||
--webpack Path to webpack config file
|
||||
|
||||
Dev Server
|
||||
${chalk.gray('Dev Server')}
|
||||
|
||||
-o --open Open dev server in default browser
|
||||
-p --port Port for dev server
|
||||
|
||||
Build
|
||||
${chalk.gray('Build')}
|
||||
|
||||
-d --out-dir Output directory (default dist)
|
||||
-s --static Output static HTML without JS bundle
|
||||
|
@ -17,6 +17,7 @@ const dev = {
|
||||
}
|
||||
|
||||
module.exports = async (opts) => {
|
||||
if (opts.basename) delete opts.basename
|
||||
const config = merge(baseConfig, opts.webpack)
|
||||
const template = createTemplate(opts)
|
||||
|
||||
|
32
package.json
32
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@compositor/x0",
|
||||
"version": "5.0.0",
|
||||
"version": "5.0.2",
|
||||
"description": "Zero-config React development environment and static site generator",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
@ -71,12 +71,30 @@
|
||||
"title": "Compositor x0",
|
||||
"basename": "/x0",
|
||||
"meta": [
|
||||
{ "name": "description", "content": "Zero-config React development environment and static site generator" },
|
||||
{ "name": "twitter:card", "content": "summary" },
|
||||
{ "name": "twitter:site", "content": "@getcompositor" },
|
||||
{ "name": "twitter:image", "content": "https://compositor.io/logo/dist/compositor.png" },
|
||||
{ "name": "twitter:title", "content": "Compositor x0" },
|
||||
{ "name": "twitter:description", "content": "Zero-config React development environment and static site generator" }
|
||||
{
|
||||
"name": "description",
|
||||
"content": "Zero-config React development environment and static site generator"
|
||||
},
|
||||
{
|
||||
"name": "twitter:card",
|
||||
"content": "summary"
|
||||
},
|
||||
{
|
||||
"name": "twitter:site",
|
||||
"content": "@getcompositor"
|
||||
},
|
||||
{
|
||||
"name": "twitter:image",
|
||||
"content": "https://compositor.io/logo/dist/compositor.png"
|
||||
},
|
||||
{
|
||||
"name": "twitter:title",
|
||||
"content": "Compositor x0"
|
||||
},
|
||||
{
|
||||
"name": "twitter:description",
|
||||
"content": "Zero-config React development environment and static site generator"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ava": {
|
||||
|
Loading…
Reference in New Issue
Block a user