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

Commit 78d9ce6

Browse files
authored
Merge pull request #5 from agile-ts/develop
Develop
2 parents 9c15f5c + 82cd47f commit 78d9ce6

File tree

90 files changed

+9284
-5927
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+9284
-5927
lines changed

ReadMe.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
1-
# Agile Framework `1.0.2`
1+
# Agile Framework `v0.0.3`
22

33
_Agile is a global state and logic framework for reactive Typescript & Javascript applications. Supporting frameworks like React and React Native._
44

55
#### Agile is strongly inspired by [PulseJs](https://github.com/pulse-framework/pulse)
6-
It was mainly created to learn how Pulse works under the hood, and it was fun to 'copy' and optimize PulseJs.
7-
I will use this project mainly for my own projects because here the code style is after my taste..
8-
So I can change things quickly and don't have to deal with a big framework which is used by many people and must function perfectly.
6+
It was mainly created to learn how PulseJs works under the hood, and it was fun to 'copy' and optimize PulseJs.
7+
This framework will mainly be used for my own projects because here I can make changes quickly without having fear to damage big projects from other people..
8+
because nearly every app depends on a state-management framework.. and if that doesn't work properly the app won't too
9+
910

1011
##### Feel free to use it but be aware that it is optimized to my needs and has no [docs](https://pulsejs.org/)
1112

13+
| Name | Latest Version |
14+
| ------------------------------------------------------------------------ | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
15+
| [@agile-ts/core](/packages/core) | [![badge](https://img.shields.io/npm/v/@agile-ts/core.svg?style=flat-square)](https://www.npmjs.com/package/@agile-ts/core) |
16+
| [@agile-ts/react](/packages/react) | [![badge](https://img.shields.io/npm/v/@agile-ts/react.svg?style=flat-square)](https://www.npmjs.com/package/@agile-ts/react) |
17+
| [@agile-ts/api](/packages/api) | [![badge](https://img.shields.io/npm/v/@agile-ts/api.svg?style=flat-square)](https://www.npmjs.com/package/@agile-ts/api) |
18+
1219
<div align="center">
1320
<img src="https://i.pinimg.com/originals/66/70/fd/6670fd61b91760bf8f04ca0479a2e0d1.gif">
1421
</div>
22+
23+

examples/react-typescript/package-lock.json

Lines changed: 4973 additions & 5078 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/react-typescript/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"react-dom": "^16.13.1",
1515
"react-scripts": "3.4.3",
1616
"typescript": "~3.7.2",
17-
"agile-framework": "file:../../"
17+
"@agile-ts/core": "file:../../packages/core",
18+
"@agile-ts/react": "file:../../packages/react"
1819
},
1920
"scripts": {
2021
"start": "react-scripts start",

examples/react-typescript/src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import './App.css';
3-
import {useAgile, useEvent} from 'agile-framework';
3+
import {useAgile, useEvent} from '@agile-ts/react';
44
import {MY_COLLECTION, MY_COMPUTED, MY_EVENT, MY_STATE, MY_STATE_2} from "./core";
55

66
const App = (props: any) => {
@@ -10,6 +10,7 @@ const App = (props: any) => {
1010
const [myCollection] = useAgile([MY_COLLECTION.getGroup('myGroup')]);
1111
const mySelector = useAgile(MY_COLLECTION.getSelector('mySelector'));
1212

13+
// @ts-ignore
1314
useEvent(MY_EVENT, () => {
1415
console.log("Triggered Event");
1516
});

examples/react-typescript/src/core/index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import Agile from 'agile-framework';
2-
import React from "react";
1+
import Agile from '@agile-ts/core';
32

43
export const App = new Agile({
54
logJobs: true,
6-
framework: React
75
});
86

9-
export const MY_STATE = App.State<string>("MyState", "my-state").persist();
10-
export const MY_STATE_2 = App.State<string>("MyState2").persist("my-state2");
7+
export const MY_STATE = App.State<string>("MyState", "my-state");//.persist();
8+
export const MY_STATE_2 = App.State<string>("MyState2");//.persist("my-state2");
119

1210
MY_STATE.watch("test", (value) => {
1311
console.log("Watch " + value);

0 commit comments

Comments
 (0)