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

[Tooling] yarn splash (beta) #2113

Merged
merged 40 commits into from
Sep 13, 2019
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
08b6744
First iteration of the observer CLI
kaelig Sep 10, 2019
44da583
Load .ts files too
kaelig Sep 10, 2019
9912178
Add graph script
Sep 11, 2019
9d511ba
Enable compilation of .ts files
kaelig Sep 11, 2019
3adc842
Remove tinycolor2 dependency
kaelig Sep 11, 2019
a9da56e
Make filter more portable across environments
kaelig Sep 11, 2019
be17151
Add scoping to getGitStagedFiles
kaelig Sep 11, 2019
b0c0503
Try to use functions from treebuilder.ts
kaelig Sep 11, 2019
90801ff
Add types
Sep 11, 2019
5fde385
Fix filter
kaelig Sep 11, 2019
acd9c2e
Formatting
Sep 11, 2019
370d844
Remove absolute part of the path
kaelig Sep 11, 2019
8cb4113
Plug data from git status and improve listing
kaelig Sep 11, 2019
f7bfb82
Rename script to yarn splash, add watcher mode
kaelig Sep 12, 2019
61b233e
Align summary text to the right
kaelig Sep 12, 2019
e50011a
Change filtering
Sep 12, 2019
204bb60
Add temporary workaround to the skipIndexFile function
kaelig Sep 12, 2019
7ce1a5e
Move treebuilder.ts to scripts/splash
kaelig Sep 12, 2019
f10ffd3
Merge branch 'ink-cli' of github.com:Shopify/polaris-react into ink-cli
kaelig Sep 12, 2019
7493e70
Remove skipIndexFile
kaelig Sep 12, 2019
fb5019b
Add docs
kaelig Sep 12, 2019
0db5a4b
Add changelog item
kaelig Sep 12, 2019
72bc4ac
Merge branch 'master' of github.com:Shopify/polaris-react into ink-cli
kaelig Sep 12, 2019
230d07c
Add mention that the watcher is still alpha
kaelig Sep 12, 2019
961e3ae
Remove unused type dependency
kaelig Sep 12, 2019
4028392
Add missing space
kaelig Sep 12, 2019
af429e9
Add missing space
kaelig Sep 12, 2019
f397782
Verifies the index file is in a component folder
kaelig Sep 12, 2019
9d1873c
Account for .ts files
kaelig Sep 12, 2019
9b081de
Show utils.tsx files again
kaelig Sep 12, 2019
3502aef
Handle loading status properly
kaelig Sep 12, 2019
4a53045
Stop filtering index.ts files out
kaelig Sep 12, 2019
aed6ff3
Integrate with storybook
Sep 12, 2019
ec0fb8c
Make component grid layout responsive
kaelig Sep 12, 2019
12e60e6
Merge branch 'ink-cli' of github.com:Shopify/polaris-react into ink-cli
kaelig Sep 12, 2019
4a575dd
Delete watch mode
kaelig Sep 12, 2019
7dd8e0a
Update useEffects flow
Sep 12, 2019
7eeba2a
enum
Sep 13, 2019
768957f
Revert "enum"
kaelig Sep 13, 2019
1863788
Revert "Update useEffects flow"
kaelig Sep 13, 2019
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
8 changes: 8 additions & 0 deletions scripts/observer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import React from 'react';
import {Box, Text, Color, render} from 'ink';
import {getGitStagedFiles, getDependencies} from '../../treebuilder';

(async function() {
const stagedFiles = await getGitStagedFiles('src/');
console.log(stagedFiles);
const data = await getDependencies(/* how do I use this function? */);
kaelig marked this conversation as resolved.
Show resolved Hide resolved
console.log(data);
})();

const data = [
kaelig marked this conversation as resolved.
Show resolved Hide resolved
{
Expand Down