Skip to content

Commit d91ac43

Browse files
authored
Remove mappings and collector script (#643)
1 parent 1b9f765 commit d91ac43

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+9
-8950
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ jobs:
3030
- name: Lint
3131
run: yarn lint
3232

33-
- name: Test Collector
34-
run: yarn upload:test
35-
3633
- name: Build
3734
run: yarn build
3835

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ This is a lerna/monorepo setup that is split up into types, native, core and ui
4040

4141
### SEED_DATA
4242

43-
You'll notice that most components will have `SEED_DATA` at the bottom of their files. This is how we incorporate components and props into Draftbit's property panel.
43+
Most components will have a `SEED_DATA` object. This is how we incorporate components and props into Draftbit's property panel.
4444

45-
The object at the bottom maps one to one to what the UI will look like in the panel. Here's an example of the "View" component:
45+
This object maps one to one to what the UI will look like in the panel. Here's an example of the "View" component:
4646

4747
![Draftbit Properties Panel](./images/view-properties-panel.png)
4848

@@ -68,7 +68,9 @@ Here's an example of what the SEED_DATA prop would look like:
6868

6969
Our legacy implementation included an object, like you see `pointerEvents` above. Moving forward, everything should be a function, like `createImageProp()`. The reason is that its easier to maintain and update across the board when features change inside the builder.
7070

71-
If you're having doubts, use a function. If that function doesn't exist, create it! All the functions live inside [packages/types/src/component-types](https://github.com/draftbit/react-native-jigsaw/blob/master/packages/types/src/component-types.ts)
71+
If you're having doubts, use a function. If that function doesn't exist, create it!
72+
73+
All the functions and SEED_DATA live inside the [draftbit repo](https://github.com/draftbit/draftbit/blob/master/component-mappings). The jigsaw repo currently only holds the components, the mapping logic is maintained within the draftbit repo.
7274

7375
## Linking
7476

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
"clean": "lerna run clean",
2323
"clean:modules": "lerna run clean:modules && rm -rf node_modules",
2424
"typescript": "tsc --composite false",
25-
"upload:run": "node ./scripts/collector.js",
26-
"upload:test": "bash ./scripts/test-collector.bash",
2725
"version:expo": "lerna version major --no-push",
2826
"version:major": "lerna version minor --no-push --exact",
2927
"version:minor": "lerna version patch --no-push --exact",

packages/core/src/mappings/Accordion.ts

Lines changed: 0 additions & 60 deletions
This file was deleted.

packages/core/src/mappings/AccordionItem.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

packages/core/src/mappings/ActionSheet.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/core/src/mappings/ActionSheetCancel.ts

Lines changed: 0 additions & 32 deletions
This file was deleted.

packages/core/src/mappings/ActionSheetItem.ts

Lines changed: 0 additions & 36 deletions
This file was deleted.

packages/core/src/mappings/ActivityIndicator.ts

Lines changed: 0 additions & 68 deletions
This file was deleted.

packages/core/src/mappings/AudioPlayer.ts

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)