Skip to content

Commit ac144c6

Browse files
authored
Use the 0.2.0 core (#1)
* excluding core from build * deps upgrade + version update * updated readme
1 parent 213657c commit ac144c6

File tree

4 files changed

+179
-182
lines changed

4 files changed

+179
-182
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ Since version 0.2.0 you can! Just check out our [mutableJS / Demo repository](ht
1313

1414
## FAQ
1515

16-
#### Can mutableJS / DOM be standalone?
16+
#### Can mutableJS / DOM be used as standalone?
1717

18-
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.
18+
**Nope.**\
19+
Its reactivity depends on the [@mutableJS/core](https://www.npmjs.com/package/@mutablejs/core) activated variables.
1920

2021
#### Is it ready to use?
2122

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

3334
```bash
34-
npm install @mutablejs/dom
35+
npm install @mutablejs/core @mutablejs/dom
3536
```
3637

3738
Install with **yarn**:
3839

3940
```bash
40-
yarn add @mutablejs/dom
41+
yarn add @mutablejs/core @mutablejs/dom
4142
```
43+
Keep in mind the repository depends on `@mutablejs/core`.
4244

4345
## Usage/Examples
4446

@@ -100,6 +102,8 @@ root?.append(
100102

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

105+
Or start right away with your own project: [Starter-Template repository](https://github.com/mutableJS/template-starter-typescript).
106+
103107
## Authors
104108

105109
- [@donnikitos](https://www.github.com/donnikitos)

package.json

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mutablejs/dom",
3-
"version": "0.2.11",
3+
"version": "0.3.0",
44
"description": "Reactive DOM elements, based on mutableJS's state",
55
"keywords": [
66
"mutable DOM",
@@ -35,12 +35,17 @@
3535
"url": "https://github.com/mutableJS/dom"
3636
},
3737
"license": "MIT",
38+
"engines": {
39+
"node": ">=17.0.0"
40+
},
3841
"devDependencies": {
39-
"@types/node": "^17.0.30",
40-
"typescript": "^4.6.4",
41-
"vite": "^2.9.6"
42+
"@mutablejs/core": "^0.2.0",
43+
"@types/node": "^17.0.38",
44+
"typescript": "^4.7.2",
45+
"vite": "^2.9.9"
46+
},
47+
"peerDependencies": {
48+
"@mutablejs/core": "^0.2.0"
4249
},
43-
"dependencies": {
44-
"@mutablejs/core": "^0.1.6"
45-
}
50+
"dependencies": {}
4651
}

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ export default defineConfig({
1010
name: '@mutablejs/dom',
1111
},
1212
minify: false,
13+
rollupOptions: {
14+
external: ['@mutablejs/core'],
15+
},
1316
},
1417
});

0 commit comments

Comments
 (0)