Skip to content

Commit

Permalink
Use the 0.2.0 core (#1)
Browse files Browse the repository at this point in the history
* excluding core from build

* deps upgrade + version update

* updated readme
  • Loading branch information
donnikitos authored Jun 1, 2022
1 parent 213657c commit ac144c6
Show file tree
Hide file tree
Showing 4 changed files with 179 additions and 182 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ Since version 0.2.0 you can! Just check out our [mutableJS / Demo repository](ht

## FAQ

#### Can mutableJS / DOM be standalone?
#### Can mutableJS / DOM be used as standalone?

In theory it can, but it is kinda pointless, since it's reactivity depends on the input of [@mutableJS/core](https://www.npmjs.com/package/@mutablejs/core) activated variables.
**Nope.**\
Its reactivity depends on the [@mutableJS/core](https://www.npmjs.com/package/@mutablejs/core) activated variables.

#### Is it ready to use?

Expand All @@ -31,14 +32,15 @@ Also we have a [mutableJS / typescript-starter-template repository](https://gith
Install with **npm**:

```bash
npm install @mutablejs/dom
npm install @mutablejs/core @mutablejs/dom
```

Install with **yarn**:

```bash
yarn add @mutablejs/dom
yarn add @mutablejs/core @mutablejs/dom
```
Keep in mind the repository depends on `@mutablejs/core`.

## Usage/Examples

Expand Down Expand Up @@ -100,6 +102,8 @@ root?.append(

More complex todo-app demo in our [demo repository](https://github.com/mutableJS/demo).

Or start right away with your own project: [Starter-Template repository](https://github.com/mutableJS/template-starter-typescript).

## Authors

- [@donnikitos](https://www.github.com/donnikitos)
Expand Down
19 changes: 12 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mutablejs/dom",
"version": "0.2.11",
"version": "0.3.0",
"description": "Reactive DOM elements, based on mutableJS's state",
"keywords": [
"mutable DOM",
Expand Down Expand Up @@ -35,12 +35,17 @@
"url": "https://github.com/mutableJS/dom"
},
"license": "MIT",
"engines": {
"node": ">=17.0.0"
},
"devDependencies": {
"@types/node": "^17.0.30",
"typescript": "^4.6.4",
"vite": "^2.9.6"
"@mutablejs/core": "^0.2.0",
"@types/node": "^17.0.38",
"typescript": "^4.7.2",
"vite": "^2.9.9"
},
"peerDependencies": {
"@mutablejs/core": "^0.2.0"
},
"dependencies": {
"@mutablejs/core": "^0.1.6"
}
"dependencies": {}
}
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ export default defineConfig({
name: '@mutablejs/dom',
},
minify: false,
rollupOptions: {
external: ['@mutablejs/core'],
},
},
});
Loading

0 comments on commit ac144c6

Please sign in to comment.