lincd-cli 0.1.22 → 0.1.24
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/defaults/app-with-backend/package.json +7 -2
- package/defaults/component.scss +3 -0
- package/defaults/component.tsx +12 -0
- package/defaults/module/package.json +1 -1
- package/defaults/module/src/package.ts +1 -1
- package/lib/cli.js +505 -321
- package/lib/config-webpack.js +22 -2
- package/lib/utils.js +26 -3
- package/package.json +5 -2
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
"description": "",
|
|
5
5
|
"version": "0.1.0",
|
|
6
6
|
"private": true,
|
|
7
|
-
"author":
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "",
|
|
9
|
+
"url": "",
|
|
10
|
+
"email": ""
|
|
11
|
+
},
|
|
8
12
|
"engines": {
|
|
9
13
|
"node": ">=16.0.0"
|
|
10
14
|
},
|
|
@@ -46,6 +50,7 @@
|
|
|
46
50
|
"@types/react-dom": "^18.0.6",
|
|
47
51
|
"env-cmd": "^10.1.0",
|
|
48
52
|
"lincd-cli": "^0.1",
|
|
49
|
-
"nodemon": "^2.0.6"
|
|
53
|
+
"nodemon": "^2.0.6",
|
|
54
|
+
"ts-loader": "^9.4.1"
|
|
50
55
|
}
|
|
51
56
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./${hyphen_name}.scss";
|
|
3
|
+
import {default as style} from "./${hyphen_name}.scss.json";
|
|
4
|
+
import {registerPackageModule,linkedComponent} from '../package';
|
|
5
|
+
|
|
6
|
+
//TODO: replace SHAPE with an actual Shape class
|
|
7
|
+
export const ${camel_name} = linkedComponent<SHAPE>(SHAPE,({source, sourceShape}) => {
|
|
8
|
+
return <div className={style.${camel_name}}></div>;
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
//register all components in this file
|
|
12
|
+
registerPackageModule(module);
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"types": "dist/${output_file_name}.d.ts",
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"scripts": {
|
|
19
|
+
"start": "npm exec lincd dev",
|
|
19
20
|
"build": "npm exec lincd build",
|
|
20
|
-
"dev": "npm exec lincd dev",
|
|
21
21
|
"prepublishOnly": "npm exec lincd build production",
|
|
22
22
|
"postpublish": "npm exec lincd register"
|
|
23
23
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import {linkedPackage} from 'lincd/lib/utils/Module';
|
|
2
2
|
|
|
3
|
-
export const {linkedComponent, linkedComponentClass, linkedShape, linkedUtil, linkedOntology} =
|
|
3
|
+
export const {linkedComponent, linkedComponentClass, linkedShape, linkedUtil, linkedOntology, registerPackageModule, registerPackageExport, packageExports} =
|
|
4
4
|
linkedPackage('${module_name}');
|