Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
1e63d6f
Added docker commands to Makefile
bentonam Jan 17, 2018
a2696cd
Added support for flow
bentonam Jan 17, 2018
1e436d4
Added debug as a peerDependency
bentonam Jan 17, 2018
db78eb6
Merge branch 'release/v2.0.0' of https://github.com/bentonam/fakeit i…
bentonam Jan 17, 2018
369a1ff
Updated config
bentonam Jan 18, 2018
5763e1f
Input Structure
bentonam Jan 18, 2018
1cd8c4b
Added flow-typed and libdefs
bentonam Jan 18, 2018
098f327
Moved docker-compose.yaml to plugin directory
bentonam Jan 18, 2018
4fdc6ae
Added flow-typed libdefs for input and file-loader
bentonam Jan 18, 2018
20d7e07
Added Input / FileLoader structure
bentonam Jan 18, 2018
77e6175
Updated sample loading in fakeit/core
bentonam Jan 18, 2018
80fcbf7
Removed property that shouldn’t be there
bentonam Jan 18, 2018
aee7db5
added the base setup for fakeit models
tjbenton Jan 24, 2018
d1c46cb
Removed flow-typed libdefs
bentonam Jan 25, 2018
8738a10
Added flow-typed npm libdefs to .gitignore
bentonam Jan 25, 2018
e534b74
Simplified `make deep-clean`
bentonam Jan 25, 2018
35f9584
trailingComma for all
bentonam Jan 25, 2018
4010444
Refactored input
bentonam Jan 25, 2018
8678203
Merge branch 'feature/fakeit-core-setup' of https://github.com/benton…
tjbenton Jan 25, 2018
8d2c380
Merge branch 'release/v2.0.0' of https://github.com/bentonam/fakeit i…
tjbenton Jan 25, 2018
ae39b3b
removed @fakeit/input
tjbenton Jan 25, 2018
187980a
fixed a couple issues with gulp
tjbenton Jan 26, 2018
434f61b
Merge branch 'hotfix/gulp' of https://github.com/bentonam/fakeit into…
tjbenton Jan 26, 2018
22363f0
changed max lines to be larger for test files
tjbenton Jan 26, 2018
49cee7d
added ava config
tjbenton Jan 26, 2018
20e496a
added validation and tests
tjbenton Jan 26, 2018
eab07f5
Merge branch 'dev' of https://github.com/bentonam/fakeit into feature…
tjbenton Jan 26, 2018
5867787
removed the pointless examples
tjbenton Jan 27, 2018
f510f0d
fixed the base filter function
tjbenton Jan 27, 2018
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
7 changes: 5 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"presets": ["env", "flow"],
"presets": ["env", "flow", "stage-0"],
"plugins": [
"external-helpers",
"transform-runtime"
"transform-runtime",
["transform-private", {
"pattern": "^_"
}]
]
}
38 changes: 36 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@
],
"no-undefined": "error",
"consistent-return": "off",
"import/extensions": "off"
"import/extensions": "off",
"no-underscore-dangle": "off"
},
"env": {
"node": true
Expand All @@ -174,7 +175,40 @@
"rules": {
"import/no-extraneous-dependencies": "off",
"id-length": "off",
"no-shadow": "off"
"no-shadow": "off",
"flowtype/boolean-style": "off",
"flowtype/define-flow-type": "off",
"flowtype/delimiter-dangle": "off",
"flowtype/generic-spacing": "off",
"flowtype/no-primitive-constructor-types": "off",
"flowtype/no-types-missing-file-annotation": "off",
"flowtype/no-weak-types": "off",
"flowtype/object-type-delimiter": "off",
"flowtype/require-parameter-type": "off",
"flowtype/require-return-type": "off",
"flowtype/require-valid-file-annotation": "off",
"flowtype/semi": "off",
"flowtype/space-after-type-colon": "off",
"flowtype/space-before-generic-bracket": "off",
"flowtype/space-before-type-colon": "off",
"flowtype/type-id-match": "off",
"flowtype/union-intersection-spacing": "off",
"flowtype/use-flow-type": "off",
"flowtype/valid-syntax": "off",
"newline-per-chained-call": [
"error",
{
"ignoreChainWithDepth": 3
}
],
"max-lines": [
"error",
{
"max": 600,
"skipBlankLines": true,
"skipComments": true
}
]
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ lint:

# formats your js code with prettier, then lints them with eslint
lint-js:
@prettier-eslint 'packages/*/+(src|app|test)/**/*.js' '*.js' --list-different --single-quote --trailing-comma all --write
@prettier-eslint 'packages/*/+(src|app|test)/**/*.js' '*.js' --list-different --single-quote --trailing-comma all --parser flow --write
@eslint --cache 'packages/*/+(src|app|test)/**/*.js' '*.js'

# formats your markdown files with prettier
Expand Down
3 changes: 3 additions & 0 deletions flow-typed/fakeit-input_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module '@fakeit/input' {
declare module.exports: any;
}
4 changes: 3 additions & 1 deletion gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ gulp.task('build', () => {

return gulp
.src(packages, { base })
.pipe($.sourcemaps.init())
.pipe($.plumber({
errorHandler (err) {
$.util.log(err.stack)
},
}))
.pipe($.changed('dist', {
.pipe($.changed(base, {
transformPath: swapSrcWithDist,
}))
.pipe(through.obj((file, enc, callback) => {
Expand All @@ -36,6 +37,7 @@ gulp.task('build', () => {
file.path = path.resolve(file.base, swapSrcWithDist(file.relative))
callback(null, file)
}))
.pipe($.sourcemaps.write('.'))
.pipe(gulp.dest(base))
})

Expand Down
22 changes: 19 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@
"babel-core": "^6.26.0",
"babel-eslint": "^8.2.1",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-private": "~0.1.3",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-preset-flow": "^6.23.0",
"babel-preset-stage-0": "~6.24.1",
"babel-register": "~6.26.0",
"chalk": "~2.3.0",
"eslint": "~4.15.0",
Expand All @@ -48,22 +50,30 @@
"eslint-plugin-import": "~2.8.0",
"flow-bin": "^0.63.1",
"flow-typed": "2.2.3",
"gulp": "github:gulpjs/gulp#4.0",
"gulp-babel": "~7.0.0",
"gulp-changed": "~3.2.0",
"gulp-cli": "~2.0.0",
"gulp-load-plugins": "~1.5.0",
"gulp-plumber": "~1.2.0",
"gulp-sourcemaps": "~1.12.1",
"gulp-util": "~3.0.8",
"gulp-watch": "~5.0.0",
"husky": "~0.14.3",
"lerna": "^2.7.0",
"lint-staged": "~6.0.0",
"lodash": "~4.17.4",
"nyc": "~11.4.1",
"prettier": "^1.10.2",
"prettier-eslint-cli": "~4.7.0",
"through2": "~2.0.3"
},
"lint-staged": {
"*.js": ["prettier-eslint --write", "eslint --fix", "git add"],
"*.js": [
"prettier-eslint --write --parser flow",
"eslint --fix",
"git add"
],
"*.scss": [
"prettier --parser scss --single-quote --write",
"stylelint --fix",
Expand All @@ -72,7 +82,13 @@
"*.md": ["prettier --parser markdown --single-quote --write", "git add"],
"*.json": ["prettier --parser json --write", "git add"]
},
"dependencies": {
"gulp": "github:gulpjs/gulp#4.0"
"dependencies": {},
"ava": {
"files": ["packages/*/test/**/*.test.js"],
"source": [
"packages/*/dist/**/*",
"packages/*/test/fixtures/**/*",
"packages/*/test/utils.js"
]
}
}
7 changes: 5 additions & 2 deletions packages/fakeit-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@
"license": "MIT",
"homepage": "https://github.com/bentonam/fakeit#readme",
"dependencies": {
"@fakeit/file-loader": "^1.0.0",
"callable-instance": "~1.0.0",
"chance": "^1.0.13",
"debug": "^3.1.0",
"faker": "^4.1.0",
"relieve": "^2.2.1",
"@fakeit/file-loader": "^1.0.0"
"joi": "~13.1.1",
"lodash": "~4.17.4",
"relieve": "^2.2.1"
},
"plugins": [
"@fakeit/format-csv",
Expand Down
Loading