File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
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
+ } ) ;
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments