miguelcastillo / amd-resolver Goto Github PK
View Code? Open in Web Editor NEWResolve module names to File objects
License: MIT License
Resolve module names to File objects
License: MIT License
The gulp version of the tests ran the compilation step before running tests. Grunt does not do this.
Solutions:
I think we should change the error type from Error
to TypeError
if we only accept strings, and a non-string object was passed. It also seems odd that on a string value ("") we throw that the caller should call with a string.
We check for a string value using !value
, while we should probably be doing a instanceof
comparison.
dist/amd-resolver.js
on every commit.https://github.com/wearefractal/vinyl#file
The idea is to hopefully use vinyl when running bit-loader on node. So, I would like to to match path
and base
... Currently there is a path, but it is really only the directory. And name
is the name of the file. So we would just need to move path
around and rename to base
and make path
the full path to the file.
https://github.com/MiguelCastillo/amd-resolver/blob/master/src/file.js#L130
/cc @Mark-Simulacrum
From what I have found on the internet, ?=testing=foo
is the query string, not the search string.
There is an addExtension
, but that conditionally adds the extension if one does not exist... But replaceExtension
will just replace anything that already there or add it one does not exist. This will be useful for the transformation pipeline in bit-loader
/cc @Mark-Simulacrum
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.