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 11/target
22* .DS_Store
33** /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 33 "version" : " 0.0.1" ,
44 "description" : " Reader for Code0-Definitions" ,
55 "main" : " index.js" ,
6+ "type" : " module" ,
67 "scripts" : {
8+ "build" : " tsc" ,
79 "test" : " echo \" Error: no test specified\" && exit 1"
810 },
911 "author" : " " ,
Original file line number Diff line number Diff line change 1- import { Meta , MetaType , Reader } from './reader' ;
1+ import { Reader } from './reader' ;
22import { 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" ;
104
115export const Definition = ( rootPath : string ) : Feature [ ] => {
126 const meta = Reader ( rootPath ) ;
Original file line number Diff line number Diff line change 11import * as fs from 'fs' ;
22import * 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" ;
154
165export const Reader = ( rootPath : string ) : Meta [ ] => {
176 const result : Meta [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments