I am wondering why the particles system in scatter exists. Because you really do not need it:
It is not used while loading modules (targeting modules)
For example if i have a particle with the name "core" inside the "project" dir :
project
core
module.js
particles.json
index.js
Now if i want to load the "module" module. I will have the following code inside the "index.js"
// Load other modules
var Scatter = require("scatter");
var path = require("path");
// Create the scatter container
var scatter = new Scatter();
// Define the node modules
scatter.setNodeModulesDir(path.join(__dirname, "node_modules"));
// Register the particles
scatter.registerParticles([
path.join(__dirname, "core")
]);
// Load the module
scatter.load("module").then(function() { // I think here u should write core/module
console.log("Loaded the module");
});
It would be more logicaly if i have to specify the pratcile i am loading that module from while loading it. So rather than loading "module" it should be "core/module"
So why do i need the particles system then? It doesnt help me to organize my code, Or did i misunderstood something?
I am wondering why the particles system in scatter exists. Because you really do not need it:
For example if i have a particle with the name "core" inside the "project" dir :
Now if i want to load the "module" module. I will have the following code inside the "index.js"
It would be more logicaly if i have to specify the pratcile i am loading that module from while loading it. So rather than loading "module" it should be "core/module"
So why do i need the particles system then? It doesnt help me to organize my code, Or did i misunderstood something?