Skip to content

Commit

Permalink
chore: apply lerna
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Sep 21, 2022
1 parent 94a1b48 commit 63f4f1f
Show file tree
Hide file tree
Showing 82 changed files with 114,314 additions and 102,261 deletions.
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
workspaces-experimental true
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ The default unit is px, and a line is drawn every 50px. If you want to use a dif

See: https://www.w3schools.com/cssref/css_units.asp


## ⚙️ Developments
### `npm run demo:start`
The `guides` repo is managed as a [monorepo](https://github.com/lerna/lerna) with `yarn`.

Runs the app in the development mode.<br>
Open `demo/index.html` file.
```sh
yarn config set registry https://registry.npmjs.org/
```


## ⭐️ Show Your Support
Expand Down
13 changes: 13 additions & 0 deletions config/update-type-consts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const path = require("path");
const { convertProperties } = require("@daybrush/release/angular");
const { PROPERTIES, EVENTS } = require("../packages/react-guides/dist/guides.cjs.js");

convertProperties(
{
ANGULAR_GUIDES_INPUTS: PROPERTIES,
ANGULAR_GUIDES_OUTPUTS: EVENTS,
},
[
path.resolve(__dirname, "../packages/ngx-guides/projects/ngx-guides/src/public-api.ts"),
],
);
4 changes: 2 additions & 2 deletions jsdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
},
"source": {
"include": [
"./src",
"packages/guides/src",
"README.md",
"packages/react-guides/src/react-guides",
"node_modules/@scena/event-emitter/src",
"packages/react-guides/node_modules/@scena/react-ruler/src/react-ruler"
"node_modules/@scena/react-ruler/src/react-ruler"
],
"includePattern": "(.+\\.js(doc|x)?|.+\\.ts(doc|x)?)$",
"excludePattern": "(^|\\/|\\\\)_"
Expand Down
32 changes: 32 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"npmClient": "yarn",
"useWorkspaces": true,
"packages": [
"packages/*",
"packages/ngx-guides/projects/ngx-guides"
],
"version": "independent",
"lernaHelperOptions": {
"deployFileMap": [
{
"basePath": "packages/guides/dist",
"dists": [
"demo/release/{{version}}/dist",
"demo/release/latest/dist"
]
},
{
"basePath": "doc",
"dists": [
"demo/release/{{version}}/doc",
"demo/release/latest/doc"
]
}
],
"beforeReleaseScripts": [
"npm run packages:build",
"npm run doc",
"npm run deploy"
]
}
}
Loading

0 comments on commit 63f4f1f

Please sign in to comment.