create-nodality 1.0.0-beta.11 → 1.0.0-beta.13

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.
Files changed (2) hide show
  1. package/bin/index.js +21 -8
  2. package/package.json +3 -3
package/bin/index.js CHANGED
@@ -40,15 +40,28 @@ function createProject(projectName) {
40
40
 
41
41
  // Create index.js
42
42
  const indexJs = `
43
- import { Text } from 'nodality';
43
+ import { Des } from 'nodality';
44
44
 
45
- new Text('Hello, Nodality!')
45
+ let elements = [
46
+ {
47
+ type: "h1",
48
+ text: "Hello"
49
+ }
50
+ ];
51
+
52
+ let nodes = [
53
+ {
54
+ op: "blast"
55
+ }
56
+ ];
57
+
58
+ new Des()
59
+ .nodes(nodes)
60
+ .add(elements)
46
61
  .set({
47
- size: 'S1',
48
- color: '#1abc9c',
49
- font: 'Arial',
50
- })
51
- .render('#mount');
62
+ mount: "#mount",
63
+ code: true
64
+ });
52
65
  `;
53
66
  writeFileSync(resolve(srcPath, "index.js"), indexJs.trim());
54
67
 
@@ -100,7 +113,7 @@ export default {
100
113
  start: "npx serve . -l 4000",
101
114
  },
102
115
  dependencies: {
103
- nodality: "^1.0.0-beta.7",
116
+ nodality: "^1.0.0-beta.8",
104
117
  },
105
118
  devDependencies: {
106
119
  webpack: "^5.0.0",
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "create-nodality",
3
- "version": "1.0.0-beta.11",
3
+ "version": "1.0.0-beta.13",
4
4
  "description": "Project scaffolding tool for Nodality library",
5
5
  "bin": {
6
- "create-nodality": "./bin/index.js"
6
+ "create-nodality": "bin/index.js"
7
7
  },
8
8
  "type": "module",
9
9
  "scripts": {
@@ -18,6 +18,6 @@
18
18
  "author": "Filip Vabrousek",
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "nodality": "^1.0.0-beta.7"
21
+ "nodality": "^1.0.0-beta.8"
22
22
  }
23
23
  }