<commit_before>gulp-concat-script
==============

Parses js files, finds `document.write('<script src="*.js"></script>')` directive and includes these files.

USAGE
-----
```javascript
var gulp = require('gulp'),
    concatScript = require('gulp-concat-script');

gulp.task("scripts", function() {
	gulp.src("js/config.js")
		.pipe(concatScript())
		.pipe(gulp.dest("dist/js/"));
}); 
```

config.js:
```javascript
document.write('<script src="libs/jquery.js"></script>');
document.write('<script src="libs/bootstrap.js"></script>');
document.write('<script src="js/app.js"></script>');
```

KNOWN ISSUES
------------
1. Cannot process minified files
2. Cannot process urls<commit_msg>Update readme.<commit_after># gulp-concat-script

Parses js files, finds `document.write('<script src="*.js"></script>')` directive and includes these files.

## Installation

Install package with NPM and add it to your development dependencies:

`npm install --save-dev gulp-concat-script

## Usage

```javascript
var gulp = require('gulp'),
    concatScript = require('gulp-concat-script');

gulp.task("scripts", function() {
	gulp.src("js/config.js")
		.pipe(concatScript())
		.pipe(gulp.dest("dist/js/"));
}); 
```

config.js:
```javascript
document.write('<script src="libs/jquery.js"></script>');
document.write('<script src="libs/bootstrap.js"></script>');
document.write('<script src="js/app.js"></script>');
```

## Know issues

1. Cannot process minified files
2. Cannot process urls

## License

[The MIT Lincense](https://github.com/wenzhixin/gulp-concat-script/blob/master/LICENSE)
{'fraction_non_alphanumeric': 0.21215959468017734, 'fraction_numerical': 0.00253324889170361, 'mean_word_length': 5.076923076923077, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 1, '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': '5842788', 'n_tokens_mistral': 532, 'n_tokens_neox': 502, 'n_words': 111}