Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to monorepo, split into 3 packages #85

Merged
merged 8 commits into from
Apr 9, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix tests, update snapshots
  • Loading branch information
adidahiya committed Apr 9, 2019
commit 072bb315ba8fa41fe814da477609369ebb7004bc
2 changes: 1 addition & 1 deletion packages/compiler/jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"js"
],
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
".(ts|tsx)": "ts-jest"
},
"testRegex": "\\.(test|spec)\\.ts$"
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ Object {
},
],
"returnType": "Animal",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/classes.ts#L9",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/classes.ts#L9",
"type": "(noise: string) => Animal",
},
],
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/classes.ts#L9",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/classes.ts#L9",
},
"documentation": Object {
"contents": Array [
Expand Down Expand Up @@ -120,11 +120,11 @@ repository.",
"name": "bark",
"parameters": Array [],
"returnType": "string",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/classes.ts#L13",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/classes.ts#L13",
"type": "() => string",
},
],
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/classes.ts#L13",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/classes.ts#L13",
},
Object {
"documentation": undefined,
Expand Down Expand Up @@ -187,16 +187,16 @@ repository.",
},
],
"returnType": "void",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/classes.ts#L21",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/classes.ts#L21",
"type": "(food: string) => void",
},
],
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/classes.ts#L21",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/classes.ts#L21",
},
],
"name": "Animal",
"properties": Array [],
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/classes.ts#L9",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/classes.ts#L9",
},
"Dog": Object {
"constructorType": Object {
Expand Down Expand Up @@ -225,11 +225,11 @@ repository.",
"name": "new Dog",
"parameters": Array [],
"returnType": "Dog",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/classes.ts#L33",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/classes.ts#L33",
"type": "() => Dog",
},
],
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/classes.ts#L33",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/classes.ts#L33",
},
"documentation": undefined,
"extends": Array [
Expand Down Expand Up @@ -284,11 +284,11 @@ repository.",
"name": "bark",
"parameters": Array [],
"returnType": "string",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/classes.ts#L13",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/classes.ts#L13",
"type": "() => string",
},
],
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/classes.ts#L13",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/classes.ts#L13",
},
Object {
"documentation": undefined,
Expand Down Expand Up @@ -351,16 +351,16 @@ repository.",
},
],
"returnType": "void",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/classes.ts#L21",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/classes.ts#L21",
"type": "(food: string) => void",
},
],
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/classes.ts#L21",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/classes.ts#L21",
},
],
"name": "Dog",
"properties": Array [],
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/classes.ts#L33",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/classes.ts#L33",
},
}
`;
Expand Down Expand Up @@ -407,7 +407,7 @@ Object {
},
"kind": "enum member",
"name": "ADD",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/enums.ts#L17",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/enums.ts#L17",
},
Object {
"defaultValue": "\\"minus\\"",
Expand All @@ -426,7 +426,7 @@ Object {
},
"kind": "enum member",
"name": "MINUS",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/enums.ts#L21",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/enums.ts#L21",
},
Object {
"defaultValue": "\\"plus\\"",
Expand All @@ -445,7 +445,7 @@ Object {
},
"kind": "enum member",
"name": "PLUS",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/enums.ts#L20",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/enums.ts#L20",
},
Object {
"defaultValue": "\\"remove\\"",
Expand All @@ -464,11 +464,11 @@ Object {
},
"kind": "enum member",
"name": "REMOVE",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/enums.ts#L18",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/enums.ts#L18",
},
],
"name": "IconName",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/enums.ts#L16",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/enums.ts#L16",
},
"Intent": Object {
"documentation": Object {
Expand Down Expand Up @@ -510,7 +510,7 @@ Object {
},
"kind": "enum member",
"name": "DANGER",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/enums.ts#L12",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/enums.ts#L12",
},
Object {
"defaultValue": "\\"primary\\"",
Expand All @@ -529,7 +529,7 @@ Object {
},
"kind": "enum member",
"name": "PRIMARY",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/enums.ts#L9",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/enums.ts#L9",
},
Object {
"defaultValue": "\\"success\\"",
Expand All @@ -548,7 +548,7 @@ Object {
},
"kind": "enum member",
"name": "SUCCESS",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/enums.ts#L10",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/enums.ts#L10",
},
Object {
"defaultValue": "\\"warning\\"",
Expand All @@ -567,11 +567,11 @@ Object {
},
"kind": "enum member",
"name": "WARNING",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/enums.ts#L11",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/enums.ts#L11",
},
],
"name": "Intent",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/enums.ts#L8",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/enums.ts#L8",
},
}
`;
Expand Down Expand Up @@ -624,7 +624,7 @@ Object {
"inheritedFrom": undefined,
"kind": "property",
"name": "disabled",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L11",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L11",
"type": "undefined | false | true",
},
Object {
Expand Down Expand Up @@ -652,7 +652,7 @@ Object {
"inheritedFrom": undefined,
"kind": "property",
"name": "iconName",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L14",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L14",
"type": "IconName",
},
Object {
Expand Down Expand Up @@ -680,7 +680,7 @@ Object {
"inheritedFrom": undefined,
"kind": "property",
"name": "onClick",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L17",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L17",
"type": "(event: MouseEvent) => void",
},
Object {
Expand Down Expand Up @@ -708,11 +708,11 @@ Object {
"inheritedFrom": undefined,
"kind": "property",
"name": "text",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L20",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L20",
"type": "string",
},
],
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L9",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L9",
},
"IButtonProps": Object {
"documentation": undefined,
Expand Down Expand Up @@ -768,7 +768,7 @@ Object {
},
],
"returnType": "any",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L53",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L53",
"type": "{ [x: string]: any }",
},
"kind": "interface",
Expand Down Expand Up @@ -802,7 +802,7 @@ This is equivalent to setting \`className=\\"pt-active\\"\`.",
"inheritedFrom": undefined,
"kind": "property",
"name": "active",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L29",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L29",
"type": "undefined | false | true",
},
Object {
Expand Down Expand Up @@ -830,7 +830,7 @@ This is equivalent to setting \`className=\\"pt-active\\"\`.",
"inheritedFrom": "IActionProps.disabled",
"kind": "property",
"name": "disabled",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L11",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L11",
"type": "undefined | false | true",
},
Object {
Expand Down Expand Up @@ -858,7 +858,7 @@ This is equivalent to setting \`className=\\"pt-active\\"\`.",
"inheritedFrom": undefined,
"kind": "property",
"name": "elementRef",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L32",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L32",
"type": "undefined | (ref: HTMLElement) => any",
},
Object {
Expand Down Expand Up @@ -886,7 +886,7 @@ This is equivalent to setting \`className=\\"pt-active\\"\`.",
"inheritedFrom": "IActionProps.iconName",
"kind": "property",
"name": "iconName",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L14",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L14",
"type": "IconName",
},
Object {
Expand Down Expand Up @@ -916,7 +916,7 @@ The width of the button is not affected by the value of this prop.",
"inheritedFrom": undefined,
"kind": "property",
"name": "loading",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L46",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L46",
"type": "undefined | false | true",
},
Object {
Expand Down Expand Up @@ -944,7 +944,7 @@ The width of the button is not affected by the value of this prop.",
"inheritedFrom": "IActionProps.onClick",
"kind": "property",
"name": "onClick",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L17",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L17",
"type": "(event: MouseEvent) => void",
},
Object {
Expand Down Expand Up @@ -972,7 +972,7 @@ The width of the button is not affected by the value of this prop.",
"inheritedFrom": undefined,
"kind": "property",
"name": "rightIconName",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L38",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L38",
"type": "IconName",
},
Object {
Expand Down Expand Up @@ -1000,7 +1000,7 @@ The width of the button is not affected by the value of this prop.",
"inheritedFrom": "IActionProps.text",
"kind": "property",
"name": "text",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L20",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L20",
"type": "string",
},
Object {
Expand Down Expand Up @@ -1030,11 +1030,11 @@ Note that this prop has no effect on \`AnchorButton\`; it only affects \`Button\
"inheritedFrom": undefined,
"kind": "property",
"name": "type",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L53",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L53",
"type": "undefined | string",
},
],
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L23",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L23",
},
"ICompiler": Object {
"documentation": Object {
Expand Down Expand Up @@ -1138,11 +1138,11 @@ callback to extract key from each item.",
},
],
"returnType": "{ [key: string]: T }",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L67",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L67",
"type": "(array: T[], getKey: (item: T) => string) => { [key: string]: T }",
},
],
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L67",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L67",
},
Object {
"documentation": undefined,
Expand Down Expand Up @@ -1229,11 +1229,11 @@ is.",
},
],
"returnType": "object",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L78",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L78",
"type": "(blockContent: string, reservedTagWords?: string[]) => object",
},
],
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L78",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L78",
},
Object {
"documentation": undefined,
Expand Down Expand Up @@ -1289,16 +1289,16 @@ is.",
},
],
"returnType": "string",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L83",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L83",
"type": "(markdown: string) => string",
},
],
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L83",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L83",
},
],
"name": "ICompiler",
"properties": Array [],
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L62",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L62",
},
"IconName": Object {
"documentation": undefined,
Expand All @@ -1316,7 +1316,7 @@ is.",
},
"kind": "type alias",
"name": "IconName",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/src/__tests__/__fixtures__/interfaces.ts#L7",
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/interfaces.ts#L7",
"type": "\\"add\\" | \\"remove\\" | \\"plus\\" | \\"minus\\"",
},
}
Expand Down
Loading