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

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 +20 -7
  2. package/package.json +2 -2
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
 
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.12",
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": {