0.0.2-unstable.ba9fd29 • Published 2 days ago

@embroider/broccoli-side-watch v0.0.2-unstable.ba9fd29

Weekly downloads
-
License
MIT
Repository
-
Last release
2 days ago

@embroider/broccoli-side-watch

A micro library that allows watching folders for changes outside the app folder in Ember apps

Usage

Let's assume you have a v2 addon in the grand-prix folder of your top-level folder of your Ember app.

Every time you change something in the source of that add-on, you can rebuild it by watching the addon's build (currently using Rollup). However, by default the host Ember app doesn't rebuild automatically, so you have to restart the Ember app every time this happens which is a slog.

With this library, you can add the following to your ember-cli-build.js to vastly improve your life as a developer:

const sideWatch = require('@embroider/broccoli-side-watch');

const app = new EmberApp(defaults, {  
  trees: {
    app: sideWatch('app', { watching: ['./grand-prix/src'] }),
  },
});