Skip to content

Commit

Permalink
refactor: apply lerna
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Apr 24, 2022
1 parent 2bc3409 commit a06c1e2
Show file tree
Hide file tree
Showing 20 changed files with 7,887 additions and 3,105 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ rollup-plugin-visualizer/
statistics/
.scene_cache
*.mp4
lerna-debug.log
demo/storybook
demo/storybook2
dist/
15 changes: 15 additions & 0 deletions CHANGELOG-1.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

## [1.0.0] - 2022
* `moveable` 1.0.0
* `react-moveable` 1.0.0
* `preact-moveable` 1.0.0
* `ngx-moveable` 1.0.0
* `svelte-moveable` 1.0.0

### Added
* Support Original Transform
* Add `onBeforeRenderStart`, `onBeforeRender`, `onBeforeRenderEnd` events.
* Add `onBeforeRenderGroupStart`, `onBeforeRenderGroup`, `onBeforeRenderGroupEnd` events.
* Add `setTransform`, `setTransformIndex` event properties.
* Expand the functions of `translate` and `rotate` properties.

19 changes: 5 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [1.0.0] - 2021-??-??
* `moveable` 1.0.0
* `react-moveable` 1.0.0
* `preact-moveable` 1.0.0
* `ngx-moveable` 1.0.0
* `svelte-moveable` 1.0.0

### Added
* Support Original Transform
* Add `onBeforeRenderStart`, `onBeforeRender`, `onBeforeRenderEnd` events.
* Add `onBeforeRenderGroupStart`, `onBeforeRenderGroup`, `onBeforeRenderGroupEnd` events.
* Add `setTransform`, `setTransformIndex` event properties.
* Expand the functions of `translate` and `rotate` properties.


## [0.29.3] - 2022-04-19
* `moveable` 0.29.3
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ moveable.on("pinchStart", ({ target, clientX, clientY }) => {


## 📦 Packages
* [**moveable**](https://github.com/daybrush/moveable/blob/master/packages/moveable): A Vanilla Component that create Moveable, Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable.
* [**react-moveable**](https://github.com/daybrush/moveable/blob/master/packages/react-moveable): A React Component that create Moveable, Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable.
* [**preact-moveable**](https://github.com/daybrush/moveable/blob/master/packages/preact-moveable): A Preact Component that create Moveable, Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable.
* [**ngx-moveable**](https://github.com/daybrush/moveable/blob/master/packages/ngx-moveable): An Angular Component that create Moveable, Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable.
Expand All @@ -242,22 +243,22 @@ moveable.on("pinchStart", ({ target, clientX, clientY }) => {
* [**vue3-moveable**](https://github.com/daybrush/moveable/blob/master/packages/vue-moveable): A Vue 3 Component that create Moveable, Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable.

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

The main project was made with `react` and I used [`react-simple-compat`](https://github.com/daybrush/react-simple-compat) to make it lighter with umd.

For development and testing, check in [packages/react-moveable](https://github.com/daybrush/moveable/blob/master/packages/react-moveable).

### `npm run storybook`

```bash
$ cd packages/react-moveable
```
$ npm i
$ npm start
$ npm run bootstrap
$ npm run storybook
```


Runs the app in the development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
Open [http://localhost:6006](http://localhost:6006) to view it in the browser.

The page will reload if you make edits.<br>
You will also see any lint errors in the console.
Expand Down
2 changes: 1 addition & 1 deletion jsdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"source": {
"include": [
"README.md",
"packages/moveable/src/*",
"packages/moveable/src",
"packages/react-moveable/src/react-moveable/MoveableGroup.tsx",
"packages/react-moveable/src/react-moveable/ables",
"packages/react-moveable/src/react-moveable/MoveableManager.tsx",
Expand Down
31 changes: 31 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"packages": [
"packages/react-moveable",
"packages/react-compat-moveable",
"packages/moveable",
"packages/vue-moveable",
"packages/vue3-moveable",
"packages/svelte-moveable",
"packages/lit-moveable",
"packages/ngx-moveable",
"packages/storybook",
"packages/ngx-moveable/projects/ngx-moveable"
],
"version": "independent",
"command": {
"version": {
"push": false,
"commitHooks": false,
"private": false,
"gitTagVersion": false,
"preid": "beta"
}
},
"lernaHelperScripts": [
"npm run packages:dependencies",
"npm run packages:publish",
"npm run demo:build",
"npm run demo:deploy",
"npm run release"
]
}
Loading

0 comments on commit a06c1e2

Please sign in to comment.