Fix bin/publish: use correct .env path for rspade_system Fix bin/publish script: prevent grep exit code 1 from terminating script 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
67 lines
1.3 KiB
JavaScript
Executable File
67 lines
1.3 KiB
JavaScript
Executable File
/**
|
|
* @abstract
|
|
* @internal (for now)
|
|
**/
|
|
class Component {
|
|
/** Whether or not to automatically register this component */
|
|
passive = false;
|
|
|
|
/** Whether or not this component requires dependency reloading */
|
|
requiresReload = false;
|
|
|
|
/**
|
|
* The name used to call this component.
|
|
*
|
|
* @deprecated
|
|
**/
|
|
caller = '';
|
|
|
|
/**
|
|
*
|
|
* @param {import("../Mix")} mix
|
|
*/
|
|
constructor(mix) {
|
|
this.context = mix;
|
|
}
|
|
|
|
/**
|
|
* Specifiy one or more dependencies that must
|
|
* be installed for this component to work
|
|
*
|
|
* @returns {import("../PackageDependency").Dependency[]}
|
|
**/
|
|
dependencies() {
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
* Add rules to the webpack config
|
|
*
|
|
* @returns {import('webpack').RuleSetRule[]}
|
|
**/
|
|
webpackRules() {
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
* Add plugins to the webpack config
|
|
*
|
|
* @returns {import('webpack').WebpackPluginInstance[]}
|
|
**/
|
|
webpackPlugins() {
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
* Update the webpack config
|
|
*
|
|
* @param {import('webpack').Configuration} config
|
|
* @returns {import('webpack').Configuration}
|
|
**/
|
|
webpackConfig(config) {
|
|
return config;
|
|
}
|
|
}
|
|
|
|
module.exports.Component = Component;
|