1.0.0-dev.15 • Published 12 months ago

@coodev/core v1.0.0-dev.15

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

Coodev Core

Usage

Install

npm i @coodev/react react react-dom

Create pages

Create page component in pages directory, for example pages/index.tsx

import React from 'react'

export default function Home() {
  return <div>Home</div>
}

Development

Add dev script in package.json

{
  "scripts": {
    "dev": "coodev-react"
  }
}

Start development server

npm run dev

Build

Add build script in package.json

{
  "scripts": {
    "build": "coodev-react build"
  }
}

Build

npm run build

Coodev Configuration

/**
 * config
 */
const coodevConfig = {
  root: '.',
  ssr: {
    streamingHtml: true,
  },
  runtimeConfig: {},
  plugins: [
    {
      configResolved?(config: InternalConfiguration): Promisable<void>
      configureCoodev?(coodev: Coodev): void | (() => void)
      buildEnd?(options: BuildEndOptions, output: BuildOutput): Promisable<void>
      documentHtml?(html: string): Promisable<void | string>
      htmlRendered?(html: string): Promisable<void | string>
    }
  ],
}
1.0.0-dev.13

12 months ago

1.0.0-dev.12

1 year ago

1.0.0-dev.11

1 year ago

1.0.0-dev.15

12 months ago

1.0.0-dev.14

12 months ago

1.0.0-dev.10

1 year ago

1.0.0-dev.9

1 year ago

1.0.0-dev.7

1 year ago

1.0.0-dev.8

1 year ago

1.0.0-dev.5

1 year ago

1.0.0-dev.6

1 year ago

1.0.0-dev.3

1 year ago

1.0.0-dev.4

1 year ago

1.0.0-dev.2

1 year ago

1.0.0-dev.1

2 years ago