-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
alqmc
authored and
alqmc
committed
Oct 29, 2022
1 parent
fa44c70
commit 05c20ad
Showing
23 changed files
with
418 additions
and
1,344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
import { resolve } from 'path'; | ||
import { buildTypescriptLib } from '@alqmc/build-ts'; | ||
import { enterPath, outputPath, rootPath } from './utils/path'; | ||
import type { DefineLibConfig } from '@alqmc/build-ts'; | ||
|
||
const buildGacmConfig: DefineLibConfig = { | ||
baseOptions: { | ||
input: resolve(enterPath, 'gacm.ts'), | ||
outPutPath: outputPath, | ||
enterPath, | ||
pkgPath: resolve(enterPath, 'package.json'), | ||
tsConfigPath: resolve(rootPath, 'tsconfig.json'), | ||
preserveModules: false, | ||
extraOptions: { | ||
banner: '#!/usr/bin/env node', | ||
}, | ||
}, | ||
buildProduct: ['lib'], | ||
pureOutput: true, | ||
}; | ||
|
||
const buildGnrmConfig: DefineLibConfig = { | ||
baseOptions: { | ||
input: resolve(enterPath, 'gnrm.ts'), | ||
outPutPath: outputPath, | ||
enterPath, | ||
pkgPath: resolve(enterPath, 'package.json'), | ||
tsConfigPath: resolve(rootPath, 'tsconfig.json'), | ||
preserveModules: false, | ||
extraOptions: { | ||
banner: '#!/usr/bin/env node', | ||
}, | ||
}, | ||
buildProduct: ['lib'], | ||
pureOutput: true, | ||
}; | ||
|
||
export const buildBundle = async () => { | ||
await buildTypescriptLib(buildGacmConfig); | ||
await buildTypescriptLib(buildGnrmConfig); | ||
}; | ||
import { resolve } from 'path'; | ||
import { buildTypescriptLib } from '@alqmc/build-ts'; | ||
import { enterPath, outputPath, rootPath } from './utils/path'; | ||
import type { DefineLibConfig } from '@alqmc/build-ts'; | ||
|
||
const buildGacmConfig: DefineLibConfig = { | ||
baseOptions: { | ||
input: resolve(enterPath, 'gacm.ts'), | ||
outPutPath: outputPath, | ||
enterPath, | ||
pkgPath: resolve(enterPath, 'package.json'), | ||
tsConfigPath: resolve(rootPath, 'tsconfig.json'), | ||
preserveModules: false, | ||
extraOptions: { | ||
banner: '#!/usr/bin/env node', | ||
}, | ||
}, | ||
buildProduct: ['lib'], | ||
pureOutput: true, | ||
}; | ||
|
||
const buildGnrmConfig: DefineLibConfig = { | ||
baseOptions: { | ||
input: resolve(enterPath, 'gnrm.ts'), | ||
outPutPath: outputPath, | ||
enterPath, | ||
pkgPath: resolve(enterPath, 'package.json'), | ||
tsConfigPath: resolve(rootPath, 'tsconfig.json'), | ||
preserveModules: false, | ||
extraOptions: { | ||
banner: '#!/usr/bin/env node', | ||
}, | ||
}, | ||
buildProduct: ['lib'], | ||
pureOutput: true, | ||
}; | ||
|
||
export const buildBundle = async () => { | ||
await buildTypescriptLib(buildGacmConfig); | ||
await buildTypescriptLib(buildGnrmConfig); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { resolve } from 'path'; | ||
import { copyFile } from 'fs/promises'; | ||
import { copy } from 'fs-extra'; | ||
import { enterPath, outputPath, rootPath } from './utils/path'; | ||
export const copyFiles = async () => { | ||
Promise.all([ | ||
copyFile( | ||
resolve(enterPath, 'package.json'), | ||
resolve(outputPath, 'package.json') | ||
), | ||
copy(resolve(enterPath, 'assets'), resolve(outputPath, 'assets'), { | ||
recursive: true, | ||
}), | ||
copyFile(resolve(rootPath, 'README.md'), resolve(outputPath, 'README.md')), | ||
]); | ||
}; | ||
import { resolve } from 'path'; | ||
import { copyFile } from 'fs/promises'; | ||
import { copy } from 'fs-extra'; | ||
import { enterPath, outputPath, rootPath } from './utils/path'; | ||
export const copyFiles = async () => { | ||
Promise.all([ | ||
copyFile( | ||
resolve(enterPath, 'package.json'), | ||
resolve(outputPath, 'package.json') | ||
), | ||
copy(resolve(enterPath, 'assets'), resolve(outputPath, 'assets'), { | ||
recursive: true, | ||
}), | ||
copyFile(resolve(rootPath, 'README.md'), resolve(outputPath, 'README.md')), | ||
]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { series } from 'gulp'; | ||
import { run, withTask } from '@alqmc/build-utils'; | ||
import { copyFiles } from './copyfile'; | ||
import { buildBundle } from './build'; | ||
export default series( | ||
withTask('update:version', () => run('pnpm run update:version')), | ||
withTask('clear', () => run('pnpm run clear')), | ||
buildBundle, | ||
copyFiles, | ||
withTask('link', () => run('pnpm run link')) | ||
); | ||
import { series } from 'gulp'; | ||
import { run, withTask } from '@alqmc/build-utils'; | ||
import { copyFiles } from './copyfile'; | ||
import { buildBundle } from './build'; | ||
export default series( | ||
withTask('update:version', () => run('pnpm run update:version')), | ||
withTask('clear', () => run('pnpm run clear')), | ||
buildBundle, | ||
copyFiles, | ||
withTask('link', () => run('pnpm run link')) | ||
); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.