Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyaoMa committed Sep 19, 2022
1 parent cdbef0f commit 9a0b41c
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ $ pnpm design:build # build frontend/packages/design
$ pnpm ... # install/preinstall scripts trigger during project setup
```

## Project Structure
## Directory Structure

```bash
.
Expand All @@ -71,7 +71,7 @@ $ pnpm ... # install/preinstall scripts trigger during project setup
│ │ ├── env.go # load os environment variable
│ │ ├── logger.go # setup loggers
│ ├── model # model module, data layer
│ │ ├── model # database setup
│ │ ├── model.go # database setup
│ │ └── my_option.go # define application options for app config storage
│ ├── pkg # pkg module, cross cutting
│ │ ├── i18n # manage locale/translation strings for backend
Expand Down
1 change: 1 addition & 0 deletions frontend/packages/components/Icon/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { App } from "vue";
import "@jinyaoma/my-app-icons";
import Icon from "./icon.vue";

Icon.install = (app: App) => {
Expand Down
4 changes: 4 additions & 0 deletions frontend/packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"name": "@jinyaoma/my-app-components",
"version": "0.1.0",
"type": "module",
"main": "index.ts",
"peerDependencies": {
"vue": "^3.2.37"
},
"dependencies": {
"@jinyaoma/my-app-icons": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion frontend/packages/design/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { App, Plugin } from "vue";
import { MyHelloWorld, MyIcon } from "../components";
import { MyHelloWorld, MyIcon } from "@jinyaoma/my-app-components";

const components = [MyHelloWorld, MyIcon];

Expand Down
1 change: 1 addition & 0 deletions frontend/packages/design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"vue": "^3.2.37"
},
"devDependencies": {
"@jinyaoma/my-app-components": "workspace:*",
"@vitejs/plugin-vue": "^3.1.0",
"sass": "^1.54.9",
"typescript": "^4.6.4",
Expand Down
4 changes: 2 additions & 2 deletions frontend/packages/design/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
],
"skipLibCheck": true,
},
"exclude": [
"node_modules"
"include": [
"*.ts"
],
"references": [
{
Expand Down
1 change: 1 addition & 0 deletions frontend/packages/icons/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "./dist/my-icon.css";
6 changes: 6 additions & 0 deletions frontend/packages/icons/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"name": "@jinyaoma/my-app-icons",
"version": "0.1.0",
"main": "index.js",
"module": "index.js",
"exports": {
".": {
"import": "./index.js",
"require": "./index.js"
},
"./dist/my-icon.css": {
"import": "./dist/my-icon.css",
"require": "./dist/my-icon.css"
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@
"bugs": {
"url": "https://github.com/jinyaoMa/my-app/issues"
},
"homepage": "https://github.com/jinyaoMa/my-app#readme"
"homepage": "https://github.com/jinyaoMa/my-app#readme",
"dependencies": {
"@jinyaoma/my-app-components": "workspace:^0.1.0"
}
}
20 changes: 17 additions & 3 deletions pnpm-lock.yaml

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

0 comments on commit 9a0b41c

Please sign in to comment.