[NPMBUILD-11] Make the syntax more natural when called from JS Created: 08/Apr/16 Updated: 02/May/16 Resolved: 26/Apr/16 |
|
| Status: | Closed |
| Project: | Magnolia light-module build tools |
| Component/s: | None |
| Affects Version/s: | 0.5.0 |
| Fix Version/s: | 0.5.1 |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Maxime Michel | Assignee: | Maxime Michel |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 1h | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Sprint: | Basel 41 |
| Story Points: | 1 |
| Description |
|
Using the build tools in a Gulp file setting (gulpfile.js) has made me realize they behave differently than other NPM packages. To use rimraf, you would do:
rimraf('light-modules');
Whereas to use our build tools, you must use the very unnatural following syntax: new mb('node_modules', 'light-modules').build(); When it should be: build('node_modules', 'light-modules'); |