Open
Conversation
…nto feature/fakeit-core-setup * 'release/v2.0.0' of https://github.com/bentonam/fakeit: Feature/flowtype support (#177)
…am/fakeit into feature/types * 'feature/fakeit-core-setup' of https://github.com/bentonam/fakeit: Refactored input trailingComma for all Simplified `make deep-clean` Added flow-typed npm libdefs to .gitignore Removed flow-typed libdefs Removed property that shouldn’t be there # Conflicts: # packages/fakeit-core/package.json
…nto feature/types * 'release/v2.0.0' of https://github.com/bentonam/fakeit: Feature/fakeit core setup (#178)
- Moves gulp to be a dev dependency - Fixed issue with `gulp-changed` so now it only compiles files that have actually changed instead of all the files - Added sourcemaps so that we can see where errors happen, also so that code coverage tool uses the src files not the dist
… feature/model * 'hotfix/gulp' of https://github.com/bentonam/fakeit: fixed a couple issues with gulp
…/model * 'dev' of https://github.com/bentonam/fakeit: Updated nyc config Updated travis to also test node 7, 8, 9 Updated Tests Added streams cli options Updated contacts model Removed docs and node-sass devDependencies Added initial support for streams Added docker-compose.yaml file
this formats errors to be more useful than they are by default.
This updates it to target node 6 so that there's less code that has to get transpiled for no reason. This also addes the `.babelrc` to the linting config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make sure that you merge the other PRs first because this PR is built off of those.
This is complete with tests
nyc ava --verbose packages/fakeit-core/testand it's pretty throughly documented.The way it will work is you import the Api into the cli package at the top then instantiate it and when you do that it will load any configs that have been set, as well as any plugins that have been installed.
Users can define options in a
fakeitfile.js,package.jsonunder thefakeitkey, as well as pass in arguments to thecli. The only option that thecliwill not handle is thepluginsoption, that's because it's not possible since we have to load the plugins before the cli is rendered so that any plugins that have a cli function are passed in and run correctly. This should not affect a single user since they have 4 other methods of including plugins.fakeitfile.jspackage.jsonfakeitkey{ "fakeit": { "plugins": [ "./some-relative-file.js", "some-installed-pacakge" ] } }package.jsondependencies,devDependencies, andpeerDependenciesare filtered through to find any packages that match@fakeit/(format|plugin)-.*{ "dependencies": { "@fakeit/format-json": "*" } }node_modulesdoes a glob search on thenode_modulesfolder for@fakeit/(format|plugin)-.*Finally all these ways are combined and reduced to a unique array and then required(if a string) and then run them.