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.
- package/bin/index.js +20 -7
- 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 {
|
43
|
+
import { Des } from 'nodality';
|
44
44
|
|
45
|
-
|
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
|
-
|
48
|
-
|
49
|
-
|
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.
|
3
|
+
"version": "1.0.0-beta.12",
|
4
4
|
"description": "Project scaffolding tool for Nodality library",
|
5
5
|
"bin": {
|
6
|
-
"create-nodality": "
|
6
|
+
"create-nodality": "bin/index.js"
|
7
7
|
},
|
8
8
|
"type": "module",
|
9
9
|
"scripts": {
|