Uploaded image for project: 'Magnolia light-module build tools'
  1. Magnolia light-module build tools
  2. NPMBUILD-11

Make the syntax more natural when called from JS

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 0.5.1
    • 0.5.0
    • None
    • Basel 41
    • 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');
      

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mmichel Maxime Michel
              mmichel Maxime Michel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 1h
                    1h