lincd-cli 0.1.7 → 0.1.10

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 (51) hide show
  1. package/{src/cli.js → cli.js} +2 -2
  2. package/config-generator.js +568 -0
  3. package/defaults/app/Gruntfile.js +13 -0
  4. package/defaults/app/tsconfig-es5.json +18 -0
  5. package/defaults/app/tsconfig.json +18 -0
  6. package/defaults/module/.npmignore +6 -0
  7. package/defaults/module/Gruntfile.js +16 -0
  8. package/defaults/module/package.json +14 -6
  9. package/defaults/module/src/components/ExampleComponent.tsx +12 -10
  10. package/defaults/module/src/data/example-ontology.json +3 -3
  11. package/defaults/module/src/index.ts +1 -1
  12. package/defaults/module/src/module.ts +1 -1
  13. package/defaults/module/src/ontologies/example-ontology.ts +19 -14
  14. package/defaults/module/src/shapes/ExampleShapeClass.ts +5 -5
  15. package/defaults/module/tsconfig-es5.json +18 -0
  16. package/defaults/module/tsconfig.json +18 -0
  17. package/defaults/shape.ts +8 -0
  18. package/{src/index.js → index.js} +9 -5
  19. package/lib/cli.js +537 -472
  20. package/lib/config-webpack.js +3 -2
  21. package/lib/utils.js +6 -3
  22. package/package.json +9 -9
  23. package/{src/plugins → plugins}/declaration-plugin.js +0 -0
  24. package/{src/plugins → plugins}/externalise-modules.js +0 -0
  25. package/{src/plugins → plugins}/watch-run.js +0 -0
  26. package/utils.js +39 -0
  27. package/defaults/create_migration.js +0 -155
  28. package/defaults/create_migration.ts +0 -7
  29. package/defaults/defaultModule/Index.js +0 -30
  30. package/defaults/defaultModule/Index.scss +0 -19
  31. package/defaults/defaultModule/Index.tsx +0 -32
  32. package/defaults/defaultModule/data.json +0 -56
  33. package/defaults/defaultModule/defaultOntology.json +0 -23
  34. package/defaults/defaultModule/index.ts +0 -16
  35. package/defaults/defaultModule/ontology.js +0 -21
  36. package/defaults/defaultModule/ontology.ts +0 -19
  37. package/defaults/gitignorefile +0 -4
  38. package/defaults/index.ts +0 -17
  39. package/defaults/ontology.ts +0 -19
  40. package/defaults/package.json +0 -28
  41. package/defaults/providers.ts +0 -1
  42. package/defaults/site/package.json +0 -40
  43. package/defaults/site/storage/filestores/settings-production-template.jsonld +0 -129
  44. package/defaults/site/web/.htaccess +0 -19
  45. package/defaults/site/web/favicon.png +0 -0
  46. package/defaults/site/web/img/placeholder.jpg +0 -0
  47. package/src/config-grunt.js +0 -263
  48. package/src/config-webpack.js +0 -281
  49. package/src/interfaces.js +0 -2
  50. package/src/plugins/shapes-plugin.js +0 -69
  51. package/src/utils.js +0 -127
@@ -44,7 +44,8 @@ function generateWebpackConfig(buildName, moduleName, config) {
44
44
  var productionMode = nodeProduction || config.productionMode;
45
45
  var es5 = config.target == 'es5';
46
46
  var es6 = config.target == 'es6';
47
- var cleanModuleName = moduleName.replace(/@\w+\//, '');
47
+ //remove the scope (used for filenames for example)
48
+ var cleanModuleName = moduleName.replace(/@[\w\-]+\//, '');
48
49
  var configFile;
49
50
  if (es5 && fs.existsSync('tsconfig-es5.json')) {
50
51
  configFile = 'tsconfig-es5.json';
@@ -209,7 +210,7 @@ function generateWebpackConfig(buildName, moduleName, config) {
209
210
  }));
210
211
  }
211
212
  return {
212
- entry: config.entry ? config.entry : (tsConfig.files ? tsConfig.files : './src/index.ts'),
213
+ entry: config.entry ? config.entry : tsConfig.files ? tsConfig.files : './src/index.ts',
213
214
  output: {
214
215
  filename: (config.filename ? config.filename : cleanModuleName) + (es5 ? '.es5' : '') + '.js',
215
216
  path: path.resolve(process.cwd(), config.bundlePath || 'dist'),
package/lib/utils.js CHANGED
@@ -33,15 +33,18 @@ var SHACL_1 = require("lincd/lib/shapes/SHACL");
33
33
  var CoreSet_1 = require("lincd/lib/collections/CoreSet");
34
34
  var JSONLDWriter_1 = require("lincd-jsonld/lib/JSONLDWriter");
35
35
  var chalk_1 = __importDefault(require("chalk"));
36
- var getPackageJSON = function (root) {
36
+ var getPackageJSON = function (root, error) {
37
37
  if (root === void 0) { root = process.cwd(); }
38
+ if (error === void 0) { error = true; }
38
39
  var packagePath = path.join(root, 'package.json');
39
40
  if (fs.existsSync(packagePath)) {
40
41
  return JSON.parse(fs.readFileSync(packagePath, 'utf8'));
41
42
  }
42
43
  else if (root === process.cwd()) {
43
- console.warn('Could not find package.json. Make sure you run this command from the root of a lincd module or a lincd yarn workspace');
44
- process.exit();
44
+ if (error) {
45
+ console.warn('Could not find package.json. Make sure you run this command from the root of a lincd module or a lincd yarn workspace');
46
+ process.exit();
47
+ }
45
48
  }
46
49
  };
47
50
  exports.getPackageJSON = getPackageJSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lincd-cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.10",
4
4
  "description": "Command line tools for the lincd.js library",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -14,6 +14,7 @@
14
14
  "build",
15
15
  "tools"
16
16
  ],
17
+ "repository": "https://github.com:Semantu/lincd.org",
17
18
  "author": {
18
19
  "name": "René Verheij",
19
20
  "email": "rpwverheij@gmail.com"
@@ -25,12 +26,12 @@
25
26
  "dependencies": {
26
27
  "@lodder/grunt-postcss": "^3.1.1",
27
28
  "@types/node": "^17.0.14",
28
- "@types/react": "^18.0.15",
29
+ "@types/react": "^18.0.17",
29
30
  "@types/react-dom": "^18.0.6",
30
31
  "chalk": "4.1.0",
31
32
  "child-process-promise": "^2.2.1",
32
33
  "colors": "^1.4.0",
33
- "commander": "^6.2.0",
34
+ "commander": "^9.4.0",
34
35
  "css-loader": "^5.2.7",
35
36
  "extract-text-webpack-plugin": "^4.0.0-beta.0",
36
37
  "fs-extra": "^10.1.0",
@@ -40,7 +41,7 @@
40
41
  "grunt-contrib-clean": "^2.0.0",
41
42
  "grunt-contrib-copy": "^1.0.0",
42
43
  "grunt-exec": "^3.0.0",
43
- "grunt-ts": "^6.0.0-beta.17",
44
+ "grunt-ts": "^6.0.0-beta.22",
44
45
  "grunt-webpack": "^4.0.2",
45
46
  "license-info-webpack-plugin": "^3.0.0",
46
47
  "lincd": "^0.2",
@@ -54,7 +55,6 @@
54
55
  "postcss-modules": "^4.3.1",
55
56
  "postcss-nested": "^5.0.6",
56
57
  "postcss-scss": "^4.0.4",
57
- "postcss-strip-inline-comments": "^0.1.5",
58
58
  "require-extensions": "^0.0.4",
59
59
  "sass": "^1.51.0",
60
60
  "sass-loader": "^10.0",
@@ -62,16 +62,16 @@
62
62
  "tailwindcss": "^3.1.6",
63
63
  "terser-webpack-plugin": "^4.0.0",
64
64
  "ts-loader": "8.2.0",
65
- "ts-node": "^10.7.0",
65
+ "ts-node": "10.7",
66
66
  "tsc-hooks": "^1.1.1",
67
67
  "tsconfig-paths-webpack-plugin": "^3.3.0",
68
- "typescript": "^4.6",
68
+ "typescript": "4.6.4",
69
69
  "webpack": "^4.0.0",
70
- "webpack-bundle-analyzer": "^3.0.0",
70
+ "webpack-bundle-analyzer": "^4.6.1",
71
71
  "webpack-license-plugin": "^4.2.1"
72
72
  },
73
73
  "devDependencies": {
74
74
  "optimize-css-assets-webpack-plugin": "^6.0.1"
75
75
  },
76
76
  "peerDepencencies": {}
77
- }
77
+ }
File without changes
File without changes
File without changes
package/utils.js ADDED
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.getShapes = exports.getShapesJSONLD = exports.getPackageJSON = void 0;
4
+ var fs = require("fs");
5
+ var path = require("path");
6
+ var SHACL_Shape_1 = require("lincd/lib/shapes/SHACL_Shape");
7
+ var CoreSet_1 = require("lincd/lib/collections/CoreSet");
8
+ var JSONLDWriter_1 = require("lincd-jsonld/lib/JSONLDWriter");
9
+ var getPackageJSON = function (root) {
10
+ if (root === void 0) { root = process.cwd(); }
11
+ var packagePath = path.join(root, 'package.json');
12
+ if (fs.existsSync(packagePath)) {
13
+ return JSON.parse(fs.readFileSync(packagePath, 'utf8'));
14
+ }
15
+ else if (root === process.cwd()) {
16
+ console.warn('Could not find package.json. Make sure you run this command from the root of a lincd module or a lincd yarn workspace');
17
+ process.exit();
18
+ }
19
+ };
20
+ exports.getPackageJSON = getPackageJSON;
21
+ function getShapesJSONLD(moduleExports) {
22
+ return JSONLDWriter_1.JSONLDWriter.stringify(getShapes(moduleExports));
23
+ }
24
+ exports.getShapesJSONLD = getShapesJSONLD;
25
+ function getShapes(moduleExports) {
26
+ var shapes = new CoreSet_1.CoreSet();
27
+ for (var key in moduleExports) {
28
+ var moduleExport = moduleExports[key];
29
+ // console.log(key, Object.keys(moduleExports[key]));
30
+ if (moduleExport.shape) {
31
+ // console.log(Object.keys(moduleExport.shape));
32
+ if (moduleExport.shape && moduleExport.shape instanceof SHACL_Shape_1.SHACL_Shape) {
33
+ shapes.add(moduleExport.shape);
34
+ }
35
+ }
36
+ }
37
+ return shapes;
38
+ }
39
+ exports.getShapes = getShapes;
@@ -1,155 +0,0 @@
1
- 'use strict';
2
- var __awaiter =
3
- (this && this.__awaiter) ||
4
- function (thisArg, _arguments, P, generator) {
5
- function adopt(value) {
6
- return value instanceof P
7
- ? value
8
- : new P(function (resolve) {
9
- resolve(value);
10
- });
11
- }
12
- return new (P || (P = Promise))(function (resolve, reject) {
13
- function fulfilled(value) {
14
- try {
15
- step(generator.next(value));
16
- } catch (e) {
17
- reject(e);
18
- }
19
- }
20
- function rejected(value) {
21
- try {
22
- step(generator['throw'](value));
23
- } catch (e) {
24
- reject(e);
25
- }
26
- }
27
- function step(result) {
28
- result.done
29
- ? resolve(result.value)
30
- : adopt(result.value).then(fulfilled, rejected);
31
- }
32
- step((generator = generator.apply(thisArg, _arguments || [])).next());
33
- });
34
- };
35
- var __generator =
36
- (this && this.__generator) ||
37
- function (thisArg, body) {
38
- var _ = {
39
- label: 0,
40
- sent: function () {
41
- if (t[0] & 1) throw t[1];
42
- return t[1];
43
- },
44
- trys: [],
45
- ops: [],
46
- },
47
- f,
48
- y,
49
- t,
50
- g;
51
- return (
52
- (g = {next: verb(0), throw: verb(1), return: verb(2)}),
53
- typeof Symbol === 'function' &&
54
- (g[Symbol.iterator] = function () {
55
- return this;
56
- }),
57
- g
58
- );
59
- function verb(n) {
60
- return function (v) {
61
- return step([n, v]);
62
- };
63
- }
64
- function step(op) {
65
- if (f) throw new TypeError('Generator is already executing.');
66
- while (_)
67
- try {
68
- if (
69
- ((f = 1),
70
- y &&
71
- (t =
72
- op[0] & 2
73
- ? y['return']
74
- : op[0]
75
- ? y['throw'] || ((t = y['return']) && t.call(y), 0)
76
- : y.next) &&
77
- !(t = t.call(y, op[1])).done)
78
- )
79
- return t;
80
- if (((y = 0), t)) op = [op[0] & 2, t.value];
81
- switch (op[0]) {
82
- case 0:
83
- case 1:
84
- t = op;
85
- break;
86
- case 4:
87
- _.label++;
88
- return {value: op[1], done: false};
89
- case 5:
90
- _.label++;
91
- y = op[1];
92
- op = [0];
93
- continue;
94
- case 7:
95
- op = _.ops.pop();
96
- _.trys.pop();
97
- continue;
98
- default:
99
- if (
100
- !((t = _.trys), (t = t.length > 0 && t[t.length - 1])) &&
101
- (op[0] === 6 || op[0] === 2)
102
- ) {
103
- _ = 0;
104
- continue;
105
- }
106
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
107
- _.label = op[1];
108
- break;
109
- }
110
- if (op[0] === 6 && _.label < t[1]) {
111
- _.label = t[1];
112
- t = op;
113
- break;
114
- }
115
- if (t && _.label < t[2]) {
116
- _.label = t[2];
117
- _.ops.push(op);
118
- break;
119
- }
120
- if (t[2]) _.ops.pop();
121
- _.trys.pop();
122
- continue;
123
- }
124
- op = body.call(thisArg, _);
125
- } catch (e) {
126
- op = [6, e];
127
- y = 0;
128
- } finally {
129
- f = t = 0;
130
- }
131
- if (op[0] & 5) throw op[1];
132
- return {value: op[0] ? op[1] : void 0, done: true};
133
- }
134
- };
135
- exports.__esModule = true;
136
- var $name = /** @class */ (function () {
137
- function $name() {}
138
- $name.apply = function () {
139
- return __awaiter(this, void 0, void 0, function () {
140
- return __generator(this, function (_a) {
141
- return [2 /*return*/];
142
- });
143
- });
144
- };
145
- $name.undo = function () {
146
- return __awaiter(this, void 0, void 0, function () {
147
- return __generator(this, function (_a) {
148
- return [2 /*return*/];
149
- });
150
- });
151
- };
152
- $name.migration_name = '$shortName';
153
- return $name;
154
- })();
155
- exports['default'] = $name;
@@ -1,7 +0,0 @@
1
- export default class $name {
2
- static migration_name: string = '$shortName';
3
-
4
- static async apply() {}
5
-
6
- static async undo() {}
7
- }
@@ -1,30 +0,0 @@
1
- 'use strict';
2
- exports.__esModule = true;
3
- exports.$ = void 0;
4
- var Core_1 = require('@dacore/core/lib/types/Core');
5
- var UriResource_1 = require('@dacore/core/lib/models/UriResource');
6
- var JSONLD_1 = require('@dacore/core/lib/utils/JSONLD');
7
- var $ = require();
8
- exports.$ = $;
9
- from;
10
- ('./ontologies/${ontology_name}');
11
- var Index = require('./views/Index');
12
- var _dataPromise = JSONLD_1.JSONLD.parse(
13
- require('../data/data.json'),
14
- true,
15
- true,
16
- );
17
- var moduleResource = UriResource_1.UriResource.getOrCreate(
18
- '${uri_base}/module/${module_name}',
19
- );
20
- Core_1.Core.app().registerModule(
21
- '${module_name}',
22
- this,
23
- moduleResource,
24
- _dataPromise,
25
- [$, {underscore_ontology_name: underscore_ontology_name}._parsePromise],
26
- );
27
- {
28
- underscore_ontology_name;
29
- }
30
- Index;
@@ -1,19 +0,0 @@
1
- .Index {
2
- width: 80%;
3
- max-width: 44rem;
4
- padding: 7rem 4rem 3rem;
5
- margin: 58px auto !important;
6
- box-shadow: 0px 0px 36px #50625055;
7
- border-radius: 10px;
8
- font-family: monospace;
9
- font-size: 15px;
10
- background: url(https://www.dacore.org/img/logo@2x.png) top right no-repeat;
11
- background-size: 240px;
12
- background-position-y: 26px;
13
- background-position-x: center;
14
-
15
- code {
16
- padding: 2px 4px;
17
- background-color: #eee;
18
- }
19
- }
@@ -1,32 +0,0 @@
1
- import { React,ReactComponent } from "@dacore/core/lib/shapes/ReactComponent";
2
- import { UriResource } from "@dacore/core/lib/models";
3
- import "./Index.scss";
4
- import style from "./Index.scss.json";
5
- import ${projectName} from "../ontologies/${projectName}";
6
-
7
- export default class Index extends ReactComponent<any,any>
8
- {
9
- static viewType: UriResource = ${projectName}
10
- .
11
- Index;
12
-
13
- render()
14
- {
15
- return <div className={style.Index}>
16
- <hr />
17
- <p>Welcome to your new LINCD setup!</p>
18
- <p>
19
- To start coding:
20
- <ul>
21
- <li>Go to <code>/modules/${browserTitle}</code> and run <code>yarn lincd dev</code> to start developing your
22
- module
23
- </li>
24
- <li>Open <code>modules/${browserTitle}/src/views/Index.tsx</code> to edit this page.</li>
25
- <li>For pages rendered on the initial page request you currently have to restart the server and refresh the
26
- page to see the results (for others you can simply refresh)
27
- </li>
28
- </ul>
29
- </p>
30
- </div>;
31
- }
32
- }
@@ -1,56 +0,0 @@
1
- {
2
- "@context": {
3
- "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
4
- "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
5
- "module": "http://data.dacore.org/ontologies/module/",
6
- "core": "http://data.dacore.org/ontologies/core/",
7
- "oc": "http://data.dacore.org/ontologies/oc/",
8
- "xsd": "http://www.w3.org/2001/XMLSchema#",
9
- "router": "http://data.dacore.org/ontologies/router/",
10
- "node-core": "http://data.dacore.org/ontologies/node-core/",
11
- "mysite": "http://data.mysite.com/ontology/mysite/",
12
- "admin": "http://data.dacore.org/ontologies/admin/",
13
- "html": "http://data.dacore.org/ontologies/html/"
14
- },
15
- "@graph": [
16
- {
17
- "@id": "${defaultModuleUri}",
18
- "@type": "module:Module",
19
- "module:maintainsOntology": {
20
- "@id": "${defaultOntologyUri}"
21
- },
22
- "module:npmPath": "@dacore/${projectName}",
23
- "rdfs:label": "${projectName}"
24
- },
25
- {
26
- "@id": "${uriBase}/moduledatastore/${projectName}",
27
- "@type": "node-core:ModuleDataStore",
28
- "module:module": {
29
- "@id": "${defaultModuleUri}"
30
- }
31
- },
32
- {
33
- "@id": "${uriBase}/route//",
34
- "@type": "router:Route",
35
- "core:viewType": {
36
- "@id": "${defaultOntologyUri}Index"
37
- },
38
- "router:exact": {
39
- "@type": "xsd:boolean",
40
- "@value": "true"
41
- },
42
- "router:path": "/"
43
- },
44
- {
45
- "@id": "${uriBase}/route//console",
46
- "@type": "router:Route",
47
- "core:viewType": {
48
- "@id": "admin:AdminOverview"
49
- },
50
- "router:layout": {
51
- "@id": "admin:AdminOverview"
52
- },
53
- "router:path": "/console"
54
- }
55
- ]
56
- }
@@ -1,23 +0,0 @@
1
- {
2
- "@context": {
3
- "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
4
- "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
5
- "core": "http://data.dacore.org/ontologies/core/",
6
- "${projectName}": "${defaultOntologyUri}"
7
- },
8
- "@graph": [
9
- {
10
- "@id": "${defaultOntologyUri}",
11
- "@type": "http://www.w3.org/2002/07/owl#Ontology",
12
- "core:suggestedPrefix": "${projectName}"
13
- },
14
- {
15
- "@id": "${projectName}:Index",
16
- "@type": "core:ViewType",
17
- "rdfs:isDefinedBy": {
18
- "@id": "${defaultOntologyUri}"
19
- },
20
- "rdfs:label": "Index"
21
- }
22
- ]
23
- }
@@ -1,16 +0,0 @@
1
- import { Core } from "@dacore/core/lib/shapes/Core";
2
- import { UriResource } from "@dacore/core/lib/models";
3
- import { JSONLD } from "@dacore/core/lib/utils/JSONLD";
4
- import * as Index from "./views/Index";
5
- import * as ${underscore_ontology_name} from
6
-
7
- "./ontologies/${ontology_name}";
8
-
9
- declare var require: any;
10
- var _dataPromise = JSONLD.parse(require("../data/data.json"),true,true) as Promise<any>;
11
-
12
- var moduleResource: UriResource = UriResource.getOrCreate("${uri_base}/module/${module_name}");
13
- Core.app().registerModule("${module_name}",this,moduleResource,_dataPromise,[${underscore_ontology_name}._parsePromise
14
- ])
15
- ;
16
- export {${underscore_ontology_name},Index };
@@ -1,21 +0,0 @@
1
- 'use strict';
2
- exports.__esModule = true;
3
- exports.Index = exports._parsePromise = exports._ontologyResource = void 0;
4
- var UriResource_1 = require('@dacore/core/lib/models/UriResource');
5
- var JSONLD_1 = require('@dacore/core/lib/utils/JSONLD');
6
- var base = '${uri_base}/ontology/${ontology_name}/';
7
- exports._ontologyResource = UriResource_1.UriResource.getOrCreate(base);
8
- var json = require('../../data/ontologies/${ontology_name}.json');
9
- exports._parsePromise = [
10
- exports._ontologyResource,
11
- JSONLD_1.JSONLD.parse(json, true, true),
12
- ];
13
- //add your ontology resources here
14
- exports.Index = UriResource_1.UriResource.getOrCreate(base + 'Index');
15
- //make sure every resource is also exported here
16
- var $,
17
- camel_ontology_name = {Index: exports.Index}.camel_ontology_name;
18
- exports['default'] = $;
19
- {
20
- camel_ontology_name;
21
- }
@@ -1,19 +0,0 @@
1
- import { UriResource } from "@dacore/core/lib/models";
2
- import { JSONLD } from "@dacore/core/lib/utils/JSONLD";
3
-
4
- declare var require: any;
5
-
6
- var base: string = "${uri_base}/ontology/${ontology_name}/";
7
- export var _ontologyResource: UriResource = UriResource.getOrCreate(base);
8
-
9
- var json = require("../../data/ontologies/${ontology_name}.json");
10
- export var _parsePromise: [UriResource,Promise<any>] = [_ontologyResource,JSONLD.parse(json,true,true) as Promise<any>];
11
-
12
- //add your ontology resources here
13
- export var Index: UriResource = UriResource.getOrCreate(base + "Index");
14
-
15
- //make sure every node is also exported here
16
- var ${camel_ontology_name} =;
17
- {Index;}
18
- ;
19
- export default ${camel_ontology_name};
@@ -1,4 +0,0 @@
1
- **/node_modules
2
- .idea
3
- lib
4
- builds
package/defaults/index.ts DELETED
@@ -1,17 +0,0 @@
1
- import { Core } from "@dacore/core/lib/shapes/Core";
2
- import { UriResource } from "@dacore/core/lib/models";
3
- import { JSONLD } from "@dacore/core/lib/utils/JSONLD";
4
- import * as ${underscore_ontology_name} from
5
-
6
- "./ontologies/${ontology_name}";
7
- //import * as viewName from "./views/viewName"
8
- //import * as typeName from "./shapes/typeName"
9
-
10
- declare var require: any;
11
- var _dataPromise = JSONLD.parse(require("../data/data.json"),true,true) as Promise<any>;
12
-
13
- var moduleResource: UriResource = UriResource.getOrCreate("${uri_base}/module/${module_name}");
14
- Core.app().registerModule("${module_name}",this,moduleResource,_dataPromise,[${underscore_ontology_name}._parsePromise
15
- ])
16
- ;
17
- export {${underscore_ontology_name} };
@@ -1,19 +0,0 @@
1
- import { UriResource } from "@dacore/core/lib/models";
2
- import { JSONLD } from "@dacore/core/lib/utils/JSONLD";
3
-
4
- declare var require: any;
5
-
6
- var base: string = "${uri_base}/ontology/${ontology_name}/";
7
- export var _ontologyResource: UriResource = UriResource.getOrCreate(base);
8
-
9
- var json = require("../../data/ontologies/${ontology_name}.json");
10
- export var _parsePromise: [UriResource,Promise<any>] = [_ontologyResource,JSONLD.parse(json,true,true) as Promise<any>];
11
-
12
- //add your ontology resources here
13
- // export var node:UriResource = UriResource.getOrCreate(base+"node");
14
-
15
- //make sure every node is also exported here
16
- var ${camel_ontology_name} =;
17
- {}
18
- ;
19
- export default ${camel_ontology_name};
@@ -1,28 +0,0 @@
1
- {
2
- "name": "@dacore/",
3
- "version": "0.1.0",
4
- "description": "",
5
- "lincd": true,
6
- "main": "lib/index.js",
7
- "author": "",
8
- "license": "ISC",
9
- "scripts": {
10
- "build": "npm exec lincd build",
11
- "dev": "npm exec lincd dev",
12
- "prepare": "npm exec lincd build production",
13
- "postpublish": "npm exec lincd publish"
14
- },
15
- "keywords": [
16
- "lincd",
17
- "linked data",
18
- "interoperable",
19
- "semantic web",
20
- "web3"
21
- ],
22
- "dependencies": {
23
- "lincd": "^0.2"
24
- },
25
- "devDependencies": {
26
- "lincd-cli": "^0.1"
27
- }
28
- }
@@ -1 +0,0 @@
1
- //export {default as SomeProvider} from './shapes/SomeProvider';
@@ -1,40 +0,0 @@
1
- {
2
- "private": true,
3
- "name": "${packageName}",
4
- "version": "0.2.0",
5
- "description": "Server for ${browserTitle}",
6
- "main": "lib/index.js",
7
- "license": "UNLICENSED",
8
- "scripts": {
9
- "dev": "node ./lib/start-server.js",
10
- "production": "set NODE_ENV=production&& node ./lib/start-server.js"
11
- },
12
- "directories": {
13
- "lib": "lib"
14
- },
15
- "workspaces": [
16
- "modules/*"
17
- ],
18
- "dependencies": {
19
- "@dacore/admin": "^0.2",
20
- "@dacore/auth": "^0.2",
21
- "@dacore/browser-core": "^0.2",
22
- "@dacore/core": "1.x",
23
- "@dacore/core-editors": "^0.2",
24
- "@dacore/coreviews": "^0.2",
25
- "@dacore/core-ui": "^0.2",
26
- "@dacore/dcterms": "^0.2",
27
- "@dacore/forms": "^0.2",
28
- "@dacore/html": "^0.2",
29
- "@dacore/icons": "^0.2",
30
- "@dacore/rdf4j": "^0.2",
31
- "@dacore/server-core": "^0.2",
32
- "@dacore/website": "^0.2",
33
- "@dacore/website-editors": "^0.2",
34
- "react": "^18.1",
35
- "react-dom": "^18.1"
36
- },
37
- "devDependencies": {
38
- "@dacore/build-tools": "1.x"
39
- }
40
- }