mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-12 19:53:41 +08:00
build(projects): update deps
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
#!/usr/bin/env zx
|
||||
import { $ } from 'zx';
|
||||
|
||||
$`pnpm rimraf node_modules dist pnpm-lock.yaml`;
|
||||
@@ -1,21 +0,0 @@
|
||||
import { createWriteStream } from 'fs';
|
||||
import { zip } from 'compressing';
|
||||
|
||||
/**
|
||||
* 压缩目录或者文件
|
||||
* @param paths 目录或者文件的路径
|
||||
* @param destinationName 压缩产物的名称
|
||||
*/
|
||||
function zipDirsOrFile(paths: string[], destinationName = 'dist.zip') {
|
||||
const stream = new zip.Stream();
|
||||
|
||||
paths.forEach(path => {
|
||||
stream.addEntry(path);
|
||||
});
|
||||
|
||||
const destination = createWriteStream(destinationName);
|
||||
|
||||
stream.pipe(destination);
|
||||
}
|
||||
|
||||
zipDirsOrFile(['dist']);
|
||||
@@ -1,6 +0,0 @@
|
||||
import { $ } from 'zx';
|
||||
|
||||
$`rm -rf .husky`;
|
||||
$`git config core.hooksPath .git/hooks/`;
|
||||
$`rm -rf .git/hooks`;
|
||||
$`pnpm simple-git-hooks`;
|
||||
Reference in New Issue
Block a user