Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lmj01 committed Jun 14, 2024
1 parent 4210e81 commit 9b5d700
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
18 changes: 18 additions & 0 deletions dev-note/buildSystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,21 @@
> a fast, scalable, multi-language and extensible build system.
[github代码](https://github.com/bazelbuild/bazel)

## [VisualStudio]()

[devenv](https://learn.microsoft.com/zh-cn/visualstudio/ide/reference/devenv-command-line-switches?view=vs-2019)
[使用生成项目时,建议使用MSBuild](https://learn.microsoft.com/zh-cn/visualstudio/msbuild/msbuild-command-line-reference?view=vs-2019)

```shell
# *.vcproj vs2008之前
# *.vcxproj vs2010之后
# *.sln 包含多个项目以及依赖关系
msbuild name.vcxproj
# -p 编译参数 -t 编译目标
# /p:configuration=debug/release
# /p:platform=x64/x32
# /p:PreferredToolArchitecture=x64 // 使用64位编译工具
# /t:rebuild
# /t:clean
```
9 changes: 9 additions & 0 deletions dev-note/cmake.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

## 详解

- 目标Target
- 属性Properties
- private私有属性在内部使用
- interface接口属性由外部使用

CMake缓存变量
- Normal Variable,普通变量,相当于一个局部变量。在同一个CMake工程中使用,会有作用域限制或区分。
- Cache Variable,缓存变量,相当于一个全局变量。在同一个CMake工程中任何地方都可以使用

### aux_source_directory
查找某个路径下的所有资源文件

Expand Down
2 changes: 2 additions & 0 deletions dev-note/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ git init
git remote add origin [email protected]:Username/Repositories_Name.git # 现在这样仓库就处理好了。
```

## [hook](https://git-scm.com/docs/githooks)

# Subversion


Expand Down
15 changes: 15 additions & 0 deletions web/pkg.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
```js
node --watch index.js // v18.15.0后增加的,可以不用每次都输入,直接关联某个文件的变化
node --harmony script.js --version --help --harmony 传递给node参数的修饰
node -p // node REPL 交互环境
```

## 包管理
Expand Down Expand Up @@ -46,6 +47,13 @@ npm config get cache // 缓存路径
npm cache clean --force
npm config list
```
#### 2024-6-7
```json
"script":{
"dev": "cross-env VITE_APP_VERSION=$(node -p \"require('./package.json').version\") vite --mode localdev",
}
```
在sprintRay的一个AICAD中,通过这样来获取环境变量,其实

### [pnpm](https://pnpm.io/)

Expand All @@ -70,6 +78,7 @@ pnpm config set store-dir e:\dev-data\.pnpm-store\v3 --global // 设置存储目
```shell
yarn install
yarn install --registry https://registry.npm.taobao.org
yarn install --force // 强制按照
// 清除缓存
yarn cache dir // 查看路径
yarn cache clean // 清理
Expand Down Expand Up @@ -103,6 +112,12 @@ Vue-cli3开始把webpack.config.js隐藏在node_modules/@vue/cli-service/webpack
Parcel is a zero configuration build tool for the web
Parcel默认把所有文件打包进js包中,不存在单独的静态文件目录,需要借助插件来完成[parcel-reporter-static-files-copy](https://www.npmjs.com/package/parcel-reporter-static-files-copy)

### [Lerna](https://lerna.js.org/)

Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.

[github](https://github.com/lerna/lerna)

## 相关库

### [nvm-windows](https://github.com/coreybutler/nvm-windows/releases)
Expand Down

0 comments on commit 9b5d700

Please sign in to comment.