innetjs 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/innet CHANGED
@@ -445,7 +445,7 @@ class InnetJS {
445
445
  }
446
446
  }
447
447
 
448
- var version = "1.9.0";
448
+ var version = "1.10.0";
449
449
 
450
450
  require('dotenv').config();
451
451
  const innetJS = new InnetJS();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innetjs",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "CLI for innet boilerplate",
5
5
  "homepage": "https://github.com/d8corp/innetjs",
6
6
  "author": "Mikhail Lysikov <d8corp@mail.ru>",
@@ -8,6 +8,6 @@
8
8
  "innet": "^1.0.0"
9
9
  },
10
10
  "devDependencies": {
11
- "innetjs": "^1.9.0"
11
+ "innetjs": "^1.10.0"
12
12
  }
13
13
  }
@@ -71,7 +71,9 @@ GENERATE_SOURCEMAP=false
71
71
  CSS_IN_JS=false
72
72
 
73
73
  # import styles from './App.css'
74
- # you can use css modules with CSS_MODULES=true
74
+ # you can use css modules with CSS_MODULES=true.
75
+ # If CSS_MODULES equals false you still can use css modules,
76
+ # just name the css or scss file like App.module.css
75
77
  CSS_MODULES=false
76
78
 
77
79
  # you can change the public folder
@@ -4,11 +4,11 @@
4
4
  "start": "npx innetjs start"
5
5
  },
6
6
  "dependencies": {
7
- "@watch-state/decorators": "^1.1.0",
8
- "innet": "^0.2.8",
9
- "watch-state": "^3.3.3"
7
+ "innet": "^1.0.0",
8
+ "@innet/dom": "^0.1.1",
9
+ "watch-state": "^3.4.3"
10
10
  },
11
11
  "devDependencies": {
12
- "innetjs": "^1.9.0"
12
+ "innetjs": "^1.10.0"
13
13
  }
14
14
  }
@@ -5,6 +5,7 @@ html, body {
5
5
  background: #2B2B2B;
6
6
  color: #F7B756;
7
7
  }
8
+
8
9
  .root {
9
10
  position: absolute;
10
11
  top: 50%;
@@ -1,23 +1,18 @@
1
- import {state} from '@watch-state/decorators'
2
- import styles from './App.scss'
1
+ import { State } from 'watch-state'
3
2
 
4
- class App {
5
- @state name = 'World'
3
+ import styles from './App.scss'
6
4
 
7
- render () {
8
- return (
9
- <div class={styles.root}>
10
- <h1 class={styles.header}>
11
- Hello{() => this.name ? `, ${this.name}` : ''}!
12
- </h1>
13
- <input
14
- class={styles.input}
15
- oninput={e => this.name = e.target.value}
16
- placeholder='Enter your name'
17
- />
18
- </div>
19
- )
20
- }
21
- }
5
+ const name = new State('World')
22
6
 
23
- export default App
7
+ export const App = () => (
8
+ <div class={styles.root}>
9
+ <h1 class={styles.header}>
10
+ Hello{() => name.value ? `, ${name.value}` : ''}!
11
+ </h1>
12
+ <input
13
+ class={styles.input}
14
+ oninput={e => name.value = e.target.value}
15
+ placeholder='Enter your name'
16
+ />
17
+ </div>
18
+ )
@@ -1,4 +1,6 @@
1
1
  import innet from 'innet'
2
- import App from './App'
2
+ import dom from '@innet/dom'
3
3
 
4
- innet(<App />)
4
+ import { App } from '/App'
5
+
6
+ innet(<App />, dom)