File tree Expand file tree Collapse file tree 5 files changed +27
-21
lines changed Expand file tree Collapse file tree 5 files changed +27
-21
lines changed Original file line number Diff line number Diff line change 1
1
/target
2
2
* .DS_Store
3
3
** /node_modules
4
- .idea
4
+ .idea
5
+ reader /ts /src /* .js
Original file line number Diff line number Diff line change
1
+ import { DataType , FlowType , RuntimeFunctionDefinition } from "@code0-tech/sagittarius-graphql-types" ;
2
+
3
+ export enum MetaType {
4
+ FlowType = 'FlowType' ,
5
+ DataType = 'DataType' ,
6
+ RuntimeFunction = 'RuntimeFunction' ,
7
+ }
8
+
9
+ export interface Meta {
10
+ name : string ;
11
+ type : MetaType ;
12
+ data : string [ ] ;
13
+ }
14
+
15
+ export interface Feature {
16
+ name : string ;
17
+ dataTypes : DataType [ ] ;
18
+ flowTypes : FlowType [ ] ;
19
+ runtimeFunctions : RuntimeFunctionDefinition [ ] ;
20
+ }
Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.1" ,
4
4
"description" : " Reader for Code0-Definitions" ,
5
5
"main" : " index.js" ,
6
+ "type" : " module" ,
6
7
"scripts" : {
8
+ "build" : " tsc" ,
7
9
"test" : " echo \" Error: no test specified\" && exit 1"
8
10
},
9
11
"author" : " " ,
Original file line number Diff line number Diff line change 1
- import { Meta , MetaType , Reader } from './reader' ;
1
+ import { Reader } from './reader' ;
2
2
import { DataType , FlowType , RuntimeFunctionDefinition } from "@code0-tech/sagittarius-graphql-types" ;
3
-
4
- export interface Feature {
5
- name : string ;
6
- dataTypes : DataType [ ] ;
7
- flowTypes : FlowType [ ] ;
8
- runtimeFunctions : RuntimeFunctionDefinition [ ] ;
9
- }
3
+ import { Feature , Meta , MetaType } from "../index" ;
10
4
11
5
export const Definition = ( rootPath : string ) : Feature [ ] => {
12
6
const meta = Reader ( rootPath ) ;
Original file line number Diff line number Diff line change 1
1
import * as fs from 'fs' ;
2
2
import * as path from 'path' ;
3
-
4
- export enum MetaType {
5
- FlowType = 'FlowType' ,
6
- DataType = 'DataType' ,
7
- RuntimeFunction = 'RuntimeFunction' ,
8
- }
9
-
10
- export interface Meta {
11
- name : string ;
12
- type : MetaType ;
13
- data : string [ ] ;
14
- }
3
+ import { Meta , MetaType } from "../index" ;
15
4
16
5
export const Reader = ( rootPath : string ) : Meta [ ] => {
17
6
const result : Meta [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments