lincd-cli 0.1.2 → 0.1.6

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 (48) hide show
  1. package/LICENSE +373 -373
  2. package/README.md +2 -1
  3. package/defaults/defaultModule/Index.tsx +1 -1
  4. package/defaults/defaultModule/index.ts +11 -11
  5. package/defaults/defaultModule/ontology.ts +15 -15
  6. package/defaults/gitignorefile +3 -3
  7. package/defaults/index.ts +12 -12
  8. package/defaults/module/package.json +30 -0
  9. package/defaults/module/src/components/ExampleComponent.tsx +22 -0
  10. package/defaults/module/src/data/example-ontology.json +20 -0
  11. package/defaults/module/src/data/example-ontology.json.d.ts +1 -0
  12. package/defaults/module/src/index.ts +7 -0
  13. package/defaults/module/src/module.ts +9 -0
  14. package/defaults/module/src/ontologies/example-ontology.ts +33 -0
  15. package/defaults/module/src/shapes/ExampleShapeClass.ts +30 -0
  16. package/defaults/ontology.ts +15 -15
  17. package/defaults/package.json +26 -22
  18. package/defaults/site/package.json +40 -0
  19. package/defaults/site/storage/filestores/settings-production-template.jsonld +129 -0
  20. package/defaults/site/web/.htaccess +19 -0
  21. package/defaults/site/web/favicon.png +0 -0
  22. package/defaults/site/web/img/placeholder.jpg +0 -0
  23. package/lib/cli.js +1070 -0
  24. package/lib/config-grunt.js +244 -0
  25. package/lib/config-webpack.js +267 -0
  26. package/{index.js → lib/index.js} +8 -4
  27. package/lib/interfaces.js +2 -0
  28. package/lib/plugins/declaration-plugin.js +206 -0
  29. package/lib/plugins/externalise-modules.js +175 -0
  30. package/{plugins → lib/plugins}/watch-run.js +0 -0
  31. package/lib/utils.js +127 -0
  32. package/package.json +28 -23
  33. package/{cli.js → src/cli.js} +54 -93
  34. package/src/config-grunt.js +263 -0
  35. package/src/config-webpack.js +281 -0
  36. package/src/index.js +22 -0
  37. package/src/interfaces.js +2 -0
  38. package/{plugins → src/plugins}/declaration-plugin.js +3 -3
  39. package/{plugins → src/plugins}/externalise-modules.js +8 -6
  40. package/src/plugins/shapes-plugin.js +69 -0
  41. package/src/plugins/watch-run.js +47 -0
  42. package/src/utils.js +127 -0
  43. package/config-generator.js +0 -545
  44. package/defaults/.npmignore +0 -11
  45. package/defaults/Gruntfile.js +0 -16
  46. package/defaults/tsconfig-es5.json +0 -19
  47. package/defaults/tsconfig.json +0 -21
  48. package/utils.js +0 -17
package/README.md CHANGED
@@ -14,7 +14,8 @@ yarn add lincd-cli
14
14
  ```
15
15
 
16
16
  ### Usage
17
- type
17
+
18
+ type
18
19
 
19
20
  ```
20
21
  npm exec lincd help
@@ -1,5 +1,5 @@
1
1
  import {React,ReactComponent} from "@dacore/core/lib/shapes/ReactComponent";
2
- import {UriResource} from "@dacore/core/lib/models/UriResource";
2
+ import {UriResource} from "@dacore/core/lib/models";
3
3
  import ${projectName} from "../ontologies/${projectName}";
4
4
  import "./Index.scss";
5
5
  import style from "./Index.scss.json";
@@ -1,12 +1,12 @@
1
- import {Core} from "@dacore/core/lib/shapes/Core";
2
- import {UriResource} from "@dacore/core/lib/models/UriResource";
3
- import {JSONLD} from "@dacore/core/lib/utils/JSONLD";
4
- import * as ${underscore_ontology_name} from "./ontologies/${ontology_name}"
5
- import * as Index from "./views/Index"
6
-
7
- declare var require: any;
8
- var _dataPromise = JSONLD.parse(require('../data/data.json'),true,true) as Promise<any>;
9
-
10
- var moduleResource: UriResource = UriResource.getOrCreate("${uri_base}/module/${module_name}");
11
- Core.app().registerModule("${module_name}",this,moduleResource,_dataPromise,[${underscore_ontology_name}._parsePromise]);
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 "./ontologies/${ontology_name}"
5
+ import * as Index from "./views/Index"
6
+
7
+ declare var require: any;
8
+ var _dataPromise = JSONLD.parse(require('../data/data.json'),true,true) as Promise<any>;
9
+
10
+ var moduleResource: UriResource = UriResource.getOrCreate("${uri_base}/module/${module_name}");
11
+ Core.app().registerModule("${module_name}",this,moduleResource,_dataPromise,[${underscore_ontology_name}._parsePromise]);
12
12
  export {${underscore_ontology_name},Index};
@@ -1,16 +1,16 @@
1
- import {UriResource} from "@dacore/core/lib/models/UriResource";
2
-
3
- declare var require:any;
4
- import {JSONLD} from "@dacore/core/lib/utils/JSONLD";
5
- var base:string = "${uri_base}/ontology/${ontology_name}/";
6
- export var _ontologyResource:UriResource = UriResource.getOrCreate(base);
7
-
8
- var json = require('../../data/ontologies/${ontology_name}.json');
9
- export var _parsePromise:[UriResource,Promise<any>] = [_ontologyResource,JSONLD.parse(json,true,true) as Promise<any>];
10
-
11
- //add your ontology resources here
12
- export var Index:UriResource = UriResource.getOrCreate(base+"Index");
13
-
14
- //make sure every node is also exported here
15
- var ${camel_ontology_name} = {Index};
1
+ import {UriResource} from "@dacore/core/lib/models";
2
+
3
+ declare var require:any;
4
+ import {JSONLD} from "@dacore/core/lib/utils/JSONLD";
5
+ var base:string = "${uri_base}/ontology/${ontology_name}/";
6
+ export var _ontologyResource:UriResource = UriResource.getOrCreate(base);
7
+
8
+ var json = require('../../data/ontologies/${ontology_name}.json');
9
+ export var _parsePromise:[UriResource,Promise<any>] = [_ontologyResource,JSONLD.parse(json,true,true) as Promise<any>];
10
+
11
+ //add your ontology resources here
12
+ export var Index:UriResource = UriResource.getOrCreate(base+"Index");
13
+
14
+ //make sure every node is also exported here
15
+ var ${camel_ontology_name} = {Index};
16
16
  export default ${camel_ontology_name};
@@ -1,4 +1,4 @@
1
- **/node_modules
2
- .idea
3
- lib
1
+ **/node_modules
2
+ .idea
3
+ lib
4
4
  builds
package/defaults/index.ts CHANGED
@@ -1,13 +1,13 @@
1
- import {Core} from "@dacore/core/lib/shapes/Core";
2
- import {UriResource} from "@dacore/core/lib/models/UriResource";
3
- import {JSONLD} from "@dacore/core/lib/utils/JSONLD";
4
- import * as ${underscore_ontology_name} from "./ontologies/${ontology_name}"
5
- //import * as viewName from "./views/viewName"
6
- //import * as typeName from "./shapes/typeName"
7
-
8
- declare var require:any;
9
- var _dataPromise = JSONLD.parse(require('../data/data.json'),true,true) as Promise<any>;
10
-
11
- var moduleResource:UriResource = UriResource.getOrCreate("${uri_base}/module/${module_name}");
12
- Core.app().registerModule("${module_name}",this,moduleResource,_dataPromise,[${underscore_ontology_name}._parsePromise]);
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 "./ontologies/${ontology_name}"
5
+ //import * as viewName from "./views/viewName"
6
+ //import * as typeName from "./shapes/typeName"
7
+
8
+ declare var require:any;
9
+ var _dataPromise = JSONLD.parse(require('../data/data.json'),true,true) as Promise<any>;
10
+
11
+ var moduleResource:UriResource = UriResource.getOrCreate("${uri_base}/module/${module_name}");
12
+ Core.app().registerModule("${module_name}",this,moduleResource,_dataPromise,[${underscore_ontology_name}._parsePromise]);
13
13
  export {${underscore_ontology_name}};
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "${module_name}",
3
+ "displayName": "${module_name}",
4
+ "version": "0.1.0",
5
+ "description": "",
6
+ "lincd": true,
7
+ "main": "lib/index.js",
8
+ "types": "dist/${module_name}.d.ts",
9
+ "author": "",
10
+ "license": "ISC",
11
+ "scripts": {
12
+ "build": "npm exec lincd build",
13
+ "dev": "npm exec lincd dev",
14
+ "prepublishOnly": "npm exec lincd build production",
15
+ "postpublish": "npm exec lincd publish"
16
+ },
17
+ "keywords": [
18
+ "lincd",
19
+ "linked data",
20
+ "interoperable",
21
+ "semantic web",
22
+ "web3"
23
+ ],
24
+ "dependencies": {
25
+ "lincd": "^0.2"
26
+ },
27
+ "devDependencies": {
28
+ "lincd-cli": "^0.1"
29
+ }
30
+ }
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import {ReactComponent} from 'lincd/lib/shapes/ReactComponent';
3
+ import {ExampleShapeClass} from '../shapes/ExampleShapeClass';
4
+ import {linkedComponent} from '../module';
5
+
6
+ /**
7
+ * By linking this component to a Shape class (a class that extends Shape) you ensure this.source will be an instance of that class
8
+ */
9
+ @linkedComponent(ExampleShapeClass)
10
+ //for correct typings, please provide the same class as third type parameter of ReactComponent, after property & state interfaces
11
+ export class ExampleComponent extends ReactComponent<
12
+ any,
13
+ any,
14
+ ExampleShapeClass
15
+ > {
16
+ render() {
17
+ let exampleInstance = this.source;
18
+
19
+ //get the name of this item from the graph
20
+ return <h1>Hello {exampleInstance.name}!</h1>;
21
+ }
22
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "@context": {
3
+ "dc": "http://purl.org/dc/elements/1.1/",
4
+ "owl": "http://www.w3.org/2002/07/owl#",
5
+ "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
6
+ "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
7
+ "test": "http://www.example.com/"
8
+ },
9
+ "@graph": [
10
+ {
11
+ "@id": "example:ExampleClass",
12
+ "@type": "rdfs:Class",
13
+ "rdfs:comment": "This is an example class. You can remove or rename it",
14
+ "rdfs:isDefinedBy": {
15
+ "@id": "example:"
16
+ },
17
+ "rdfs:label": "Example Class"
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1 @@
1
+ export var json: string;
@@ -0,0 +1,7 @@
1
+ import './ontologies/example-ontology';
2
+
3
+ //SHAPES FIRST
4
+ import './shapes/ExampleShapeClass';
5
+
6
+ //THEN COMPONENTS
7
+ import './components/ExampleComponent';
@@ -0,0 +1,9 @@
1
+ import {linkedModule} from 'lincd/lib/utils/Module';
2
+ export const {
3
+ linkedComponent,
4
+ linkedShape,
5
+ linkedUtil,
6
+ linkedOntology,
7
+ registerModuleExport,
8
+ moduleExports,
9
+ } = linkedModule('${module_name}');
@@ -0,0 +1,33 @@
1
+ import {NamedNode} from 'lincd/lib/models';
2
+ import {JSONLD} from 'lincd-jsonld/lib/JSONLD';
3
+ import {createNameSpace} from 'lincd/lib/utils/NameSpace';
4
+ import {linkedOntology} from '../module';
5
+
6
+ export var loadData = () => {
7
+ return import('../data/example-ontology.json').then((data) =>
8
+ JSONLD.parse(data),
9
+ );
10
+ };
11
+
12
+ export var ns = createNameSpace('${uri_base}');
13
+
14
+ //It's recommended to export a NamedNode for the ontology itself as well
15
+ export var _self: NamedNode = ns('');
16
+
17
+ //The main goal though of this file is to export a reference to NamedNode with the correct URI
18
+ // for all the entities (Classes and properties) in the ontology
19
+ export var ExampleClass: NamedNode = ns('ExampleClass');
20
+ export var exampleName: NamedNode = ns('exampleName');
21
+
22
+ export const exampleOntology = {
23
+ ExampleClass,
24
+ exampleName,
25
+ };
26
+
27
+ //finally, we pass on all the exports, plus the namespace, prefix and data loading function
28
+ // as we register this ontology in the LINCD tree
29
+ import * as _this from './example-ontology';
30
+
31
+ //as third parameter, provide a prefix (string) that can be used to refer to the full ontology URL.
32
+ //for example: 'schema' refers to https://www.schema.org/
33
+ linkedOntology(_this, ns, 'exampl', loadData);
@@ -0,0 +1,30 @@
1
+ import {Shape} from 'lincd/lib/shapes/Shape';
2
+ import {NamedNode} from 'lincd/lib/models';
3
+ import {linkedShape} from '../module';
4
+ import {literalProperty} from 'lincd/lib/utils/ShapeDecorators';
5
+ import {Literal} from 'lincd/lib/models';
6
+ import {schema} from 'lincd-schema/lib/ontologies/schema';
7
+ import {exampleOntology} from '../ontologies/example-ontology';
8
+
9
+ @linkedShape
10
+ export class ExampleShapeClass extends Shape {
11
+ /**
12
+ * indicates that instances of this shape need to have this rdf.type
13
+ */
14
+ static targetClass: NamedNode = exampleOntology.ExampleClass;
15
+
16
+ /**
17
+ * instances of this shape need to have exactly one value defined for the given property
18
+ */
19
+ @literalProperty({
20
+ path: exampleOntology.exampleName,
21
+ required: true,
22
+ maxCount: 1,
23
+ })
24
+ get name() {
25
+ return this.getValue(exampleOntology.exampleName);
26
+ }
27
+ set name(val: string) {
28
+ this.overwrite(exampleOntology.exampleName, new Literal(val));
29
+ }
30
+ }
@@ -1,16 +1,16 @@
1
- import {UriResource} from "@dacore/core/lib/models/UriResource";
2
-
3
- declare var require:any;
4
- import {JSONLD} from "@dacore/core/lib/utils/JSONLD";
5
- var base:string = "${uri_base}/ontology/${ontology_name}/";
6
- export var _ontologyResource:UriResource = UriResource.getOrCreate(base);
7
-
8
- var json = require('../../data/ontologies/${ontology_name}.json');
9
- export var _parsePromise:[UriResource,Promise<any>] = [_ontologyResource,JSONLD.parse(json,true,true) as Promise<any>];
10
-
11
- //add your ontology resources here
12
- // export var node:UriResource = UriResource.getOrCreate(base+"node");
13
-
14
- //make sure every node is also exported here
15
- var ${camel_ontology_name} = {};
1
+ import {UriResource} from "@dacore/core/lib/models";
2
+
3
+ declare var require:any;
4
+ import {JSONLD} from "@dacore/core/lib/utils/JSONLD";
5
+ var base:string = "${uri_base}/ontology/${ontology_name}/";
6
+ export var _ontologyResource:UriResource = UriResource.getOrCreate(base);
7
+
8
+ var json = require('../../data/ontologies/${ontology_name}.json');
9
+ export var _parsePromise:[UriResource,Promise<any>] = [_ontologyResource,JSONLD.parse(json,true,true) as Promise<any>];
10
+
11
+ //add your ontology resources here
12
+ // export var node:UriResource = UriResource.getOrCreate(base+"node");
13
+
14
+ //make sure every node is also exported here
15
+ var ${camel_ontology_name} = {};
16
16
  export default ${camel_ontology_name};
@@ -1,24 +1,28 @@
1
1
  {
2
- "name": "@dacore/",
3
- "license": "UNLICENSED",
4
- "version": "0.1.0",
5
- "description": "",
6
- "main": "lib/index.js",
7
- "scripts": {
8
- "build": "dacore build"
9
- },
10
- "keywords": [
11
- "dacore",
12
- "semantu",
13
- "semantic",
14
- "web"
15
- ],
16
- "author": "",
17
- "license": "ISC",
18
- "dependencies": {
19
- "@dacore/core": "1.x"
20
- },
21
- "devDependencies": {
22
- "@dacore/build-tools": "1.x"
23
- }
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
+ }
24
28
  }
@@ -0,0 +1,40 @@
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
+ }
@@ -0,0 +1,129 @@
1
+ {
2
+ "@context": {
3
+ "owl": "http://www.w3.org/2002/07/owl#",
4
+ "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
5
+ "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
6
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
7
+ "core": "http://data.dacore.org/ontologies/core/",
8
+ "module": "http://data.dacore.org/ontologies/module/",
9
+ "storage": "http://data.dacore.org/ontologies/storage/",
10
+ "rdf4j": "http://data.dacore.org/ontologies/rdf4j/",
11
+ "node-core": "http://data.dacore.org/ontologies/node-core/",
12
+ "server-core": "http://data.dacore.org/ontologies/server-core/",
13
+ "browser-core": "http://data.dacore.org/ontologies/browser-core/"
14
+ },
15
+ "@graph": [
16
+ {
17
+ "@id": "dacore://store/main",
18
+ "@type": [
19
+ "rdf4j:RDF4JStore"
20
+ ],
21
+ "storage:publicEndPoint": [
22
+ {
23
+ "@value": "http://127.0.0.1:7200/repositories/${repositoryName}"
24
+ }
25
+ ]
26
+ },
27
+ {
28
+ "@id": "dacore://system",
29
+ "@type": "server-core:ServerCore",
30
+ "rdfs:label" : "${projectName}",
31
+ "server-core:serves": {
32
+ "@id": "${uriBase}"
33
+ },
34
+ "server-core:port": "${port}",
35
+ "core:uriBase": "${uriBase}",
36
+ "storage:defaultStore": {
37
+ "@id": "dacore://store/main"
38
+ },
39
+ "node-core:includeAtStartup": [
40
+ "@dacore/node-core",
41
+ "@dacore/rdf4j"
42
+ ],
43
+ "core:adminEmail": "${email}",
44
+ "core:deployment": "development",
45
+ "core:requiresSetup": {
46
+ "@type": "xsd:boolean",
47
+ "@value": "true"
48
+ },
49
+ "core:defaultModule": {
50
+ "@id": "${defaultModuleUri}"
51
+ },
52
+ "core:defaultOntology": {
53
+ "@id": "${defaultOntologyUri}"
54
+ },
55
+ "module:maintainsModule": [
56
+ {
57
+ "@id": "${defaultModuleUri}"
58
+ }
59
+ ],
60
+ "module:installedModule": [
61
+ {
62
+ "@id": "http://data.dacore.org/module/core"
63
+ },
64
+ {
65
+ "@id": "http://data.dacore.org/module/browser-core"
66
+ },
67
+ {
68
+ "@id": "http://data.dacore.org/module/core-editors"
69
+ },
70
+ {
71
+ "@id": "http://data.dacore.org/module/coreviews"
72
+ },
73
+ {
74
+ "@id": "http://data.dacore.org/module/icons"
75
+ },
76
+ {
77
+ "@id": "http://data.dacore.org/module/website"
78
+ },
79
+ {
80
+ "@id": "http://data.dacore.org/module/bootstrap"
81
+ },
82
+ {
83
+ "@id": "http://data.dacore.org/module/core-ui"
84
+ },
85
+ {
86
+ "@id": "http://data.dacore.org/module/forms"
87
+ },
88
+ {
89
+ "@id": "http://data.dacore.org/module/dcterms"
90
+ },
91
+ {
92
+ "@id": "http://data.dacore.org/module/html"
93
+ },
94
+ {
95
+ "@id": "http://data.dacore.org/module/rdf4j"
96
+ },
97
+ {
98
+ "@id": "http://data.dacore.org/module/sparql"
99
+ },
100
+ {
101
+ "@id": "http://data.dacore.org/module/typescript"
102
+ },
103
+ {
104
+ "@id": "http://data.dacore.org/module/cli"
105
+ },
106
+ {
107
+ "@id": "http://data.dacore.org/module/dacode"
108
+ },
109
+ {
110
+ "@id": "http://data.dacore.org/module/server-core"
111
+ },
112
+ {
113
+ "@id": "http://data.dacore.org/module/node-core"
114
+ },
115
+ {
116
+ "@id": "http://data.dacore.org/module/admin"
117
+ }
118
+ ]
119
+ },
120
+ {
121
+ "@id": "${uriBase}",
122
+ "@type": "browser-core:BrowserCore",
123
+ "core:uriBase": "${uriBase}",
124
+ "core:deployment": "development",
125
+ "browser-core:publicRoot": "${publicRoot}",
126
+ "browser-core:browserTitle": "${projectName}"
127
+ }
128
+ ]
129
+ }
@@ -0,0 +1,19 @@
1
+ # enable symbolic links
2
+ Options +FollowSymLinks
3
+
4
+ RewriteEngine On
5
+ #RewriteLogLevel 8
6
+
7
+ RewriteCond %{REQUEST_FILENAME} !-f
8
+ RewriteCond %{REQUEST_FILENAME} !-d
9
+ RewriteCond %{REQUEST_FILENAME} !-l
10
+
11
+ #rewrite bundle urls to the actual files in node_modules
12
+ RewriteRule ^js/modules/dacore.([\w\-\_]+).(.[\w.]*) node_modules/@dacore/$1/builds/dacore.$1.$2 [NC]
13
+ RewriteRule ^css/modules/dacore.([\w\-\_]+).(.[\w.]*) node_modules/@dacore/$1/builds/dacore.$1.$2 [NC]
14
+ RewriteRule ^js/modules/@dacore/([\w\-\_]+)/(.*) node_modules/@dacore/$1/includes/$2 [NC]
15
+ RewriteRule ^css/modules/@dacore/([\w\-\_]+)/(.*) node_modules/@dacore/$1/includes/$2 [NC]
16
+
17
+ #rewrite sourcemap URLS whichCon do not really exist to the actual files
18
+ RewriteRule ^js/modules/(.*)\.(tsx|jsx|ts|js) node_modules/@dacore/$1.$2 [ENV=JS:true]
19
+ Header set Content-Type "application/javascript" env=JS
Binary file