Skip to content

Commit

Permalink
feat: new logo
Browse files Browse the repository at this point in the history
  • Loading branch information
alqmc authored and alqmc committed Oct 29, 2022
1 parent fa44c70 commit 05c20ad
Show file tree
Hide file tree
Showing 23 changed files with 418 additions and 1,344 deletions.
4 changes: 2 additions & 2 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img width="300px" src="./package/assets/git.svg">
<img width="300px" src="./package/assets/icon.png">
</p>

<p align="center">
Expand All @@ -24,7 +24,7 @@

### Features

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

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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img width="300px" src="./package/assets/git.svg">
<img width="100px" src="./package/assets/icon.png">
</p>

<p align="center">
Expand Down
82 changes: 41 additions & 41 deletions build/build.ts
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);
};
32 changes: 16 additions & 16 deletions build/copyfile.ts
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')),
]);
};
22 changes: 11 additions & 11 deletions build/gulpfile.ts
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'))
);
107 changes: 0 additions & 107 deletions dist/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions dist/assets/git.svg

This file was deleted.

Loading

0 comments on commit 05c20ad

Please sign in to comment.