Adds a comment to a pull request with areas of your code to test
Last updated 4 months ago by shopify-dep .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @shopify/splash 
SYNC missed versions from official npm registry.

splash (beta)

splash is utilities library that helps with parsing and building a dependency graph of a Shopify JS project

It is used by consuming projects to identify dependencies and aid in manual testing.



  fileName: string;
  dependencies: string[];


getDependencies(codebaseGlob: string, ignoreGlob: string, fileGlobs: string[]): Promise<Dependencies>

This is the main function of the library. It will build a dependency graph for all files within the codebaseGlob, ignoring the files in ignoreGlob, and then build the dependency tree for all files in fileGlobs. It returns a promise that returns an array of objects containing the dependencies for each of the files in fileGlobs.

codebaseGlob: string: A glob for the codebase that you want to build the dependency graph for. Example: src/**/*.tsx

ignoreGlob: string: A glob for the codebase that you want to build the dependency graph for. Example src/**/test/*

fileGlobs: string[]: A list of globs for all the files to build the dependency tree for. Example: ['src/Button/Button.tsx', 'src/List/List.tsx']

getGitStagedFiles(scope: string): Promise<string[]>

This is a helper function to run Splash locally. It runs git status and outputs a list of files modified. Call it, and use its output as the fileGlobs input for the getDependencies function.

scope: string: A filepath to filter filenames. For example, if the scope is src/ then only files starting with src/ would be included in the output. This means the file .eslintrc would be filtered from the output. Example: src/

Current Tags

  • 0.0.12                                ...           latest (4 months ago)

6 Versions

  • 0.0.12                                ...           4 months ago
  • 0.0.10                                ...           4 months ago
  • 0.0.8                                ...           7 months ago
  • 0.0.6                                ...           7 months ago
  • 0.0.5                                ...           7 months ago
  • 0.0.4                                ...           7 months ago
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (7)
Dev Dependencies (5)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |