Skip to content

Commit b041357

Browse files
committed
Added gulp and js minifier
1 parent 42e7f3f commit b041357

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

gulpfile.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var gulp = require('gulp');
2+
var uglify = require('gulp-uglify');
3+
var rename = require("gulp-rename");
4+
5+
gulp.task('build', function() {
6+
return gulp.src('src/*.js')
7+
.pipe(uglify())
8+
.pipe(rename({
9+
extname: '.min.js'
10+
}))
11+
.pipe(gulp.dest('dist'));
12+
});

package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "highlightjs-line-numbers.js",
3+
"version": "1.0.0",
4+
"description": "Highlight.js line numbers plugin.",
5+
"main": "gulpfile.js",
6+
"dependencies": {},
7+
"devDependencies": {
8+
"gulp": "^3.8.11",
9+
"gulp-rename": "^1.2.2",
10+
"gulp-uglify": "^1.2.0"
11+
},
12+
"scripts": {
13+
"test": "echo \"Error: no test specified\" && exit 1"
14+
},
15+
"repository": {
16+
"type": "git",
17+
"url": "https://github.com/wcoder/highlightjs-line-numbers.js.git"
18+
},
19+
"author": "Yauheni Pakala <[email protected]>",
20+
"license": "MIT",
21+
"bugs": {
22+
"url": "https://github.com/wcoder/highlightjs-line-numbers.js/issues"
23+
},
24+
"homepage": "https://github.com/wcoder/highlightjs-line-numbers.js"
25+
}

0 commit comments

Comments
 (0)