Giter Club home page Giter Club logo

yact-js's Introduction

yact-js

yact-js (Yet Another Configuration Tool) is a CLI tool to help configure new or existing JavaScript and node projects.

Install

npm install -g yact-js

Usage

To see a list of all the plugins available to you, run:

yact --help

Add prettier to your project

By running yact --prettier at the root of your project, the tool will install the required dependencies for prettier but also add it as a precommit hook. This makes sure the code is always properly formatted before being pushed to the remote repository.

Add eslint to your project

By running yact --eslint at the root of your project, yact will install dependencies and eslint will be added as a precommit hook to prevent you (and others) from committing code with errors.

Add decorator support in a create-react-app project

I’m personally a big fan of decorators in JavaScript and I think it plays very well in react apps. The team behind create-react-app decided not to support them as it still is an experimental feature of JavaScript (stage-2 at the time of writing).

Fortunately, react-app-rewired allows you to patch the webpack config without ejecting. This is what yact --rewirebabel will do. It will install the required dependencies and configure react-app-rewired to add decorator support to your CRA app.

babel for node projects

Working on a Node app? Missing the import statements? yact --babelnode will configure babel and add the required scripts to compile your projects.

Docker Build for SPAs

Working on a Single Page Application and you need a docker image of it? yact --dockerspa will add a Dockerfile to your project aswell as a build:docker script. This image will be a static Nginx Proxy hosting your app on localhost:80

Need more?

Please create an issue or even better a pull request if you want more configuration plugins.

yact-js's People

Contributors

hwaterke avatar

Stargazers

Anthony A. avatar Arnaud Gathy avatar Van der Auwermeulen Grégoire avatar Antonio avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

0xclpz

yact-js's Issues

Conflicts with eslint command when used with create react app

When you use Yact on a CRA repo , you got conflicts with Eslint since two versions of the library are installed in the modules.
The results are error during pre-commit and building time.

Solution => Create a new commande for CRA repos that will only install de .eslint file and the rules but will depend on the already installed eslint package.

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.