Skip to content

Commit

Permalink
💚 npmigonre and hoist layers #35
Browse files Browse the repository at this point in the history
  • Loading branch information
trydofor committed Sep 29, 2024
1 parent 5d3938a commit a0a47db
Show file tree
Hide file tree
Showing 10 changed files with 285 additions and 262 deletions.
3 changes: 1 addition & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"commit": false,
"fixed": [
[
"@fessional/razor-common",
"@fessional/razor-mobile"
"@fessional/*"
]
],
"linked": [],
Expand Down
6 changes: 6 additions & 0 deletions .changeset/proud-toys-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@fessional/razor-common": patch
"@fessional/razor-mobile": patch
---

npmigonre and hoist-layer
7 changes: 7 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## https://docs.npmjs.com/cli/v9/using-npm/developers#keeping-files-out-of-your-package
.nuxt/
.output/
dist/
test/
node_modules/
.eslintcache
238 changes: 120 additions & 118 deletions layers/common/pnpm-lock.yaml

Large diffs are not rendered by default.

242 changes: 122 additions & 120 deletions layers/mobile/pnpm-lock.yaml

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@fessional/razor",
"type": "module",
"version": "0.1.0",
"version": "0.1.7",
"description": "Use front-end tech (Nuxt/Ts) to build multi-platform from one codebase, suitable for small team and app to write app once, apply almost anywhere.",
"packageManager": "[email protected]",
"engines": {
Expand All @@ -10,11 +10,12 @@
},
"scripts": {
"deps": "taze -r",
"feat": "changeset",
"revi": "changeset",
"bump": "changeset version",
"pubs": "changeset publish",
"rmall": "rimraf -g '**/pnpm-lock.yaml' '**/node_modules/'",
"rmall": "rimraf -g '**/node_modules/' '**/pnpm-lock.yaml'",
"rmdep": "rimraf -g '**/node_modules/'",
"rmgen": "rimraf -g '**/.nuxt/' '**/.output/' '**/dist/'",
"tests": "pnpm -r exec vitest --no-watch"
},
"devDependencies": {
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
## https://github.com/nuxt/nuxt/blob/v3.13.2/package.json
catalogs:
devops:
"pnpm-hoist-layer": "1.1.3"
"pnpm-hoist-layer": "1.1.5"
"@changesets/cli": "2.27.8"
"taze": "0.16.9"
"rimraf": "6.0.1"
Expand Down
15 changes: 9 additions & 6 deletions readme-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,24 @@
## 3.自己动手

```bash
###### 有 CI
## ✅ for CI
## 安装 pnpm-hoist-layer 到 devDeps
pnpm -w i --no-frozen-lockfile --ignore-pnpmfile
## 重置 ci 锁文件
git restore .
git restore pnpm-lock.yaml
## 根据锁文件,安装依赖
pnpm -r i --frozen-lockfile
##### 无 CI

## 💚 for Dev
pnpm -w i --ignore-pnpmfile
pnpm -r i
#####
## 测试

## 🧪 测试
pnpm tests
## 删除 .nuxt, .output, dist
pnpm rmgen
## 删除 node_modules
pnpm rmdep
## 删除 node_modules and pnpm-lock.yaml
## 删除 node_modules, pnpm-lock.yaml
pnpm rmall
```
15 changes: 9 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,24 @@ According to the official Vue naming rules, most things are plural,
## 3.DoIt Yourself

```bash
###### for CI
## for CI
## install pnpm-hoist-layer to devDep
pnpm -w i --no-frozen-lockfile --ignore-pnpmfile
## reset the ci lockfile
git restore .
git restore pnpm-lock.yaml
## install all deps by lockfile
pnpm -r i --frozen-lockfile
##### non CI

## 💚 for Dev
pnpm -w i --ignore-pnpmfile
pnpm -r i
#####
## testing

## 🧪 testing
pnpm tests
## rm .nuxt, .output, dist
pnpm rmgen
## rm node_modules
pnpm rmdep
## rm node_modules and pnpm-lock.yaml
## rm node_modules, pnpm-lock.yaml
pnpm rmall
```

0 comments on commit a0a47db

Please sign in to comment.