mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
fix(app):docs building script
This commit is contained in:
parent
a769ca67f5
commit
d6e92b4139
3 changed files with 15 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ export interface Version {
|
|||
await mkdirp(WORK_DIR);
|
||||
|
||||
log(`Cloning ${REPO_URL} into ${MASTER_BRANCH_DIR}`);
|
||||
await runCommand(`git clone ${REPO_URL} ${MASTER_BRANCH_DIR}`, { cwd: WORK_DIR });
|
||||
await runCommand(`git clone -b gh-pages-deploy-fix ${REPO_URL} ${MASTER_BRANCH_DIR}`, { cwd: WORK_DIR });
|
||||
|
||||
log('Reading versions configuration');
|
||||
const config: Version[] = await import(DOCS_VERSIONS_PATH);
|
||||
|
|
@ -70,6 +70,7 @@ async function buildDocs(versions: Version[]) {
|
|||
}
|
||||
|
||||
async function prepareVersion(version: Version, distDir: string, ghspaScript: string) {
|
||||
console.log(version);
|
||||
const projectDir = join(WORK_DIR, `${version.name}`);
|
||||
|
||||
await copyToBuildDir(MASTER_BRANCH_DIR, projectDir);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue