{"size": 3898, "ext": "js", "max_stars_repo_path": "webapps/camunda-bpm-sdk-js/grunt/config/browserify.js", "max_stars_repo_name": "iurybakov/camunda-bpm-platform", "max_stars_repo_stars_event_min_datetime": "2015-01-02T07:43:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T22:31:45.000Z", "max_issues_repo_path": "webapps/camunda-bpm-sdk-js/grunt/config/browserify.js", "max_issues_repo_name": "iurybakov/camunda-bpm-platform", "max_issues_repo_issues_event_min_datetime": "2015-01-12T22:06:28.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-24T13:26:29.000Z", "max_forks_repo_path": "webapps/camunda-bpm-sdk-js/grunt/config/browserify.js", "max_forks_repo_name": "iurybakov/camunda-bpm-platform", "max_forks_repo_forks_event_min_datetime": "2015-01-02T03:39:25.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T06:04:37.000Z"}
{"max_stars_count": 2577, "max_issues_count": 839, "max_forks_count": 1270, "avg_line_length": 28.6617647059, "max_line_length": 92, "alphanum_fraction": 0.439969215}
/*
 * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
 * under one or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information regarding copyright
 * ownership. Camunda licenses this file to you under the Apache License,
 * Version 2.0; you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

'use strict';
module.exports = function(config, browserifyConf) {
  config = config || {};

  browserifyConf['sdk-js'] = {
      options: {
        browserifyOptions: {
          standalone: 'CamSDK'
        },
        transform: [
        [ 'babelify',
          {
            global: true,
            compact: false,
            ignore: [/node_modules(?:\/|\\{1,2})core-js/],
            presets: [
              [
                '@babel/preset-env',
                {
                  targets:
                    'last 1 chrome version, last 1 firefox version, last 1 edge version',
                  forceAllTransforms: true,
                  useBuiltIns: 'usage',
                  corejs: 3
                }
              ]
            ]
          }]
        ]
      },
      files: {
        './dist/camunda-bpm-sdk.js': [
          'camunda-bpm-sdk-js/lib/index-browser.js'
        ]
      },

      src: [
        'camunda-bpm-sdk-js/lib/index-browser.js'
      ],
      dest: './dist/camunda-bpm-sdk.js'

    };

    // distTypeUtils: {
    //   options: {
    //     browserifyOptions: {
    //       standalone: 'CamSDK.utils.typeUtils'
    //     },
    //     transform: [
    //     [ 'babelify',
    //       {
    //         global: true,
    //         compact: false,
    //         ignore: [/node_modules(?:\/|\\{1,2})core-js/],
    //         presets: [
    //           [
    //             '@babel/preset-env',
    //             {
    //               targets:
    //                 'last 1 chrome version, last 1 firefox version, last 1 edge version',
    //               forceAllTransforms: true,
    //               useBuiltIns: 'usage',
    //               corejs: 3
    //             }
    //           ]
    //         ]
    //       }]
    //     ]
    //   },
    //   files: {
    //     'dist/camunda-bpm-sdk-type-utils.js': [
    //       './lib/forms/type-util.js'
    //     ]
    //   }
    // },

    // distAngular: {
    //   options: {
    //     browserifyOptions: {
    //       standalone: 'CamSDK'
    //     },
    //     transform: [
    //     [ 'babelify',
    //       {
    //         global: true,
    //         compact: false,
    //         ignore: [/node_modules(?:\/|\\{1,2})core-js/],
    //         presets: [
    //           [
    //             '@babel/preset-env',
    //             {
    //               targets:
    //                 'last 1 chrome version, last 1 firefox version, last 1 edge version',
    //               forceAllTransforms: true,
    //               useBuiltIns: 'usage',
    //               corejs: 3
    //             }
    //           ]
    //         ]
    //       }],
    //       [ 'exposify',
    //         {
    //           expose: {
    //             // do not embed angular, instead, use window.angular
    //             'angular': 'angular',
    //           }
    //         }
    //       ]
    //     ]
    //   },
    //   files: {
    //     'dist/camunda-bpm-sdk-angular.js': [
    //       './lib/angularjs/index.js'
    //     ]
    //   }
    // }
  // };
};
