You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to allow more flexibility for dependencies, transforms and readFile resolution, I suggest to create a minimalist interface with the logic of glslify-deps avoiding restrictions associated to the environment. This will delegates on top level, which strategy use for shader resolution in order to make this library compatible with systems without filesystem or node_modules. This library may be used in an environment which has not such capability, like a browser.
Drawbacks of the existing version
This library is using find-up and resolver for find packages, so this behaviour is restricted to be used in an environment where the system has a filesystem discoverable with node_packages directory. Also transform are retrieved using nodejscommonjs require.
4. [Use ES6 classes to remove nodejs inherits function and keep JSDoc documentation inheritance between classes, (this is compatible with nodejs V6, for retro compatibility, I will implement babel transpilation)](Feature/migrate to es6 #12)
Each goal will be a PR to accomplish a good tracking of changes and approbation for the maintainer,
Each PR will be rebased with the previous, so its important to merge using the implementation order
Motivation
In order to allow more flexibility for
dependencies
,transforms
andreadFile
resolution, I suggest to create a minimalist interface with the logic ofglslify-deps
avoiding restrictions associated to the environment. This will delegates on top level, which strategy use for shader resolution in order to make this library compatible with systems withoutfilesystem
ornode_modules
. This library may be used in an environment which has not such capability, like a browser.Drawbacks of the existing version
This library is using find-up and resolver for find packages, so this behaviour is restricted to be used in an environment where the system has a filesystem discoverable with
node_packages
directory. Also transform are retrieved usingnodejs
commonjs require.glslify-deps/index.js
Line 2 in 2683223
glslify-deps/index.js
Line 10 in 2683223
glslify-deps/index.js
Line 294 in 2683223
Main goals of this proposal
_resolveImports
into internal method_addDep
Secondary goals
Playground
http://rubeniskov.com/blog/en/shader-sandbox-glslify
The text was updated successfully, but these errors were encountered: