Skip to content

Commit

Permalink
update to 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed May 7, 2019
1 parent 3994866 commit a672f7d
Show file tree
Hide file tree
Showing 13 changed files with 1,278 additions and 731 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
assets/
documentation/
src/
rollup.config.js
*.config.js
test/
types/tsconfig.tsbuildinfo
coverage/
Expand Down
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,21 +128,15 @@ Solid's rendering is done by the [DOM Expressions](https://github.com/ryansolid/
To get setup add this babel plugin config to your .babelrc, webpack, or rollup config:

```js
"plugins": ["jsx-dom-expressions"]
```

And include at the top of your files:

```js
import { r } from 'solid-js/dom'
"plugins": [["jsx-dom-expressions", {moduleName: 'solid-js/dom'}]]
```

Alternatively in non-compiled environments you can use Tagged Template Literals [Lit DOM Expressions](https://github.com/ryansolid/lit-dom-expressions) or even HyperScript with [Hyper DOM Expressions](https://github.com/ryansolid/hyper-dom-expressions).

For convenience Solid exports interfaces to runtimes for these as:
```js
import { h } from 'solid-js/h';
import { html } from 'solid-js/html'
import h from 'solid-js/h';
import html from 'solid-js/html'
```
Remember you still need to install the library separately for these to work.

Expand Down
10 changes: 10 additions & 0 deletions dom-expressions.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
output: 'src/dom/index.js',
variables: {
imports: [ `import S from 's-js'` ],
computed: 'S',
sample: 'S.sample',
root: 'S.root',
cleanup: 'S.cleanup'
}
}
Loading

0 comments on commit a672f7d

Please sign in to comment.