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 29, 2022
1 parent 7800a9b commit 160ad4b
Show file tree
Hide file tree
Showing 86 changed files with 21,506 additions and 148,709 deletions.
1 change: 1 addition & 0 deletions .yarnrc
@@ -0,0 +1 @@
workspaces-experimental true
13 changes: 13 additions & 0 deletions config/update-type-consts.js
@@ -0,0 +1,13 @@
const path = require("path");
const { convertProperties } = require("@daybrush/release/angular");
const { PROPERTIES, EVENTS } = require("../packages/infinite-viewer/dist/infinite-viewer.cjs.js");

convertProperties(
{
ANGULAR_INFINITE_VIEWER_INPUTS: PROPERTIES,
ANGULAR_INFINITE_VIEWER_OUTPUTS: EVENTS,
},
[
path.resolve(__dirname, "../packages/ngx-infinite-viewer/projects/ngx-infinite-viewer/src/public-api.ts"),
],
);
2 changes: 1 addition & 1 deletion jsdoc.json
Expand Up @@ -7,7 +7,7 @@
"destination": "./doc/"
},
"source": {
"include": ["./src", "README.md", "node_modules/@scena/event-emitter/src/"],
"include": ["./packages/infinite-viewer/src", "README.md", "node_modules/@scena/event-emitter/src/"],
"includePattern": "(.+\\.js(doc|x)?|.+\\.ts(doc|x)?)$",
"excludePattern": "(^|\\/|\\\\)_"
},
Expand Down
32 changes: 32 additions & 0 deletions lerna.json
@@ -0,0 +1,32 @@
{
"npmClient": "yarn",
"useWorkspaces": true,
"packages": [
"packages/*",
"packages/ngx-infinite-viewer/projects/ngx-infinite-viewer"
],
"version": "independent",
"lernaHelperOptions": {
"deployFileMap": [
{
"basePath": "packages/infinite-viewer/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"
]
}
}

0 comments on commit 160ad4b

Please sign in to comment.