<commit_before># Mojular MoJ Elements

Collection of design patterns and components used within MoJ for use with Mojular.

## Installation

Install via NPM:

```
npm install https://github.com/mojular/moj-elements/tarball/master --save
```

Installation and usage are similar to [GOV.UK elements module](https://github.com/mojular/govuk-elements).

### Sass

**Gulp**

```js
// gulpfile.js

var gulp = require('gulp');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');

var loadPaths = require('mojular/sass-paths')([
  require('mojular-govuk-elements/package.json'),
  require('mojular-moj-elements/package.json')
]);

gulp.task('sass', function() {
  var result = gulp.src('path/to/your/local/styles/**/*.scss')
    .pipe(sourcemaps.init())
    .pipe(sass({ includePaths: loadPaths }).on('error', sass.logError))
    .pipe(sourcemaps.write('./'))
    .pipe(gulp.dest(paths.dest + 'css/'));
```

**Rails**
<commit_msg>Update docs<commit_after># Mojular MoJ Elements

Collection of design patterns and components used within MoJ for use with Mojular.

## Installation

Install via NPM:

```
npm install mojular/moj-elements --save
```

Installation and usage are similar to [GOV.UK elements module](https://github.com/mojular/govuk-elements).

### Sass

**Gulp**

```js
// gulpfile.js

var gulp = require('gulp');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');

var loadPaths = require('mojular/sass-paths')([
  require('mojular-govuk-elements/package.json'),
  require('mojular-moj-elements/package.json')
]);

gulp.task('sass', function() {
  var result = gulp.src('path/to/your/local/styles/**/*.scss')
    .pipe(sourcemaps.init())
    .pipe(sass({ includePaths: loadPaths }).on('error', sass.logError))
    .pipe(sourcemaps.write('./'))
    .pipe(gulp.dest(paths.dest + 'css/'));
```

**Rails**

{'fraction_non_alphanumeric': 0.18353067814854682, 'fraction_numerical': 0.0, 'mean_word_length': 4.5, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '4681018', 'n_tokens_mistral': 664, 'n_tokens_neox': 652, 'n_words': 135}