Methods
addVersion(fnPks)
- Description:
自動添加package.json內版本補丁號
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
fnPks |
String |
./package.json
|
輸入package.json位置路徑字串 |
(async) extractHtml(optopt)
- Description:
產生瀏覽範例用的html檔
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opt |
Object |
<optional> |
{}
|
輸入設定物件,預設{} Properties
|
getPks(fnopt) → {Object}
- Description:
取得package.json資料物件
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
fn |
String |
<optional> |
'./package.json'
|
輸入package.json路徑字串 |
Returns:
回傳資料物件
- Type
- Object
getReadme(fnopt) → {Object}
- Description:
讀取readme資料物件
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
fn |
String |
<optional> |
'./README.md'
|
輸入readme檔案路徑字串 |
Returns:
回傳readme資料物件
- Type
- Object
modifyReadme(fnRMopt)
- Description:
更新readme內cdn連結為最新版本
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
fnRM |
String |
<optional> |
'./README.md'
|
輸入readme檔案路徑字串 |
(async) rollupCode(codeSrc, opt)
- Description:
使用rollup轉譯程式碼
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
codeSrc |
String | 輸入程式碼字串 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
opt |
Object | 輸入設定物件 Properties
|
(async) rollupFile(opt)
- Description:
使用rollup轉譯檔案
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opt |
Object | 輸入設定物件 Properties
|
(async) rollupFiles(opt)
- Description:
使用rollup轉譯檔案
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opt |
Object | 輸入設定物件 Properties
|
(async) rollupParfor(opt)
- Description:
使用rollup轉譯外部指定的核心分析程式碼檔案,並封裝至前端web worker與後端worker內
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opt |
Object | 輸入設定物件 Properties
|
(async) rollupVueToHtml(srcopt, taropt, optopt)
- Description:
使用rollup轉譯Vue檔案並產生瀏覽用的html檔
- Source:
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src |
String |
<optional> |
'./src/App.vue'
|
輸入欲打包Vue檔案(*.vue)的位置字串,預設'./src/App.vue' |
|||||||||||||||||||||||||||||||||||
tar |
String |
<optional> |
'./docs/examples/app.html'
|
輸入輸出html的位置字串,並於該目錄下會出現打包後的js檔與map檔,預設'./docs/examples/app.html' |
|||||||||||||||||||||||||||||||||||
opt |
Object |
<optional> |
{}
|
輸入其他設定物件,預設{} Properties
|
(async) rollupWorker(opt)
- Description:
使用rollup轉譯檔案,並封裝至前端web worker與後端worker內
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opt |
Object | 輸入設定物件 Properties
|
(async) rollupWorkerCore(opt)
- Description:
使用rollup轉譯檔案,並封裝至前端web worker內或後端nodejs worker內
- Source:
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opt |
Object | 輸入設定物件 Properties
|
setPks(pks, fnopt)
- Description:
儲存資料至package.json
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
pks |
Object | 輸入package.json資料物件 |
||
fn |
String |
<optional> |
'./package.json'
|
輸入package.json路徑字串 |