Coder Social home page Coder Social logo

dsherret / barrel-maintainer Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 1.0 2.09 MB

Automated real-time maintenance of barrels in JavaScript and TypeScript.

License: MIT License

TypeScript 98.33% JavaScript 1.67%
automation code-manipulation typescript

barrel-maintainer's People

Contributors

dsherret avatar gerrit0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

jordiup

barrel-maintainer's Issues

Argument order?

The readme.md indicates that the argument order for barrel-maintainer is barrel-maintainer [options] [path]. However, I have found that both at the command line and when invoked from a package.json npm script, [path] is ignored in favor of the working directory unless specified before [options]

Occasional crash when switching branches

When I switch my branch I will occasionally get this error:

C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\node_modules\ts-simple-ast\dist\factories\CompilerFactory.js:151
            throw new errors.InvalidOperationError("A source file already exists at the provided file path: " + filePath);
            ^

Error: A source file already exists at the provided file path: V:/ts-simple-ast/src/utils/tsconfig/index.ts
    at InvalidOperationError.BaseError [as constructor] (C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\node_modules\ts-simple-ast\dist\errors\BaseError.js:16:28)
    at new InvalidOperationError (C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\node_modules\ts-simple-ast\dist\errors\InvalidOperationError.js:17:28)
    at CompilerFactory.createSourceFileFromText (C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\node_modules\ts-simple-ast\dist\factories\CompilerFactory.js:151:19)
    at CompilerFactory.createSourceFile (C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\node_modules\ts-simple-ast\dist\factories\CompilerFactory.js:136:25)
    at Directory.createSourceFile (C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\node_modules\ts-simple-ast\dist\fileSystem\Directory.js:339:44)
    at Maintainer.updateDirInternal (C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\dist\Maintainer.js:38:30)
    at C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\dist\Maintainer.js:30:85
    at Array.filter (<anonymous>)
    at Maintainer.updateDirInternal (C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\dist\Maintainer.js:30:50)
    at Maintainer.updateDir (C:\Users\david\AppData\Roaming\npm\node_modules\barrel-maintainer\dist\Maintainer.js:17:22)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.