@ec-europa/ecl-builder
Europa Component Library builder
Last updated 2 years ago by yhuard .
EUPL-1.1 · Original npm · Tarball · package.json
$ cnpm install @ec-europa/ecl-builder 
SYNC missed versions from official npm registry.

ECL Builder

Configuration

By default, ecl-builder will read the ecl-builder.config.js file at the root of your project. You can use the -c or --config parameter if you want to give your configuration file another name.

Typically, this is what it should look like:

const path = require('path');
const isProd = process.env.NODE_ENV === 'production';

module.exports = {
  // Compile entry.js
  scripts: [{
    entry: path.resolve(__dirname, 'src/entry.js'),
    dest: path.resolve(__dirname, 'dist/output.js'),
    options: {
      sourceMap: isProd ? false : 'inline',
      moduleName: 'myModule',
    },
  }],
  // Compile entry.scss 
  styles: [{
    entry: path.resolve(__dirname, 'src/entry.scss'),
    dest: path.resolve(__dirname, 'dist/output.css'),
    options: {
      sourceMap: isProd ? 'file' : true,
    },
  }],
  // Copy files from src to dest
  copy: [{
    from: path.resolve(__dirname, 'src/fonts'),
    to: path.resolve(__dirname, 'dist/fonts'),
  }, {
    from: path.resolve(__dirname, 'src/images'),
    to: path.resolve(__dirname, 'dist/images'),
  }],
};

Current Tags

  • 0.14.0                                ...           latest (2 years ago)

30 Versions

  • 0.14.0                                ...           2 years ago
  • 0.13.0                                ...           2 years ago
  • 0.12.4                                ...           2 years ago
  • 0.12.3                                ...           2 years ago
  • 0.12.2                                ...           2 years ago
  • 0.12.1                                ...           2 years ago
  • 0.12.0                                ...           2 years ago
  • 0.11.0                                ...           2 years ago
  • 0.10.0                                ...           2 years ago
  • 0.9.6                                ...           2 years ago
  • 0.9.5                                ...           2 years ago
  • 0.9.4                                ...           2 years ago
  • 0.9.3                                ...           2 years ago
  • 0.9.2                                ...           2 years ago
  • 0.9.1                                ...           2 years ago
  • 0.9.0                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.3                                ...           2 years ago
  • 0.6.2                                ...           3 years ago
  • 0.6.1                                ...           3 years ago
  • 0.6.0                                ...           3 years ago
  • 0.5.1                                ...           3 years ago
  • 0.5.0                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.2                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Downloads
Today 0
This Week 33
This Month 33
Last Day 1
Last Week 61
Last Month 94
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |