Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #174 from twitter/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
marti1125 committed Oct 9, 2015
2 parents 9eceb9f + 4458f9d commit d3e482b
Show file tree
Hide file tree
Showing 7 changed files with 320 additions and 91 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CLI Guide jQuery Plugin
# CLI Guide jQuery Plugin v0.1.3

[![npm version](http://marti1125.webfactional.com/npm.svg)](https://www.npmjs.com/package/cli-guide.js)
[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/twitter/cli-guide.js/master/LICENSE)
Expand Down
43 changes: 28 additions & 15 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,37 @@
var gulp = require('gulp');
var jsmin = require('gulp-jsmin');
var rename = require('gulp-rename');
var minifyCss = require('gulp-minify-css');
var gulp = require('gulp'),
jsmin = require('gulp-jsmin'),
rename = require('gulp-rename'),
minifyCss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify');

gulp.task('copy-fonts', function() {
return gulp.src('src/*.{ttf,otf}')
.pipe(gulp.dest('dist'));
gulp.task('publish', function() {
return gulp.src(['package.json','README.md','LICENSE','nano.gif','terminal.gif'])
.pipe(gulp.dest('dist'));
});

gulp.task('copy-original-files', function() {
return gulp.src('src/*.{css,js,ttf,otf}')
.pipe(gulp.dest('dist'));
});

gulp.task('minify-css', function() {
return gulp.src('src/*.css')
.pipe(minifyCss())
.pipe(gulp.dest('dist'));
.pipe(minifyCss())
.pipe(gulp.dest('dist'));
});

gulp.task('lint', function() {
return gulp.src(['src/*.js'])
.pipe(jshint())
.pipe(jshint.reporter('default'));
});

gulp.task('js', function () {
gulp.src('src/*.js')
.pipe(jsmin())
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest('dist'));
gulp.task('compress-js', function() {
return gulp.src('src/*.js')
.pipe(uglify())
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest('dist'))
});

gulp.task('default', ['minify-css', 'js', 'copy-fonts']);
gulp.task('default', ['minify-css', 'lint', 'compress-js', 'copy-original-files', 'publish']);
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cli-guide.js",
"version": "0.1.2",
"version": "0.1.3",
"description": "A Javascript library for creating interactive command line tutorials that run in your web browser.",
"directories": {
"test": "test"
Expand Down Expand Up @@ -31,7 +31,9 @@
"gulp": "3.8.11",
"gulp-jsmin": "0.1.5",
"gulp-rename": "1.2.2",
"gulp-minify-css": "1.1.3"
"gulp-minify-css": "1.1.3",
"gulp-jshint": "1.11.2",
"gulp-uglify": "1.4.1"
},
"dependencies": {}
}
5 changes: 5 additions & 0 deletions src/cli-guide.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ li.step a {
margin-bottom: 5px;
}

.not-active {
pointer-events: none;
cursor: default;
}

a.btn-step:hover {
background-color: #ABABAB;
}
Expand Down
Loading

0 comments on commit d3e482b

Please sign in to comment.