GithubHelp home page GithubHelp logo

ouxe's People

Contributors

dependabot[bot] avatar semantic-release-bot avatar yurickh avatar

Watchers

 avatar  avatar

ouxe's Issues

CLI breaks during packager definition step

TypeError: Cannot destructure property 'name' of 'packagerConfig[manager]' as it is undefined.
    at packageManager (/Users/yurick/github/oss/ouxe/src/helpers/package-manager.ts:37:11)
    at installDependencies (/Users/yurick/github/oss/ouxe/src/helpers/install-dependencies.ts:29:20)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.handler (/Users/yurick/github/oss/ouxe/src/commands/prettier/index.ts:38:20)
    at Object.routeFeatures [as handler] (/Users/yurick/github/oss/ouxe/src/index.ts:21:5)

Create command for renaming default branch

Something that I've been doing in my repos is to rename the default branch into main.
It would be great if ouxe had support to, when running npx ouxe default-branch main, execute in order:

  • create and push the main branch
  • update all PRs in GitHub to point to the new branch
  • change it to default in GitHub
  • change all occurrences of the old default branch name in the CI/CD setup
  • remove the old default branch on both local and remote

Add support to monorepos

Running ouxe in the root of a monorepo with yarn workspaces will warn with:

error Running this command will add the dependency to the workspace root rather than the workspace itself, which might not be what you want - if you really meant it, make it explicit by running this command again with the -W flag (or --ignore-workspace-root-check).

We probably want to add the --ignore-workspace-root-check flag for installs that should go on the root, like eslint or prettier.

Running `npx ouxe` is breaking

When executing npx ouxe, it prints out

/Users/yurick/github/oss/ouxe/node_modules/.bin/ouxe: line 1: syntax error near unexpected token `('

And then the whole of the build file (namely lib/ouxe.js, which is the one that goes to .bin`).

I couldn't find a syntax error in the built package, so I suspect this is related to the node version npx is using to execute.

Move away from microbundle

Although it's a really good library, micro bundle is intended to be used to bundle small packages for the browser, thus it acts and produces a build that it's not really aligned with the goal of this package: to be used in a node environment.

List of possible alternatives:

  • tsdx
  • pure rollup

(feel free to recommend alternatives in the comments)

Create detectors for present libraries

This is needed in order to support proper .eslintrc creation, as we need to conditionally add libraries like @typescript-eslint for typescript, or prettier-config-eslint if prettier is detected.

We should be able to detect:

  • typescript
    • @typescript-eslint/eslint-plugin
    • @typescript-eslint/parser
  • prettier
    • eslint-config-prettier
  • react
    • eslint-config-react-app and its peers
    • eslint-plugin-react-hooks
  • babel
    • babel-eslint

Tests are flaky in macOS, node 13.x

Frequently the process just hangs while installing (which could be solved by checking out pnp) or timeouts during the prettier integration test.

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.