<commit_before>/* global require, module */

'use strict'

let cssnano    = require('cssnano')
let postcss    = broc('postcss')
let funnel     = broc('funnel')
let mergeTrees = broc('merge-trees')
let live       = broc('inject-livereload')
let env        = broc('env').getEnv()

let plugins = [
  {
    module: plugin('import')
  },
  {
    module: plugin('cssnext'),
    options: {
      browsers: '> 2%, last 2 versions, Firefox 38',
      features: { rem: false }
    }
  },
  {
    module: plugin('responsive-type')
  }
]

let icons = funnel('node_modules/font-awesome/fonts', {
  destDir: 'fonts'
})

let assets = mergeTrees([ funnel('assets'), icons ])

let css = postcss(['css'], 'adcssy.css', 'css/adcssy.css', plugins, {
  inline:     false,
  annotation: 'adcssy.css.map'
})

plugins = plugins.concat([{ module: cssnano }])

let minified = postcss(['css'], 'adcssy.css', 'css/adcssy.min.css', plugins, {
  inline:     false,
  annotation: 'adcssy.min.css.map'
})

let trees = [ css, minified, assets ]

if (env === 'development') {
  let html = live('test', { destDir: '/' })

  trees.push(html)
}

module.exports = mergeTrees(trees)

function broc(m) {
  return require('broccoli-' + m)
}

function plugin(p) {
  return require('postcss-' + p)
}
<commit_msg>Use Firefox ESR instead of Firefox 38 in browser query<commit_after>/* global require, module */

'use strict'

let cssnano    = require('cssnano')
let postcss    = broc('postcss')
let funnel     = broc('funnel')
let mergeTrees = broc('merge-trees')
let live       = broc('inject-livereload')
let env        = broc('env').getEnv()

let plugins = [
  {
    module: plugin('import')
  },
  {
    module: plugin('cssnext'),
    options: {
      browsers: '> 2%, last 2 versions, Firefox ESR',
      features: { rem: false }
    }
  },
  {
    module: plugin('responsive-type')
  }
]

let icons = funnel('node_modules/font-awesome/fonts', {
  destDir: 'fonts'
})

let assets = mergeTrees([ funnel('assets'), icons ])

let css = postcss(['css'], 'adcssy.css', 'css/adcssy.css', plugins, {
  inline:     false,
  annotation: 'adcssy.css.map'
})

plugins = plugins.concat([{ module: cssnano }])

let minified = postcss(['css'], 'adcssy.css', 'css/adcssy.min.css', plugins, {
  inline:     false,
  annotation: 'adcssy.min.css.map'
})

let trees = [ css, minified, assets ]

if (env === 'development') {
  let html = live('test', { destDir: '/' })

  trees.push(html)
}

module.exports = mergeTrees(trees)

function broc(m) {
  return require('broccoli-' + m)
}

function plugin(p) {
  return require('postcss-' + p)
}

{'fraction_non_alphanumeric': 0.17829457364341086, 'fraction_numerical': 0.0031007751937984496, 'mean_word_length': 3.4195205479452055, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5231180', 'n_tokens_mistral': 970, 'n_tokens_neox': 921, 'n_words': 213}