Skip to content

Modernizing build/bundling #194

@joelgriffith

Description

@joelgriffith

As a contributor to graphiql, I'm impeded by the lack of real-time tooling for the project. I frequently have pause development, run a build, reboot a server, and then am able to test changes in a browser. This adds friction to contributors as there's numerous hoops to jump through in order to test changes. I propose the following (and can implement if there's buy-in):

  • An npm command for active development. Can be npm run dev or some other variant. It would watch the source files, bundle (NOT minifiy), and start/reboot the example application.
  • Implement one of the css pre-processors. There's numerous vendor issue in the css due to vendor namespacing (I'm looking at you old-ish IE). This would alleviate that by leaning on other tools like http://lessprefixer.com/

I do NOT want to add:

  • A heavy-weight build manager, like gulp.
  • More npm commands than is necessary.
  • Confusion.

Thoughts? This would obviously introduce some more devDependencies like watchify or similar, but I think the value of which would be worth it. I can tell that there was motivation in this project to keep things "slim", but since it's grown in popularity and size the lack of these types of tools is a pain that is growing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions