GithubHelp home page GithubHelp logo

apolofx / lampone Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 332 KB

NodeJS CLI toolkit intended to automate common configurations and libraries in JavaScript projects

Shell 0.61% JavaScript 11.54% TypeScript 87.84%

lampone's People

Contributors

apolofx avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

lampone's Issues

Add TypeScript boilerplate

The boilerplate could offer the options below:
Before writing any code, consider using something like TSDX

  • Base Framework:
    • Node
    • React
    • Vue
  • Add development watcher and hot reloading like ts-node-dev
  • Add basic tsconfig.json configuration based on project type

Add Jest boilerplate

This boilerplate should add basic Jest support and configuration to a Node based project
options:

  • TypeScript support

Create API folder to modularize tool's command interfaces

We could have an API folder which could contain all the needed vendors API methods abstracted into our own Lampone API to ease the script execution in the users command line.
Example:
Vendors cli:
prettier --write .
Lampone adapted api:

prettier.format() // executes exec("prettier --write .") on user's root dir. 

make helper in order not to override edits made by npm scripts

lampone/lib/scripts.ts

Lines 15 to 20 in 9f34173

//TODO make helper in order not to override edits made by npm scripts
const rawPackageJSON = fs.readFileSync(`package.json`);
const packageJSON = JSON.parse(rawPackageJSON.toString());
packageJSON["scripts"]["prepare"] = "husky install";
packageJSON["lint-staged"] = {
"**/*": "prettier --write --ignore-unknown",


This issue was generated by todo based on a TODO comment in 9f34173. It's been assigned to @Apolofx because they committed the code.

Prevent prettier command to format every file

Current behaviour:

When selecting Prettier tool from the CLI menu, it formats all the current source code without asking first.

Expected behaviour:

We should give the user the option to format all code or just seek and check the files that need to be formated.

The approach for this should be to conditionally use the --write or --check flags in prettier command.
See Prettier Docs on this subjects.

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.