Comments (9)
Can you prepare some good test case, that would reproduce that on my side? I haven't seen issues using ignoreErrors
option.
from modules-webmake.
I created a test: https://github.com/fluidblue/webmake-test
When you execute make
, webmake is called without --ignoreerrors and everything is fine. When executing make test
, webmake is called with --ignoreerrors and it throws an error like this:
webmake --ext=coffee --ignoreerrors ./src/test.coffee ./build/test.js
/usr/local/lib/node_modules/webmake/node_modules/deferred/lib/_ext.js:71
throw this.value;
^
Error: ENOENT, open '/Users/max/Desktop/webmake-test/build/test.js'
from modules-webmake.
@fluidblue thanks.
Issue lies in your build script, you call: webmake --ext=coffee --ignoreerrors ./src/test.coffee ./build/test.js
, which translates to webmake('./build/test.js', { ext: 'coffee', sourceMap: false, ignoreErrors: false })
.
Thing is that it should be --ignore-errors
, not --ignoreerrors
. Latter is unrecognized option, and argument that follows that is taken as its value (it's swallowed).
I'll rename this issue, to "Improve shell script arguments handling", and leave it open until we have it more bulletproof so such errors doesn't come as unnoticed.
from modules-webmake.
Ah I see. Now it works.
It is a little bit confusing, that the sourceMap option is --sourcemap on the commandline whereas ignoreErrors is --ignore-errors
It might be helpful to include the commandline equivalents in the options documentation.
from modules-webmake.
@fluidblue that's true, it's not consistent. I'll probably fix this and assure consistency from v0.4
from modules-webmake.
please update the docs with examples of how to use the command line args. it's not obvious that the args should be used in the way you describe in this issue.
i've run into this issue as well, but with different arguments (sourcemap
).
from modules-webmake.
@boxxxie in documentation, there's a command line name for each option provided: https://github.com/medikoo/modules-webmake#options, e.g.:
How would you improve it?
from modules-webmake.
examples, like how man files give a few examples of command use.
in this case, i have no idea how to use sourcemap
when writing my script. do i do -- sourcemap
-sourcemap
--sourcemap
or just sourcemap
from modules-webmake.
@boxxxie this falls into general knowledge on construction of CLI params. Follow: https://betterdev.blog/command-line-arguments-anatomy-explained/
from modules-webmake.
Related Issues (20)
- Text and HTML extensions? HOT 4
- Lazy-loading modules? HOT 1
- Bower package? HOT 5
- Support input from stdin HOT 2
- Parse error for scripts with a shebang HOT 3
- cant find module although module is their HOT 1
- Local modules and stdin causes webmake to hang HOT 2
- Requires local installation HOT 1
- Ability to validate or transform each included file HOT 3
- Errors in extensions are not returned to webmake HOT 3
- Extension for EJS HOT 2
- Can't set global export name programmatically ('name' option) HOT 2
- Extensions don't work for js files HOT 7
- Wrong transformation for empty module for special case HOT 1
- Cannot bundle module 'promise' HOT 3
- Nonexistence of node_modules makes wrong paths HOT 3
- It is possible to perform tree shaking for bundled module? HOT 1
- deprecated library during installing HOT 2
- Comparison ... may cause unexpected type coercion HOT 4
- How to use the fs node module with this? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modules-webmake.