Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # jest-changed-files
  2. A module used internally by Jest to check which files have changed since you last committed in git or hg.
  3. ## Install
  4. ```sh
  5. $ npm install --save jest-changed-files
  6. ```
  7. ## API
  8. ### `getChangedFilesForRoots(roots: <Array<string>>, options: ?object): Promise<?object>`
  9. Get the list of files and repos that have changed since the last commit.
  10. #### Parameters
  11. roots: Array of string paths gathered from [jest roots](https://jestjs.io/docs/configuration#roots-arraystring).
  12. options: Object literal with keys
  13. - lastCommit: boolean
  14. - withAncestor: boolean
  15. ### findRepos(roots: <Array<string>>): Promise<?object>
  16. Get a set of git and hg repositories.
  17. #### Parameters
  18. roots: Array of string paths gathered from [jest roots](https://jestjs.io/docs/configuration#roots-arraystring).
  19. ## Usage
  20. ```javascript
  21. import {getChangedFilesForRoots} from 'jest-changed-files';
  22. getChangedFilesForRoots(['/path/to/test'], {
  23. lastCommit: true,
  24. withAncestor: true,
  25. }).then(files => {
  26. /*
  27. {
  28. repos: [],
  29. changedFiles: []
  30. }
  31. */
  32. });
  33. ```
  34. ```javascript
  35. import {findRepos} from 'jest-changed-files';
  36. findRepos(['/path/to/test']).then(repos => {
  37. /*
  38. {
  39. git: Set<Path>,
  40. hg: Set<Path>
  41. }
  42. */
  43. });
  44. ```