How to use the @ovh-ux/component-rollup-config function in @ovh-ux/component-rollup-config

To help you get started, we’ve selected a few @ovh-ux/component-rollup-config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ovh / manager / packages / manager / modules / server-sidebar / rollup.config.js View on Github external
import path from 'path';
import rollupConfig from '@ovh-ux/component-rollup-config';

const config = rollupConfig(
  {
    input: 'src/index.js',
  },
  {
    lessTildeImporter: {
      paths: [
        path.resolve(__dirname, 'node_modules'),
        path.resolve(__dirname, '../../../../node_modules'),
      ],
    },
  },
);

const outputs = [config.es()];

// if (process.env.BUILD === 'production') {
github ovh / manager / packages / manager / modules / hello / rollup.config.js View on Github external
import rollupConfig from '@ovh-ux/component-rollup-config';

const config = rollupConfig({
  input: 'src/index.js',
});

const outputs = [config.es({
  output: {
    sourcemap: false,
  },
})];

if (process.env.BUILD === 'production') {
  outputs.push(config.cjs());
  outputs.push(
    config.umd({
      output: {
        globals: {
          angular: 'angular',
github ovh / manager / packages / manager / modules / enterprise-cloud-database / rollup.config.js View on Github external
import rollupConfig from '@ovh-ux/component-rollup-config';

const config = rollupConfig({
  input: 'src/index.js',
});

const outputs = [config.es()];

if (process.env.BUILD === 'production') {
  outputs.push(config.cjs());
  outputs.push(
    config.umd({
      output: {
        globals: {
          angular: 'angular',
        },
      },
    }),
  );
github ovh / manager / packages / components / ng-ui-router-breadcrumb / rollup.config.js View on Github external
import rollupConfig from '@ovh-ux/component-rollup-config';

const config = rollupConfig({
  input: './src/index.js',
});

const outputs = [config.es()];

if (process.env.BUILD === 'production') {
  outputs.push(config.cjs());
  outputs.push(
    config.umd({
      output: {
        globals: {
          angular: 'angular',
        },
      },
    }),
  );
github ovh / manager / packages / manager / modules / cloud-universe-components / rollup.config.js View on Github external
import path from 'path';
import rollupConfig from '@ovh-ux/component-rollup-config';

const config = rollupConfig(
  {
    input: './src/index.js',
  },
  {
    lessTildeImporter: {
      paths: [
        path.resolve(__dirname, 'node_modules'),
        path.resolve(__dirname, '../../../../node_modules'),
      ],
    },
  },
);

export default [
  config.cjs(),
  config.umd({
github ovh / manager / packages / manager / modules / telecom-dashboard / rollup.config.js View on Github external
import rollupConfig from '@ovh-ux/component-rollup-config';
import path from 'path';

const config = rollupConfig({
  input: 'src/index.js',
}, {
  lessTildeImporter: {
    paths: [
      path.resolve(__dirname, 'node_modules'),
      path.resolve(__dirname, '../../../../node_modules'),
    ],
  },
});

const outputs = [config.es()];

if (process.env.BUILD === 'production') {
  outputs.push(config.cjs());
  outputs.push(config.umd());
}
github ovh / manager / packages / manager / modules / banner / rollup.config.js View on Github external
import path from 'path';
import rollupConfig from '@ovh-ux/component-rollup-config';

const config = rollupConfig(
  {
    input: 'src/index.js',
  },
  {
    lessTildeImporter: {
      paths: [
        path.resolve(__dirname, 'node_modules'),
        path.resolve(__dirname, '../../../../node_modules'),
      ],
    },
  },
);

const outputs = [config.es()];

if (process.env.BUILD === 'production') {
github ovh / manager / packages / components / ng-ovh-sso-auth-modal-plugin / rollup.config.js View on Github external
import rollupConfig from '@ovh-ux/component-rollup-config';

const config = rollupConfig({
  input: './src/index.js',
});

const outputs = [config.es()];

if (process.env.BUILD === 'production') {
  outputs.push(config.cjs());
  outputs.push(
    config.umd({
      output: {
        globals: {
          angular: 'angular',
          jquery: '$',
        },
      },
    }),
github ovh / manager / packages / manager / modules / navbar / rollup.config.js View on Github external
import path from 'path';
import rollupConfig from '@ovh-ux/component-rollup-config';

const config = rollupConfig(
  {
    input: 'src/index.js',
  },
  {
    lessTildeImporter: {
      paths: [
        path.resolve(__dirname, 'node_modules'),
        path.resolve(__dirname, '../../../../node_modules'),
      ],
    },
  },
);

const outputs = [
  config.es({
    output: {
github ovh / manager / packages / components / ng-ovh-sso-auth / rollup.config.js View on Github external
import rollupConfig from '@ovh-ux/component-rollup-config';

const config = rollupConfig({
  input: './src/index.js',
});

const outputs = [
  config.es(),
];

if (process.env.BUILD === 'production') {
  outputs.push(config.cjs());
  outputs.push(config.umd({
    output: {
      globals: {
        angular: 'angular',
      },
    },
  }));

@ovh-ux/component-rollup-config

Extensible Rollup configuration to build OVHcloud components.

BSD-3-Clause
Latest version published 12 months ago

Package Health Score

75 / 100
Full package analysis