Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit caf2623

Browse files
committed
updated package.jsons
1 parent ba9ecf2 commit caf2623

File tree

21 files changed

+237
-39
lines changed

21 files changed

+237
-39
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ Don't take this personally if this happens, and feel free to open a new issue on
7575
## ⏳ Installation
7676

7777
1. Ensure you have [Yarn](https://yarnpkg.com/) installed
78-
2. After cloning the repository, run `yarn run install-packages` in the root of the repository,
78+
2. After cloning the repository, run `yarn run install:agile` in the root of the repository,
7979
which simply runs `yarn install` in each package to ensure all dependencies are installed.
8080

8181
### Run Example Project's
8282

8383
1. Follow the [Installation](#Installation) steps above
8484
2. Ensure you have [Yalc](https://www.google.com/search?client=firefox-b-d&q=yalc) installed
85-
3. Run `yarn run dev-publish` to publish all packages in your local 'npm store'
85+
3. Run `yarn run dev:publish` to publish all packages in your local 'npm store'
8686
4. Execute `yarn install` in the Example Project to install its dependencies like AgileTs
87-
5. If you made your desired changes. Run `yarn run dev-push` to push your updated changes into your local 'npm store' <br />
88-
_ProTip:_ To make realtime changes, run `yarn run watch`, which automatically runs `yarn run dev-push` everytime you update a file in a package.
87+
5. If you made your desired changes. Run `yarn run dev:push` to push your updated changes into your local 'npm store' <br />
88+
_ProTip:_ To make realtime changes, run `yarn run watch`, which automatically runs `yarn run dev:push` everytime you update a file in a package.
8989

9090

9191
## ☄️ Pull Request

examples/react-native/AwesomeTSProject/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ This Example represents the basic features of the `core` package in a **function
1414
#### 1. Run `npm install` at the root of Agile
1515
At first, we have to install some 'global' dependencies of AgileTs.
1616

17-
#### 2. Run `npm run install-all` at the root of Agile
17+
#### 2. Run `npm run install:agile` at the root of Agile
1818
Then we install the dependencies of all AgileTs Packages (core, react, api, ..)
1919

20-
#### 3. Run `npm run dev-publish` at the root of Agile
20+
#### 3. Run `npm run dev:publish` at the root of Agile
2121
As next step we `publish` all AgileTs Packages to our local `yalc` repository,
2222
to import them later in our examples.
2323

24-
#### 4. Run `npm run install-agile` in this Project
24+
#### 4. Run `npm run install:agile` in this Project
2525
To run the example we have to install the dependencies of it, too.
2626
We aren't using `npm install`, because we want to add the just published AgileTs Packages properly.
2727

28-
#### 5. Run `npm run dev-push` at the root of Agile
28+
#### 5. Run `npm run dev:push` at the root of Agile
2929
After 'publishing' the AgileTs Packages and installing the dependencies of the example, we can push our changes,
3030
which we might have made for instance in the core package, to yalc by running this command.
3131
All projects having a dependency of the pushed package will receive the changes immediately.

examples/react-native/AwesomeTSProject/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"start": "react-native start",
99
"test": "jest",
1010
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
11-
"install-agile": "yalc add @agile-ts/core @agile-ts/react @agile-ts/api & yarn install"
11+
"install:agile": "yalc add @agile-ts/core @agile-ts/react @agile-ts/api & yarn install"
1212
},
1313
"dependencies": {
1414
"@agile-ts/api": "file:.yalc/@agile-ts/api",

examples/react/class-component-ts/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ This Example represents the basic features of the `core` package in a **class co
1414
#### 1. Run `npm install` at the root of Agile
1515
At first, we have to install some 'global' dependencies of AgileTs.
1616

17-
#### 2. Run `npm run install-all` at the root of Agile
17+
#### 2. Run `npm run install:agile` at the root of Agile
1818
Then we install the dependencies of all AgileTs Packages (core, react, api, ..)
1919

20-
#### 3. Run `npm run dev-publish` at the root of Agile
20+
#### 3. Run `npm run dev:publish` at the root of Agile
2121
As next step we `publish` all AgileTs Packages to our local `yalc` repository,
2222
to import them later in our examples.
2323

24-
#### 4. Run `npm run install-agile` in this Project
24+
#### 4. Run `npm run install:agile` in this Project
2525
To run the example we have to install the dependencies of it, too.
2626
We aren't using `npm install`, because we want to add the just published AgileTs Packages properly.
2727

28-
#### 5. Run `npm run dev-push` at the root of Agile
28+
#### 5. Run `npm run dev:push` at the root of Agile
2929
After 'publishing' the AgileTs Packages and installing the dependencies of the example, we can push our changes,
3030
which we might have made for instance in the core package, to yalc by running this command.
3131
All projects having a dependency of the pushed package will receive the changes immediately.

examples/react/class-component-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"build": "react-scripts build",
2929
"test": "react-scripts test",
3030
"eject": "react-scripts eject",
31-
"install-agile": "yalc add @agile-ts/core @agile-ts/react @agile-ts/api @agile-ts/multieditor & yarn install"
31+
"install:agile": "yalc add @agile-ts/core @agile-ts/react @agile-ts/api @agile-ts/multieditor @agile-ts/event & yarn install"
3232
},
3333
"eslintConfig": {
3434
"extends": "react-app"

examples/react/functional-component-ts/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ This Example represents the basic features of the `core` package in a **function
1414
#### 1. Run `npm install` at the root of Agile
1515
At first, we have to install some 'global' dependencies of AgileTs.
1616

17-
#### 2. Run `npm run install-all` at the root of Agile
17+
#### 2. Run `npm run install:agile` at the root of Agile
1818
Then we install the dependencies of all AgileTs Packages (core, react, api, ..)
1919

20-
#### 3. Run `npm run dev-publish` at the root of Agile
20+
#### 3. Run `npm run dev:publish` at the root of Agile
2121
As next step we `publish` all AgileTs Packages to our local `yalc` repository,
2222
to import them later in our examples.
2323

24-
#### 4. Run `npm run install-agile` in this Project
24+
#### 4. Run `npm run install:agile` in this Project
2525
To run the example we have to install the dependencies of it, too.
2626
We aren't using `npm install`, because we want to add the just published AgileTs Packages properly.
2727

28-
#### 5. Run `npm run dev-push` at the root of Agile
28+
#### 5. Run `npm run dev:push` at the root of Agile
2929
After 'publishing' the AgileTs Packages and installing the dependencies of the example, we can push our changes,
3030
which we might have made for instance in the core package, to yalc by running this command.
3131
All projects having a dependency of the pushed package will receive the changes immediately.

examples/react/functional-component-ts/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"@agile-ts/core": "file:.yalc/@agile-ts/core",
88
"@agile-ts/multieditor": "file:.yalc/@agile-ts/multieditor",
99
"@agile-ts/react": "file:.yalc/@agile-ts/react",
10+
"@agile-ts/event": "file:.yalc/@agile-ts/event",
1011
"react": "^16.13.1",
1112
"react-dom": "^16.13.1",
1213
"react-router-dom": "^5.2.0",
@@ -28,7 +29,7 @@
2829
"build": "react-scripts build",
2930
"test": "react-scripts test",
3031
"eject": "react-scripts eject",
31-
"install-agile": "yalc add @agile-ts/core @agile-ts/react @agile-ts/api @agile-ts/multieditor & yarn install"
32+
"install:agile": "yalc add @agile-ts/core @agile-ts/react @agile-ts/api @agile-ts/multieditor @agile-ts/event & yarn install"
3233
},
3334
"eslintConfig": {
3435
"extends": "react-app"

examples/react/multieditor-ts/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ This Example represents the basic features of the `multieditor` package in a **f
1414
#### 1. Run `npm install` at the root of Agile
1515
At first, we have to install some 'global' dependencies of AgileTs.
1616

17-
#### 2. Run `npm run install-all` at the root of Agile
17+
#### 2. Run `npm run install:agile` at the root of Agile
1818
Then we install the dependencies of all AgileTs Packages (core, react, api, ..)
1919

20-
#### 3. Run `npm run dev-publish` at the root of Agile
20+
#### 3. Run `npm run dev:publish` at the root of Agile
2121
As next step we `publish` all AgileTs Packages to our local `yalc` repository,
2222
to import them later in our examples.
2323

24-
#### 4. Run `npm run install-agile` in this Project
24+
#### 4. Run `npm run install:agile` in this Project
2525
To run the example we have to install the dependencies of it, too.
2626
We aren't using `npm install`, because we want to add the just published AgileTs Packages properly.
2727

28-
#### 5. Run `npm run dev-push` at the root of Agile
28+
#### 5. Run `npm run dev:push` at the root of Agile
2929
After 'publishing' the AgileTs Packages and installing the dependencies of the example, we can push our changes,
3030
which we might have made for instance in the core package, to yalc by running this command.
3131
All projects having a dependency of the pushed package will receive the changes immediately.

examples/react/multieditor-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"build": "react-scripts build",
2727
"test": "react-scripts test",
2828
"eject": "react-scripts eject",
29-
"install-agile": "yalc add @agile-ts/core @agile-ts/react @agile-ts/multieditor & yarn install"
29+
"install:agile": "yalc add @agile-ts/core @agile-ts/react @agile-ts/multieditor & yarn install"
3030
},
3131
"eslintConfig": {
3232
"extends": [

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
"watch:api": "cd packages/core && yarn run watch",
2424
"test": "jest --passWithNoTests",
2525
"test:coverage": "jest --coverage",
26-
"dev-publish": "lerna run build && lerna run dev-publish",
27-
"dev-push": "lerna run build && lerna run dev-push",
26+
"dev:publish": "lerna run build && lerna run dev:publish",
27+
"dev:push": "lerna run build && lerna run dev:push",
2828
"install:packages": "lerna exec yarn install",
29-
"bump-version": "changeset",
29+
"version:bump": "changeset",
3030
"release": "lerna run release && changeset publish",
3131
"prettier": "prettier --config .prettierrc --write \"**/*.{js,ts}\"",
3232
"lint": "eslint --cache \"**/*.{js,jsx,ts,tsx}\"",

packages/api/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"scripts": {
1818
"build": "tsc",
1919
"prepare": "tsc && tsc -p ./tsconfig.production.json",
20-
"dev-publish": "yalc publish",
21-
"dev-push": "yalc push",
22-
"watch": "tsc-watch --onSuccess \"yarn run dev-push\"",
20+
"dev:publish": "yalc publish",
21+
"dev:push": "yalc push",
22+
"watch": "tsc-watch --onSuccess \"yarn run dev:push\"",
2323
"release": "yarn run prepare",
2424
"preview": "npm pack"
2525
},

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"scripts": {
1919
"build": "tsc",
2020
"prepare": "tsc && tsc -p ./tsconfig.production.json",
21-
"dev-publish": "yalc publish",
22-
"dev-push": "yalc push",
23-
"watch": "tsc-watch --onSuccess \"yarn run dev-push\"",
21+
"dev:publish": "yalc publish",
22+
"dev:push": "yalc push",
23+
"watch": "tsc-watch --onSuccess \"yarn run dev:push\"",
2424
"release": "node ./scripts/prepublish.js && yarn run prepare",
2525
"preview": "npm pack"
2626
},

packages/event/CHANGELOG.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Change Log
2+
3+
## 0.0.13
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [9071dd6]
8+
- @agile-ts/core@0.0.12
9+
10+
## 0.0.12
11+
12+
### Patch Changes
13+
14+
- e0366b3: fixed building url without path
15+
16+
## 0.0.11
17+
18+
### Patch Changes
19+
20+
- Updated dependencies [93ead02]
21+
- @agile-ts/core@0.0.11
22+
23+
## 0.0.10
24+
25+
### Patch Changes
26+
27+
- Updated dependencies [9a09652]
28+
- @agile-ts/core@0.0.10
29+
30+
## 0.0.9
31+
32+
### Patch Changes
33+
34+
- Updated dependencies [c3a8217]
35+
- @agile-ts/core@0.0.9
36+
37+
## 0.0.8
38+
39+
### Patch Changes
40+
41+
- 198c212: added prettier and eslint and fixed some small issues
42+
- Updated dependencies [198c212]
43+
- @agile-ts/core@0.0.8
44+
45+
## 0.0.7
46+
47+
### Patch Changes
48+
49+
- 7f89382: Updated ReadMe's
50+
- Updated dependencies [7f89382]
51+
- @agile-ts/core@0.0.7
52+
53+
## 0.0.6
54+
55+
### Patch Changes
56+
57+
- 86e6890: Updated Tests in Core | Fixed some Bugs
58+
- Updated dependencies [86e6890]
59+
- @agile-ts/core@0.0.6
60+
61+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
62+
63+
## [0.0.5](https://github.com/agile-ts/agile/compare/v0.0.4...v0.0.5) (2020-11-05)
64+
65+
**Note:** Version bump only for package @agile-ts/api
66+
67+
## 0.0.4 (2020-11-03)
68+
69+
**Note:** Version bump only for package @agile-ts/api

packages/event/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020-present bennodev19
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/event/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# [WIP] Event
2+
3+
> Handy class for emitting UI updates and passing data with them.
4+
5+
<a href="https://npm.im/@agile-ts/api">
6+
<img src="https://img.shields.io/npm/v/@agile-ts/event.svg" alt="npm version"/></a>
7+
<a href="https://github.com/agile-ts/agile">
8+
<img src="https://img.shields.io/github/license/agile-ts/agile.svg" alt="GitHub License"/></a>
9+
<a href="https://npm.im/@agile-ts/api">
10+
<img src="https://img.shields.io/npm/dm/@agile-ts/event.svg" alt="npm monthly downloads"/></a>
11+
<a href="https://npm.im/@agile-ts/api">
12+
<img src="https://img.shields.io/npm/dt/@agile-ts/event.svg" alt="npm total downloads"/></a>
13+
<a href="https://npm.im/@agile-ts/api">
14+
<img src="https://img.shields.io/bundlephobia/min/@agile-ts/event.svg" alt="npm minified size"/></a>
15+
16+
## ⏰ Short Example
17+
```ts
18+
const MY_EVENT = App.createEvent();
19+
MY_EVENT.on((data) => {console.log("hello there " + data.name)}); // Print 'hello there jeff' if Event gets triggered
20+
MY_EVENT.trigger({name: "jeff"}); // Trigger Event
21+
```
22+
23+
## ⬇️ Installation
24+
```
25+
npm install @agile-ts/event
26+
```
27+
_Be aware that this is no standalone package!_ <br />
28+
To use the Agile Api you have to install the [Agile Core](https://www.npmjs.com/package/@agile-ts/core). <br />
29+
To find out more take a look into the [docs](https://www.agile-ts.org/docs).
30+
31+
32+
## 🔑 Fitting Versions
33+
| @agile-ts/api | @agile-ts/core | NPM Version |
34+
| --------------- | ----------------------- | ------------------------ |
35+
| v0.0.7 | v0.0.1+ | v6+ |
36+
| v0.0.6 | v0.0.1+ | v6+ |
37+
_Other Versions aren't supported anymore_
38+
39+
## 📄 Documentation
40+
The Agile Api Docs are located [here](https://agile-ts.org/docs/)

packages/event/jest.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const baseConfig = require('../../jest.config.base');
2+
3+
module.exports = {
4+
...baseConfig,
5+
rootDir: '../..',
6+
name: 'Event',
7+
};

packages/event/package.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "@agile-ts/event",
3+
"version": "0.0.1",
4+
"author": "BennoDev",
5+
"license": "MIT",
6+
"homepage": "https://agile-ts.org/",
7+
"description": "Handy class for emitting UI updates and passing data with them",
8+
"keywords": [
9+
"agile",
10+
"agile-ts",
11+
"event",
12+
"ui-event"
13+
],
14+
"main": "dist/index.js",
15+
"types": "dist/index.d.ts",
16+
"scripts": {
17+
"build": "tsc",
18+
"prepare": "tsc && tsc -p ./tsconfig.production.json",
19+
"dev:publish": "yalc publish",
20+
"dev:push": "yalc push",
21+
"watch": "tsc-watch --onSuccess \"yarn run dev:push\"",
22+
"release": "yarn run prepare",
23+
"preview": "npm pack"
24+
},
25+
"devDependencies": {
26+
"@agile-ts/core": "file:../core"
27+
},
28+
"peerDependencies": {
29+
"@agile-ts/core": "^0.0.12"
30+
},
31+
"publishConfig": {
32+
"access": "public"
33+
},
34+
"repository": {
35+
"type": "git",
36+
"url": "https://github.com/agile-ts/agile.git"
37+
},
38+
"files": [
39+
"dist",
40+
"LICENSE",
41+
"README.md"
42+
]
43+
}

packages/event/tsconfig.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "../tsconfig.default.json",
3+
"compilerOptions": {
4+
"rootDir": "src",
5+
"outDir": "dist"
6+
},
7+
"include": [
8+
"./src/**/*" // Only include what is in src (-> dist, tests, .. will be excluded)
9+
]
10+
}

0 commit comments

Comments
 (0)