Home Reference Source Test

Function

Static Public Summary
public

async addComponent(entry: String, name: String, base: String)

public

async bundle(path: string): string[]

Bundle components to JS modules

public

async createCell(name: String, path: String, keys: String[], preload: Boolean)

public

async createRouter(name: String, path: String, page: String[])

public
public

async pack(path: string): string[]

Bundle components into a JS package

Static Public

public async addComponent(entry: String, name: String, base: String) source

import {addComponent} from 'web-cell-cli/source/utility.js'

Params:

NameTypeAttributeDescription
entry String

Path of HTML file

name String

Tag name

base String
  • optional
  • default: 'dist/'

Base path of JS files

public async bundle(path: string): string[] source

import {bundle} from 'web-cell-cli/source/command.js'

Bundle components to JS modules

Params:

NameTypeAttributeDescription
path string

Source directory

Return:

string[]

Component paths

public async createCell(name: String, path: String, keys: String[], preload: Boolean) source

import {createCell} from 'web-cell-cli/source/command.js'

Params:

NameTypeAttributeDescription
name String

Tag name

path String

Root of Source codes

keys String[]
  • optional
  • default: []

Defined HTML attributes

preload Boolean
  • nullable: true

Insert Component tag to Entry HTML

public async createRouter(name: String, path: String, page: String[]) source

import {createRouter} from 'web-cell-cli/source/command.js'

Params:

NameTypeAttributeDescription
name String

Prefix of Tag name

path String

Root of Source codes

page String[]
  • optional
  • default: []

Router/Page names of Web-site/app

public identifierOf(raw: String, big: Boolean): String source

import {identifierOf} from 'web-cell-cli/source/utility.js'

Params:

NameTypeAttributeDescription
raw String
big Boolean
  • nullable: true

Big-camel style

Return:

String

public async pack(path: string): string[] source

import {pack} from 'web-cell-cli/source/command.js'

Bundle components into a JS package

Params:

NameTypeAttributeDescription
path string

Source directory

Return:

string[]

Component paths