迭代 ONE-OS 多原型:原型导航与版本追踪上线;车辆氢费明细成本单价校验增强;多业务台账/财务/工作台页面迭代与标注目录同步。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -5,6 +5,9 @@ const root = '/Users/sylvawong/oneos1.2';
|
||||
const prdPath = join(root, 'src/resources/vehicle-h2-fee-ledger/PRD.md');
|
||||
const prd = readFileSync(prdPath, 'utf8');
|
||||
|
||||
const specPrdPath = join(root, 'src/prototypes/vehicle-h2-fee-ledger/.spec/PRD.md');
|
||||
writeFileSync(specPrdPath, prd, 'utf8');
|
||||
|
||||
const resourcesAlias = join(root, 'src/resources/vehicle-h2-fee-ledger/车辆氢费明细-需求文档.md');
|
||||
writeFileSync(resourcesAlias, prd, 'utf8');
|
||||
|
||||
@@ -30,7 +33,7 @@ const docRoot = ann.directory.nodes[0];
|
||||
const prdNode = findChild(docRoot.children, 'vh2-doc-prd');
|
||||
if (prdNode) {
|
||||
prdNode.markdown = prd;
|
||||
prdNode.markdownPath = 'src/resources/vehicle-h2-fee-ledger/PRD.md';
|
||||
prdNode.markdownPath = '.spec/PRD.md';
|
||||
}
|
||||
|
||||
const pageAnn = findChild(docRoot.children, 'vh2-doc-page-annotations');
|
||||
@@ -86,5 +89,6 @@ page = page.slice(0, startIdx + startMarker.length) + prdForJs + page.slice(endI
|
||||
writeFileSync(pagePath, page, 'utf8');
|
||||
|
||||
console.log('Synced PRD to:', prdPath);
|
||||
console.log('Synced spec:', specPrdPath);
|
||||
console.log('Synced alias:', resourcesAlias);
|
||||
console.log('Synced annotation-source.json and H2LedgerPage.jsx');
|
||||
|
||||
Reference in New Issue
Block a user