Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27857

Webpack: Add support for plugins from NPM

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 9.1.0
    • Component/s: Tooling
    • Labels:
      None
    • Sprint:
      2020 Sprint 9, 2020 Sprint 10, 2020 Sprint 11, 2020 Sprint 12, 2020 Sprint 13, 2020 Sprint 14, 2020 Sprint 15, 2020 Sprint 16

      Description

      Use case

      The plugin api in appcd-plugin-webpack currently only supports local plugins via the appcdWebpackPlugins property in package.json. To easily share plugins installing them via NPM should be supported as well.

      Plugin naming convention

      For plugins to be discoverable they must follow a specific naming convention:

      • appcd-webpack-plugin-<name>
      • @scope/appcd-webpack-plugin-<name>

      Plugins that are maintained by us can make use of the official scopes @appcd and @titanium-sdk and drop the leading appcd- prefix.

      • @appcd/webpack-plugin-<name>
      • @titanium-sdk/webpack-plugin-<name>

      Plugin API changes

      The hasPlugin methods needs to allow for easy matching of plugin names. Instead of requiring the full package name a short hand check should be available as well.

      • <name> to check for appcd-webpack-plugin-<name>
      • @scope/<name> to check for @scope/appcd-webpack-plugin-<name>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jvennemann Jan Vennemann
                Reporter:
                jvennemann Jan Vennemann
                Reviewer:
                Ewan Harris
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration