Skip to content

Commit

Permalink
Release v0.4.4 (#124)
Browse files Browse the repository at this point in the history
* update deps

* Docs build: c947062

* Docs build: 01c52e8

* Add Greenkeeper badge 🌴 (#15)

* docs(readme): add Greenkeeper badge

* Update README.md

* Fix travis deploy

* Docs build: 21de27f

* update eslint

* Update README.md

* Docs build: 39e4515

* code cleanup

* Fix typo (#16)

* Docs build: e1f8556

* fix util mkDir

* Docs build: 011f8b7

* Fix copy error

* 0.2.1

* Copy file (#18)

* copyFile changes

* some docs, still very wip

* Update .travis.yml

* mock fs can't handle the new fs.copyFile yet

* emptyDir bugfix

* last bug fix

* Typings. (#19)

* Create tslint.json

* Fixed typos, added typings.

* Fixed all JSDocs

* minor fixes

* fix lint and friends

* missed docs

* le typings

* Docs build: 29fb5da

* update readme

* Docs build: 83dc519

* Coverage (#21)

* start coverage and docs changes

* remove docs from future master

* oops travis

* make codacy happy more tests, still wip

* progress, but mock-fs sucks

* fix scripts

* begin module structure and ditching mock-fs

* add another test to see if somethings wrong...

* oops

* Update Messages, Add test

* tests progress

* push progress

* push progress

* oops

* push progress

* oops

* finish basic tests

* small fixes

* oops

* bug fix

* test fixes

* should fix a lot of symlink bugs?

* maybe fix move tests?

* take 2 move tests

* take 3 move

* fix remove tests

* ahah!

* see how this fares for copy

* idek anymore

* try this on for size

* duh

* fingers crossed

* more copy coverage

* copy coverage

* Update README.md

* More unit tests (#22)

* copy tests

* oh yeah

* symlink copy test

* interesting edge test

* oops

* up threshold

* update npm ignore for prepping patch release

* 0.3.1

* Remove mock-fs since it's not used anymore

* Scan (#24)

* impliment scan idea (klaw without nastiness)

* impliment limit

* umm?

* ohh!

* should do the first directory.

* add filter

* fix limit

* docs

* copy paste OP

* tests

* fix test

* unneeded `async`

* typings I think

* 0.3.2

* Fixed some types (#27)

* Fixed some types

* I guess this is the fix

* chore(package): update ava to version 0.23.0 (#26)

* Add matrix testing support

* Add node 9 testing to coverage

* uh, you skipped 8...

* try again travis

* ?? travis you there?

* update lint

* chore(package): update ava to version 0.25.0 (#28)

* chore(package): update ava to version 0.25.0 (#29)

Closes #28

* fix broken test?

* Fixed typings (#30)

* Fixed typings (hopefully)

Fixed return types for createReadStream and createWriteStream
Imported Buffer to fix a ton of errors

* Fixed a missing property by just importing from fs

I don't remember what I was trying to use, but something was missing
from ReadStream/WriteStream. I just imported it from fs, to ensure
consistency.

* add fs/promises support if your node version is high enough

* bump version and add note to readme

* add node 10 tests to travis

* fix broken test?

* try again?

* bump package.json

* fix some docs

* chore(package): update codacy-coverage to version 3.0.0 (#34)

* more bugged docs

* Update @types/node to the latest version 🚀 (#36)

* chore(package): update @types/node to version 10.0.3

* Update README.md

* fix lint warnings and fix fs.promises use for node ^10.1.0

drop support for node 10.0.0 fs.promises (will fall back to regular util.promisify so not breaking)

* chore(package): update @types/node to version 10.1.3 (#39)

* chore(package): update nyc to version 12.0.1 (#41)

* Update README.md

* Update typescript requirement to ^3.0.1 (#45)

Updates the requirements on [typescript](https://github.com/Microsoft/TypeScript) to permit the latest version.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits/v3.0.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Update eslint requirement to ^5.2.0 (#46)

Updates the requirements on [eslint](https://github.com/eslint/eslint) to permit the latest version.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/commits/v5.2.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* docs: Improved typings and docs (#43)

* doc: Updated all docs, made typings way better

* fix: fsn#emptyDir (readdir returns string[], mkdirs returns string)

* tslint: Replaced quotes

* eslint: Remove @returns tag for emptyDir

* tslint: Fix typings for fs#write

* return 'file' if lstat errors

* test: Add test for bug kyra found

* bump version for release

* fix alias `writeJsonAtomic` (#49)

* bump version for release

* Update nyc requirement from ^12.0.1 to ^13.0.1 (#51)

Updates the requirements on [nyc](https://github.com/istanbuljs/nyc) to permit the latest version.
- [Release notes](https://github.com/istanbuljs/nyc/releases)
- [Changelog](https://github.com/istanbuljs/nyc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/istanbuljs/nyc/commits/v13.0.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Update scan.js

* Chore(deps-dev): update ava requirement from ^0.25.0 to ^1.0.1 (#53)

* Chore(deps-dev): update ava requirement from ^0.25.0 to ^1.0.1

Updates the requirements on [ava](https://github.com/avajs/ava) to permit the latest version.
- [Release notes](https://github.com/avajs/ava/releases)
- [Commits](https://github.com/avajs/ava/commits/v1.0.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Update copy.js

* Update scan.js

* Update remove.js

* Update move.js

* use yarn.lock for dependabot, add node 11 tests (#54)

* use yarn.lock for dependabot, add node 11 tests

* actually, no need to test node 9 any longer

* refactor copy to be less complex (#55)

* bump patch for new release

* switch from codacy to coveralls

* better test coverage

* typos

* add another test case

* another test

having trouble hitting the lines I want to...

* more tests

* fix expected assertions

* more tests

* lint

* badge updates

* attempt ignoring all windows specific code

* wrong path ignored

* updated comments

* see if this makes a branch difference

* more clear logic/ comments

* lint

* util coverage comments

* remove duplicate coercion

* refactor then/catch tree into try/catch await

* lint

* docs spelling

* more tests and docs fixes

* maybe fix coverage ignore?

* add appveyor config (#57)

* add appveyor config

* new line endof file

* get linux errors

* breaking: rewrite move

* test fails on both linux/windows, presumed flawed test

* add proper ignores back to the new move

* remove other clobber options

* refactor util

this might reduce coverage

* better isSrcKid

* fix bad refactor

* another copy test

* and another

* another obscure test

* bit of rewrite

* better coverage

* does this change how coverage sees branches?

* ?

* more rewrite

no .then/.catch

* symlink test

* does this get that last symlink branch?

* whoops

* one last obscure test

and hope we don't lock up travis

* fix duplicate title

* correction

dev/null is a character device, not block device :(

* Bump tslint from 5.11.0 to 5.12.0

Bumps [tslint](https://github.com/palantir/tslint) from 5.11.0 to 5.12.0.
- [Release notes](https://github.com/palantir/tslint/releases)
- [Changelog](https://github.com/palantir/tslint/blob/master/CHANGELOG.md)
- [Commits](palantir/tslint@5.11.0...5.12.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump @types/node from 10.12.15 to 10.12.17

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped) from 10.12.15 to 10.12.17.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* coverage

* or actually

* fix superfluous argument

* clobber removed

* make prs report coverage too (#60)

* Bump @types/node from 10.12.17 to 10.12.18

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped) from 10.12.17 to 10.12.18.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump eslint from 5.10.0 to 5.11.0

Bumps [eslint](https://github.com/eslint/eslint) from 5.10.0 to 5.11.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v5.10.0...v5.11.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump eslint from 5.11.0 to 5.11.1

Bumps [eslint](https://github.com/eslint/eslint) from 5.11.0 to 5.11.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v5.11.0...v5.11.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* consistent errors

* ensure strict returns and consistency sweep

* fix return type

* fix coverage

* more simplification

* whoops

* remove useless return

* revert change to mkdirs

since that slows recursive calls unnecessarily

* more cleanup and engine bump for object spread

* forgot to hit save

* Bump eslint from 5.11.1 to 5.12.0

Bumps [eslint](https://github.com/eslint/eslint) from 5.11.1 to 5.12.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v5.11.1...v5.12.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump tslint from 5.12.0 to 5.12.1

Bumps [tslint](https://github.com/palantir/tslint) from 5.12.0 to 5.12.1.
- [Release notes](https://github.com/palantir/tslint/releases)
- [Changelog](https://github.com/palantir/tslint/blob/master/CHANGELOG.md)
- [Commits](palantir/tslint@5.12.0...5.12.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump ava from 1.0.1 to 1.1.0

Bumps [ava](https://github.com/avajs/ava) from 1.0.1 to 1.1.0.
- [Release notes](https://github.com/avajs/ava/releases)
- [Commits](avajs/ava@v1.0.1...v1.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump typescript from 3.2.2 to 3.2.4

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.2.2 to 3.2.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v3.2.2...v3.2.4)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump eslint from 5.12.0 to 5.12.1

Bumps [eslint](https://github.com/eslint/eslint) from 5.12.0 to 5.12.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v5.12.0...v5.12.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump ava from 1.1.0 to 1.2.0

Bumps [ava](https://github.com/avajs/ava) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/avajs/ava/releases)
- [Commits](avajs/ava@v1.1.0...v1.2.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump @types/node from 10.12.18 to 10.12.19

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped) from 10.12.18 to 10.12.19.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump @types/node from 10.12.19 to 10.12.20

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped) from 10.12.19 to 10.12.20.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump typescript from 3.2.4 to 3.3.1

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.2.4 to 3.3.1.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v3.2.4...v3.3.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump @types/node from 10.12.20 to 10.12.21

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped) from 10.12.20 to 10.12.21.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump eslint from 5.12.1 to 5.13.0

Bumps [eslint](https://github.com/eslint/eslint) from 5.12.1 to 5.13.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v5.12.1...v5.13.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump jsdoc from `b214273` to `10c004f`

Bumps [jsdoc](https://github.com/jsdoc3/jsdoc) from `b214273` to `10c004f`.
- [Release notes](https://github.com/jsdoc3/jsdoc/releases)
- [Commits](jsdoc/jsdoc@b214273...10c004f)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump nyc from 13.1.0 to 13.2.0

Bumps [nyc](https://github.com/istanbuljs/nyc) from 13.1.0 to 13.2.0.
- [Release notes](https://github.com/istanbuljs/nyc/releases)
- [Changelog](https://github.com/istanbuljs/nyc/blob/master/CHANGELOG.md)
- [Commits](istanbuljs/nyc@v13.1.0...v13.2.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump ava from 1.2.0 to 1.2.1

Bumps [ava](https://github.com/avajs/ava) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/avajs/ava/releases)
- [Commits](avajs/ava@v1.2.0...v1.2.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump @types/node from 10.12.21 to 10.12.23

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped) from 10.12.21 to 10.12.23.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump typescript from 3.3.1 to 3.3.3

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.3.1 to 3.3.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* TypeScript Re-Write (#83)

* wip ts rewrite

* odd?

* ah

* make min node 10

* fix appveyor

* cleaner export

* Revert "cleaner export"

This reverts commit 398a928.

* remove typings, update readme

* full sounds wrong with ts

* more official

* update npm ignore

* see if this fixes coverage

* fix coverage

* add a chmod test

* mode includes more than just the chmod

* who knows, tbh

* make it more interesting

* fk it

* switch to a basic typedocs

* fix output

* update npm description

* bump minor for new release

* run tests in typescript (#85)

* run tests in typescript

* oops, fix test

* fix linting

* real fixes

* use more yarn

* fix lint

* try this

* revert coverage reporting

* ok whatever

* might aswell change these too

* ugh, fix this

* I cba anymore

* bump patch for new release

* misc: Add function overloads (#87)

* bump patch for new release

* Bump @types/node from 10.12.23 to 10.12.24

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped) from 10.12.23 to 10.12.24.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump eslint-config-klasa from `7095d9d` to `e0c5945`

Bumps [eslint-config-klasa](https://github.com/dirigeants/klasa-lint) from `7095d9d` to `e0c5945`.
- [Release notes](https://github.com/dirigeants/klasa-lint/releases)
- [Commits](dirigeants/klasa-lint@7095d9d...e0c5945)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* chore(engines): Bump to 10.1.0 (#91)

10.0.0 added fs/promises, but we use fs.promises, which is implemented in 10.1.0

* Bump for new release

* [Security] Bump handlebars from 4.0.12 to 4.1.0

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.12 to 4.1.0. **This update includes security fixes.**
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/v4.1.0/release-notes.md)
- [Commits](handlebars-lang/handlebars.js@v4.0.12...v4.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump nyc from 13.2.0 to 13.3.0

Bumps [nyc](https://github.com/istanbuljs/nyc) from 13.2.0 to 13.3.0.
- [Release notes](https://github.com/istanbuljs/nyc/releases)
- [Changelog](https://github.com/istanbuljs/nyc/blob/master/CHANGELOG.md)
- [Commits](istanbuljs/nyc@v13.2.0...v13.3.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump eslint from 5.13.0 to 5.14.0

Bumps [eslint](https://github.com/eslint/eslint) from 5.13.0 to 5.14.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v5.13.0...v5.14.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump eslint from 5.14.0 to 5.14.1

Bumps [eslint](https://github.com/eslint/eslint) from 5.14.0 to 5.14.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v5.14.0...v5.14.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump typescript from 3.3.3 to 3.3.3333

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.3.3 to 3.3.3333.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v3.3.3...v3.3.3333)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump tslint from 5.12.1 to 5.13.0

Bumps [tslint](https://github.com/palantir/tslint) from 5.12.1 to 5.13.0.
- [Release notes](https://github.com/palantir/tslint/releases)
- [Changelog](https://github.com/palantir/tslint/blob/master/CHANGELOG.md)
- [Commits](palantir/tslint@5.12.1...5.13.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump eslint-config-klasa from `e0c5945` to `3e64dd5`

Bumps [eslint-config-klasa](https://github.com/dirigeants/klasa-lint) from `e0c5945` to `3e64dd5`.
- [Release notes](https://github.com/dirigeants/klasa-lint/releases)
- [Commits](dirigeants/klasa-lint@e0c5945...3e64dd5)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump coveralls from 3.0.2 to 3.0.3

Bumps [coveralls](https://github.com/nickmerwin/node-coveralls) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/nickmerwin/node-coveralls/releases)
- [Commits](nickmerwin/node-coveralls@3.0.2...3.0.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump tslint from 5.13.0 to 5.13.1

Bumps [tslint](https://github.com/palantir/tslint) from 5.13.0 to 5.13.1.
- [Release notes](https://github.com/palantir/tslint/releases)
- [Changelog](https://github.com/palantir/tslint/blob/master/CHANGELOG.md)
- [Commits](palantir/tslint@5.13.0...5.13.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* scripts: Add `prepublishOnly` script (#106)

* scripts: Add `prepublishOnly` script

* misc: Omit `run` in `yarn`

* Bump @types/node from 10.12.24 to 11.9.6 (#107)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 10.12.24 to 11.9.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump @types/node from 11.9.6 to 11.10.4

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 11.9.6 to 11.10.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump eslint from 5.14.1 to 5.15.0

Bumps [eslint](https://github.com/eslint/eslint) from 5.14.1 to 5.15.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v5.14.1...v5.15.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump eslint from 5.15.0 to 5.15.1

Bumps [eslint](https://github.com/eslint/eslint) from 5.15.0 to 5.15.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v5.15.0...v5.15.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump ava from 1.2.1 to 1.3.1

Bumps [ava](https://github.com/avajs/ava) from 1.2.1 to 1.3.1.
- [Release notes](https://github.com/avajs/ava/releases)
- [Commits](avajs/ava@v1.2.1...v1.3.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump eslint-config-klasa from `3e64dd5` to `d24af72`

Bumps [eslint-config-klasa](https://github.com/dirigeants/klasa-lint) from `3e64dd5` to `d24af72`.
- [Release notes](https://github.com/dirigeants/klasa-lint/releases)
- [Commits](dirigeants/klasa-lint@3e64dd5...d24af72)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Set up CI with Azure Pipelines (#114)

* Set up CI with Azure Pipelines

* Update azure-pipelines.yml for Azure Pipelines

* Update azure-pipelines.yml for Azure Pipelines

* Update azure-pipelines.yml for Azure Pipelines

make node versions prettier

* wish me luck

* oops

* ?

* ?

* uh, maybe

* grasping at straws tbh

* oh

* idk

* skip bash files maybe

* ugh

* maybe, pls maybe

* debug

* oops, other debug

* ugh, their docs suck

* kmn

* ???

* build baby

* azure coverage?

* ignore mac for a moment

* ok, really ignore mac this time

* just maybe

* oops

* report html too

* update badges

* fix order

* oops

* uh, debug

* Bump @types/node from 11.10.4 to 11.10.5

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 11.10.4 to 11.10.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump ts-node from 8.0.2 to 8.0.3 (#116)

Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 8.0.2 to 8.0.3.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](TypeStrong/ts-node@v8.0.2...v8.0.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Update package.json

* remove debugs

* Docs template (#117)

* use external docs template

* forgot to save

* update to use jobs template instead

* uhh

* who knows if this will work, I sure don't

* trigger build

* add condition

* remove the condition

* utilize lint template

* update to new config

* Bump @types/node from 11.10.5 to 11.11.0

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 11.10.5 to 11.11.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* fix docs build

* Bump @types/node from 11.11.0 to 11.11.1

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 11.11.0 to 11.11.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump tslint from 5.13.1 to 5.14.0

Bumps [tslint](https://github.com/palantir/tslint) from 5.13.1 to 5.14.0.
- [Release notes](https://github.com/palantir/tslint/releases)
- [Changelog](https://github.com/palantir/tslint/blob/master/CHANGELOG.md)
- [Commits](palantir/tslint@5.13.1...5.14.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump @types/node from 11.11.1 to 11.11.3

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 11.11.1 to 11.11.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Targz (#121)

* add wip broken monstrosity targz

* better, but still super idk man

* uh, this actually made a file that winrar could open

although the internal filepath was based on the full path from c:\ but this is promising. I still think things are done idiomatically wrong though.

* add directory test

and fixes

* work off base directory resolution

* add atomic shortcuts and tests

* add more unit tests

* fix type in Untar?

* add gzip methods

* I think this should be more efficient

* simplify Tar

* fix imports

* utilize scan in targz

* add some more types

* lint

* utilize _read

* coverage fixes

* remove state

* reorg

* obvious missed type, doesn't really effect anything though

* so long as circulars aren't a problem, this should reduce dupe

* fix failing test

* better stage names

* rewrite Untar and make progress

* fix some names

* still not correct, but probably moreso

* added some state, and now it works

but I don't think it should require state to do this

* remove extra state

* more tests, but trouble in checksum valley

* it wasn't the checksum, it was empty directories

now other tests are running, and other problems

* fix?

* add a test, yolo

* coverage adjustments

* bump version for release
  • Loading branch information
bdistin committed Mar 16, 2019
1 parent 05e00f9 commit 61a78d6
Show file tree
Hide file tree
Showing 39 changed files with 1,235 additions and 564 deletions.
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -7,8 +7,8 @@ FS-Nextra
[![npm](https://img.shields.io/npm/dt/fs-nextra.svg?maxAge=3600)](https://www.npmjs.com/package/fs-nextra)

[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/bdistin/fs-nextra.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/bdistin/fs-nextra/context:javascript)
[![Coverage Status](https://coveralls.io/repos/github/bdistin/fs-nextra/badge.svg?branch=master)](https://coveralls.io/github/bdistin/fs-nextra?branch=master)
[![travis-ci](https://travis-ci.com/bdistin/fs-nextra.svg?branch=master)](https://travis-ci.com/bdistin/fs-nextra)
[![Coverage](https://img.shields.io/azure-devops/coverage/aodude/fs-nextra/1/master.svg)](https://dev.azure.com/aodude/fs-nextra/_build/latest?definitionId=1&branchName=master)
[![Build Status](https://aodude.visualstudio.com/fs-nextra/_apis/build/status/bdistin.fs-nextra?branchName=master)](https://aodude.visualstudio.com/fs-nextra/_build/latest?definitionId=1&branchName=master)

[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=bdistin/fs-nextra)](https://dependabot.com)
[![david](https://david-dm.org/bdistin/fs-nextra.svg)](https://david-dm.org/bdistin/fs-nextra)
Expand All @@ -35,4 +35,4 @@ License

Licensed under MIT

Copyright (c) 2017 [BDISTIN](https://github.com/bdistin)
Copyright (c) 2017-2019 [BDISTIN](https://github.com/bdistin)
17 changes: 0 additions & 17 deletions appveyor.yml

This file was deleted.

37 changes: 37 additions & 0 deletions azure-pipelines.yml
@@ -0,0 +1,37 @@
resources:
repositories:
- repository: templates
type: github
name: dirigeants/pipelines
endpoint: bdistin

trigger:
- master

jobs:
- template: lint.yml@templates

- template: scripts/.azure-test-template.yml
parameters:
name: Linux
vmImage: 'ubuntu-16.04'

- template: scripts/.azure-test-template.yml
parameters:
name: Mac
vmImage: 'macOS-10.13'

- template: scripts/.azure-test-template.yml
parameters:
name: Windows
vmImage: 'vs2017-win2016'

- template: docs.yml@templates
parameters:
ghRef: 'github.com/bdistin/fs-nextra'
targetBranch: 'gh-pages'
masterOnly: 'true'
dependsOn:
- Linux
- Mac
- Windows
16 changes: 8 additions & 8 deletions package.json
@@ -1,16 +1,17 @@
{
"name": "fs-nextra",
"version": "0.4.3",
"version": "0.4.4",
"description": "Node.js native fs promises with next-generation extra methods.",
"main": "dist/index.js",
"scripts": {
"prepublishOnly": "yarn build",
"build": "tsc",
"test": "yarn build && ava test/*.ts",
"test:lint": "tslint '{test,src}/**/*.ts'",
"test:coverage": "yarn coverage && nyc check-coverage --lines 60 --functions 60 --branches 60",
"test:coverage": "yarn coverage && nyc check-coverage --lines 90 --functions 90 --branches 90",
"coverage": "npx nyc npm test",
"coveralls": "npx nyc report --reporter=text-lcov | npx coveralls",
"docs": "typedoc --mode file --out ./docs/ ./src/",
"coverage:azure": "npx nyc report --reporter=cobertura --reporter=html",
"docs": "typedoc --mode file --out ./dist/ ./src/",
"lint": "tslint --fix '{test,src}/**/*.ts'"
},
"keywords": [
Expand All @@ -35,14 +36,13 @@
"node": ">=10.1.0"
},
"devDependencies": {
"@types/node": "^10.1.3",
"@types/node": "^11.11.0",
"ava": "^1.0.1",
"coveralls": "^3.0.2",
"eslint": "^5.2.0",
"eslint-config-klasa": "github:dirigeants/klasa-lint",
"eslint-config-klasa": "dirigeants/klasa-lint",
"nyc": "^13.0.1",
"ts-node": "^8.0.3",
"tslint": "^5.7.0",
"ts-node": "8.0.2",
"typedoc": "^0.14.2",
"typescript": "^3.0.1"
},
Expand Down
32 changes: 32 additions & 0 deletions scripts/.azure-test-template.yml
@@ -0,0 +1,32 @@
parameters:
name: ''
vmImage: ''

jobs:
- job: ${{ parameters.name }}
dependsOn: Lint
condition: succeeded()
pool:
vmImage: ${{ parameters.vmImage }}
strategy:
matrix:
Node 10:
nodeVersion: '10.x'
Node 11:
nodeVersion: '11.x'
steps:
- task: NodeTool@0
inputs:
versionSpec: $(nodeVersion)
displayName: 'Install Node.js'
- script: 'yarn'
displayName: 'Install Dependencies'
- script: 'yarn run test:coverage'
displayName: 'Run Tests'
- script: 'yarn run coverage:azure'
displayName: 'Generate Reports'
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml
reportDirectory: $(System.DefaultWorkingDirectory)/coverage
15 changes: 0 additions & 15 deletions scripts/.travis-coverage.sh

This file was deleted.

29 changes: 0 additions & 29 deletions scripts/.travis-deploy.sh

This file was deleted.

8 changes: 8 additions & 0 deletions src/index.ts
Expand Up @@ -21,6 +21,10 @@ export { default as ensureLink } from './nextra/createLink';
export { default as ensureLinkAtomic } from './nextra/createLinkAtomic';
export { default as ensureSymlink } from './nextra/createSymlink';
export { default as ensureSymlinkAtomic } from './nextra/createSymlinkAtomic';
export { default as gunzip } from './nextra/gunzip';
export { default as gunzipAtomic } from './nextra/gunzipAtomic';
export { default as gzip } from './nextra/gzip';
export { default as gzipAtomic } from './nextra/gzip';
export { default as linkAtomic } from './nextra/linkAtomic';
export { default as mkdirp } from './nextra/mkdirs';
export { default as mkdirs } from './nextra/mkdirs';
Expand All @@ -37,6 +41,10 @@ export { default as readJson } from './nextra/readJSON';
export { default as remove } from './nextra/remove';
export { default as scan } from './nextra/scan';
export { default as symlinkAtomic } from './nextra/symlinkAtomic';
export { default as targz } from './nextra/targz';
export { default as targzAtomic } from './nextra/targzAtomic';
export { default as unTargz } from './nextra/unTargz';
export { default as unTargzAtomic } from './nextra/unTargzAtomic';
export { default as writeFileAtomic } from './nextra/writeFileAtomic';
export { default as writeJSON } from './nextra/writeJSON';
export { default as writeJSONAtomic } from './nextra/writeJSONAtomic';
Expand Down
2 changes: 1 addition & 1 deletion src/nextra/copy.ts
@@ -1,6 +1,6 @@
import { resolve, dirname, join, basename } from 'path';

import { replaceEsc, isSrcKid } from '../util';
import { replaceEsc, isSrcKid } from '../utils/util';
import { access, readlink, mkdir, symlink, copyFile, lstat, stat, chmod, readdir, Stats } from '../fs';

import mkdirs from './mkdirs';
Expand Down
2 changes: 1 addition & 1 deletion src/nextra/copyFileAtomic.ts
@@ -1,4 +1,4 @@
import { tempFile } from '../util';
import { tempFile } from '../utils/util';
import { copyFile } from '../fs';

import move from './move';
Expand Down
23 changes: 23 additions & 0 deletions src/nextra/gunzip.ts
@@ -0,0 +1,23 @@
import { createGunzip } from 'zlib';

import { createWriteStream, createReadStream } from '../fs';
import { pipelinePromise } from '../utils/util';
import gunzipAtomic from './gunzipAtomic';

/**
* Un-Gzips a file
* @function gunzip
* @memberof fsn/nextra
* @param fileName The filename of the output file
* @param inputFile The filepath of the archive
* @param atomic If the unzip file should be created atomically
*/
export default async function gzip(fileName: string, inputFile: string, atomic: boolean = false): Promise<void> {
if (atomic) return gunzipAtomic(fileName, inputFile);

return pipelinePromise(
createReadStream(inputFile),
createGunzip(),
createWriteStream(fileName)
);
}
16 changes: 16 additions & 0 deletions src/nextra/gunzipAtomic.ts
@@ -0,0 +1,16 @@
import gunzip from './gunzip';
import move from './move';
import { tempFile } from '../utils/util';

/**
* Un-Gzips a file atomically.
* @function gunzipAtomic
* @memberof fsn/nextra
* @param fileName The filename of the output file
* @param inputFile The filepath of the archive
*/
export default async function gzipAtomic(fileName: string, inputFile: string): Promise<void> {
const tempPath = tempFile();
await gunzip(tempPath, inputFile);
return move(tempPath, fileName, { overwrite: true });
}
23 changes: 23 additions & 0 deletions src/nextra/gzip.ts
@@ -0,0 +1,23 @@
import { createGzip } from 'zlib';

import { createWriteStream, createReadStream } from '../fs';
import { pipelinePromise } from '../utils/util';
import gzipAtomic from './gzipAtomic';

/**
* Gzips a file
* @function gzip
* @memberof fsn/nextra
* @param fileName The filename of the archive
* @param inputFile The filepath of the input file
* @param atomic If the gzip file should be created
*/
export default async function gzip(fileName: string, inputFile: string, atomic: boolean = false): Promise<void> {
if (atomic) return gzipAtomic(fileName, inputFile);

return pipelinePromise(
createReadStream(inputFile),
createGzip(),
createWriteStream(fileName)
);
}
16 changes: 16 additions & 0 deletions src/nextra/gzipAtomic.ts
@@ -0,0 +1,16 @@
import gzip from './gzip';
import move from './move';
import { tempFile } from '../utils/util';

/**
* Gzips a file atomically.
* @function gzipAtomic
* @memberof fsn/nextra
* @param fileName The filename of the archive
* @param inputFile The filepath of the input file
*/
export default async function gzipAtomic(fileName: string, inputFile: string): Promise<void> {
const tempPath = tempFile();
await gzip(tempPath, inputFile);
return move(tempPath, fileName, { overwrite: true });
}
2 changes: 1 addition & 1 deletion src/nextra/linkAtomic.ts
@@ -1,4 +1,4 @@
import { tempFile } from '../util';
import { tempFile } from '../utils/util';
import { link } from '../fs';

import move from './move';
Expand Down
2 changes: 1 addition & 1 deletion src/nextra/mkdirs.ts
@@ -1,6 +1,6 @@
import { resolve, dirname, normalize, sep } from 'path';

import { isWindows } from '../util';
import { isWindows } from '../utils/util';
import { stat, mkdir } from '../fs';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/nextra/move.ts
@@ -1,6 +1,6 @@
import { resolve, dirname } from 'path';

import { isSrcKid } from '../util';
import { isSrcKid } from '../utils/util';
import { access, rename, stat } from '../fs';

import remove from './remove';
Expand Down
2 changes: 1 addition & 1 deletion src/nextra/remove.ts
@@ -1,6 +1,6 @@
import { join } from 'path';

import { isWindows, setTimeoutPromise } from '../util';
import { isWindows, setTimeoutPromise } from '../utils/util';
import { lstat, unlink, rmdir, chmod, readdir } from '../fs';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/nextra/symlinkAtomic.ts
@@ -1,4 +1,4 @@
import { tempFile } from '../util';
import { tempFile } from '../utils/util';
import { symlink } from '../fs';
import { SymLinkType } from './createSymlink';

Expand Down

0 comments on commit 61a78d6

Please sign in to comment.