Skip to content

Commit 05c20ad

Browse files
alqmcalqmc
authored andcommitted
feat: new logo
1 parent fa44c70 commit 05c20ad

File tree

23 files changed

+418
-1344
lines changed

23 files changed

+418
-1344
lines changed

README-zh_CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img width="300px" src="./package/assets/git.svg">
2+
<img width="300px" src="./package/assets/icon.png">
33
</p>
44

55
<p align="center">
@@ -24,7 +24,7 @@
2424

2525
### Features
2626

27-
- ✨ git账户与npm registry管理工具( 无缝切换
27+
- ✨ git账户与npm registry管理工具(无缝切换
2828

2929
- 🚀 极简的操作方式,just like nvm
3030

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img width="300px" src="./package/assets/git.svg">
2+
<img width="100px" src="./package/assets/icon.png">
33
</p>
44

55
<p align="center">

build/build.ts

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
import { resolve } from 'path';
2-
import { buildTypescriptLib } from '@alqmc/build-ts';
3-
import { enterPath, outputPath, rootPath } from './utils/path';
4-
import type { DefineLibConfig } from '@alqmc/build-ts';
5-
6-
const buildGacmConfig: DefineLibConfig = {
7-
baseOptions: {
8-
input: resolve(enterPath, 'gacm.ts'),
9-
outPutPath: outputPath,
10-
enterPath,
11-
pkgPath: resolve(enterPath, 'package.json'),
12-
tsConfigPath: resolve(rootPath, 'tsconfig.json'),
13-
preserveModules: false,
14-
extraOptions: {
15-
banner: '#!/usr/bin/env node',
16-
},
17-
},
18-
buildProduct: ['lib'],
19-
pureOutput: true,
20-
};
21-
22-
const buildGnrmConfig: DefineLibConfig = {
23-
baseOptions: {
24-
input: resolve(enterPath, 'gnrm.ts'),
25-
outPutPath: outputPath,
26-
enterPath,
27-
pkgPath: resolve(enterPath, 'package.json'),
28-
tsConfigPath: resolve(rootPath, 'tsconfig.json'),
29-
preserveModules: false,
30-
extraOptions: {
31-
banner: '#!/usr/bin/env node',
32-
},
33-
},
34-
buildProduct: ['lib'],
35-
pureOutput: true,
36-
};
37-
38-
export const buildBundle = async () => {
39-
await buildTypescriptLib(buildGacmConfig);
40-
await buildTypescriptLib(buildGnrmConfig);
41-
};
1+
import { resolve } from 'path';
2+
import { buildTypescriptLib } from '@alqmc/build-ts';
3+
import { enterPath, outputPath, rootPath } from './utils/path';
4+
import type { DefineLibConfig } from '@alqmc/build-ts';
5+
6+
const buildGacmConfig: DefineLibConfig = {
7+
baseOptions: {
8+
input: resolve(enterPath, 'gacm.ts'),
9+
outPutPath: outputPath,
10+
enterPath,
11+
pkgPath: resolve(enterPath, 'package.json'),
12+
tsConfigPath: resolve(rootPath, 'tsconfig.json'),
13+
preserveModules: false,
14+
extraOptions: {
15+
banner: '#!/usr/bin/env node',
16+
},
17+
},
18+
buildProduct: ['lib'],
19+
pureOutput: true,
20+
};
21+
22+
const buildGnrmConfig: DefineLibConfig = {
23+
baseOptions: {
24+
input: resolve(enterPath, 'gnrm.ts'),
25+
outPutPath: outputPath,
26+
enterPath,
27+
pkgPath: resolve(enterPath, 'package.json'),
28+
tsConfigPath: resolve(rootPath, 'tsconfig.json'),
29+
preserveModules: false,
30+
extraOptions: {
31+
banner: '#!/usr/bin/env node',
32+
},
33+
},
34+
buildProduct: ['lib'],
35+
pureOutput: true,
36+
};
37+
38+
export const buildBundle = async () => {
39+
await buildTypescriptLib(buildGacmConfig);
40+
await buildTypescriptLib(buildGnrmConfig);
41+
};

build/copyfile.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { resolve } from 'path';
2-
import { copyFile } from 'fs/promises';
3-
import { copy } from 'fs-extra';
4-
import { enterPath, outputPath, rootPath } from './utils/path';
5-
export const copyFiles = async () => {
6-
Promise.all([
7-
copyFile(
8-
resolve(enterPath, 'package.json'),
9-
resolve(outputPath, 'package.json')
10-
),
11-
copy(resolve(enterPath, 'assets'), resolve(outputPath, 'assets'), {
12-
recursive: true,
13-
}),
14-
copyFile(resolve(rootPath, 'README.md'), resolve(outputPath, 'README.md')),
15-
]);
16-
};
1+
import { resolve } from 'path';
2+
import { copyFile } from 'fs/promises';
3+
import { copy } from 'fs-extra';
4+
import { enterPath, outputPath, rootPath } from './utils/path';
5+
export const copyFiles = async () => {
6+
Promise.all([
7+
copyFile(
8+
resolve(enterPath, 'package.json'),
9+
resolve(outputPath, 'package.json')
10+
),
11+
copy(resolve(enterPath, 'assets'), resolve(outputPath, 'assets'), {
12+
recursive: true,
13+
}),
14+
copyFile(resolve(rootPath, 'README.md'), resolve(outputPath, 'README.md')),
15+
]);
16+
};

build/gulpfile.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { series } from 'gulp';
2-
import { run, withTask } from '@alqmc/build-utils';
3-
import { copyFiles } from './copyfile';
4-
import { buildBundle } from './build';
5-
export default series(
6-
withTask('update:version', () => run('pnpm run update:version')),
7-
withTask('clear', () => run('pnpm run clear')),
8-
buildBundle,
9-
copyFiles,
10-
withTask('link', () => run('pnpm run link'))
11-
);
1+
import { series } from 'gulp';
2+
import { run, withTask } from '@alqmc/build-utils';
3+
import { copyFiles } from './copyfile';
4+
import { buildBundle } from './build';
5+
export default series(
6+
withTask('update:version', () => run('pnpm run update:version')),
7+
withTask('clear', () => run('pnpm run clear')),
8+
buildBundle,
9+
copyFiles,
10+
withTask('link', () => run('pnpm run link'))
11+
);

dist/README.md

Lines changed: 0 additions & 107 deletions
This file was deleted.

dist/assets/git.svg

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)