atSCM / atscm

Source code management utilities for atvise
https://atscm.github.io
7 stars 2 forks source link

Restrict watched nodes to configured nodes #363

Open LukasHechenberger opened 4 years ago

LukasHechenberger commented 4 years ago

Currently, nodes that are not pulled are watched for changes when running atscm watch. This may not be an error but it's pretty confusing.

Example

Run atscm watch with a config like this

// Atviseproject.js
import { Atviseproject } from 'atscm';

/** atscm configuration of atscm-ts-sample. */
export default class AtscmTsSample extends Atviseproject {
  ...

  static get nodes() {
    return [new NodeId('SYSTEM.LIBRARY.PROJECT.SERVERSCRIPTS.SampleScript')];
  }
}

When you change one of the nodes watched by default (e.g. AGENT.DISPLAYS.Main) in atvise builder, the change is recognized and the node is pulled.