<commit_before>#!/usr/bin/env node
/* eslint no-console:0 */
var fs = require('fs');
var path = require('path');
var program = require('commander');
var camelize = require('camelize');
var nebula = require('./index');
var modules = require('./lib/base-config').defaultModules.filter( m => m !== 'banner');

function list(val) {
  return val.split(',');
}

program
  .usage('<entryFile> [options]')
  .description('http://marcohamersma.github.io/nebula.css/')
  .option('-c --config <path>', 'Path to JSON configuration file, defaults to .nebularc')
  .option('-o, --output <path>', 'Path to output file, stdout will be used otherwise')
  .option('-m, --modules [modules]', 'comma separated list of nebula modules to use', list);

// Add an option for all Nebula's default modules
modules.forEach( moduleName => {
  var option = camelize('no-' + moduleName);
  const message = 'Do not include ' + moduleName.replace(/-?classes/, '') + ' classes in the output css';

  program.option('--' + option, message);
});

// Add other options
program
  .option('--minify', 'Compress CSS output using CleanCSS')
  .option('--noBanner', 'Hide the “Powered by nebula.css…” banner from output css')
  .option('--noSourceMap', 'Do not generate a sourcemap file alongside the file defined in --output')
  .action(function(entryFile) {
    // Make sure we save the entryFile somewhere if it's passed
    program.entryFile = entryFile;
  })
  .parse(process.argv);

var configFilePath = path.join(process.cwd(), program.config || '.nebularc');
var configFile;
try {
  configFile = JSON.parse(fs.readFileSync(configFilePath, 'utf8'));
} catch (e) {
  if (e.code !== 'ENOENT') {
    console.log(e);
    process.exit(1);
  }
}

const nebulaConfig = Object.assign({}, configFile, {
  minify: !!program.minify,
  outFile: program.output,
  modules: program.modules
});

modules.forEach( m => {<commit_msg>Actually use the noSourceMap option in CLI<commit_after>#!/usr/bin/env node
/* eslint no-console:0 */
var fs = require('fs');
var path = require('path');
var program = require('commander');
var camelize = require('camelize');
var nebula = require('./index');
var modules = require('./lib/base-config').defaultModules.filter( m => m !== 'banner');

function list(val) {
  return val.split(',');
}

program
  .usage('<entryFile> [options]')
  .description('http://marcohamersma.github.io/nebula.css/')
  .option('-c --config <path>', 'Path to JSON configuration file, defaults to .nebularc')
  .option('-o, --output <path>', 'Path to output file, stdout will be used otherwise')
  .option('-m, --modules [modules]', 'comma separated list of nebula modules to use', list);

// Add an option for all Nebula's default modules
modules.forEach( moduleName => {
  var option = camelize('no-' + moduleName);
  const message = 'Do not include ' + moduleName.replace(/-?classes/, '') + ' classes in the output css';

  program.option('--' + option, message);
});

// Add other options
program
  .option('--minify', 'Compress CSS output using CleanCSS')
  .option('--noBanner', 'Hide the “Powered by nebula.css…” banner from output css')
  .option('--noSourceMap', 'Do not generate a sourcemap file alongside the file defined in --output')
  .action(function(entryFile) {
    // Make sure we save the entryFile somewhere if it's passed
    program.entryFile = entryFile;
  })
  .parse(process.argv);

var configFilePath = path.join(process.cwd(), program.config || '.nebularc');
var configFile;
try {
  configFile = JSON.parse(fs.readFileSync(configFilePath, 'utf8'));
} catch (e) {
  if (e.code !== 'ENOENT') {
    console.log(e);
    process.exit(1);
  }
}

const nebulaConfig = Object.assign({}, configFile, {
  minify: !!program.minify,
  outFile: program.output,
  modules: program.modules,
  useSourceMap: program.noSourceMap ? !program.noSourceMap : null
});

modules.forEach( m => {
{'fraction_non_alphanumeric': 0.17072538860103628, 'fraction_numerical': 0.0015544041450777201, 'mean_word_length': 4.168674698795181, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3323269', 'n_tokens_mistral': 1242, 'n_tokens_neox': 1213, 'n_words': 356}