sweetalert
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -1,2 +0,2 @@ | ||
var gulp = require('gulp'); | ||
var gulp = require('gulp'); | ||
@@ -17,2 +17,3 @@ var glob = require('glob'); | ||
var qunit = require('gulp-qunit'); | ||
var babel = require('gulp-babel'); | ||
@@ -62,2 +63,12 @@ // Lint Task | ||
// Compile ES5 CommonJS entry point | ||
gulp.task('commonjs', function() { | ||
gulp.src('./dev/sweetalert.es6.js') | ||
.pipe(babel()) | ||
.pipe(rename('sweetalert.js')) | ||
.pipe(gulp.dest('lib')); | ||
gulp.src('./dev/modules/*.js') | ||
.pipe(babel()) | ||
.pipe(gulp.dest('lib/modules')); | ||
}); | ||
@@ -99,2 +110,2 @@ // Concatenate & Minify JS | ||
// Default Task | ||
gulp.task('default', ['lint', 'sass', 'scripts', 'watch', 'test']); | ||
gulp.task('default', ['lint', 'sass', 'scripts', 'commonjs', 'watch', 'test']); |
{ | ||
"name": "sweetalert", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A beautiful replacement for JavaScript's \"alert\"", | ||
"main": "dist/sweetalert.min.js", | ||
"main": "lib/sweetalert.js", | ||
"directories": { | ||
@@ -10,3 +10,3 @@ "example": "example" | ||
"scripts": { | ||
"test": "make test" | ||
"test": "gulp test" | ||
}, | ||
@@ -34,5 +34,7 @@ "repository": { | ||
"gulp": "^3.9.0", | ||
"gulp-babel": "^5.2.1", | ||
"gulp-concat": "^2.4.3", | ||
"gulp-jshint": "^1.9.0", | ||
"gulp-minify-css": "^0.3.13", | ||
"gulp-qunit": "latest", | ||
"gulp-rename": "^1.2.0", | ||
@@ -44,5 +46,4 @@ "gulp-sass": "^2.0.1", | ||
"vinyl-buffer": "^1.0.0", | ||
"vinyl-source-stream": "^1.1.0", | ||
"gulp-qunit": "latest" | ||
"vinyl-source-stream": "^1.1.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
SweetAlert | ||
SweetAlert [![Build Status](https://travis-ci.org/t4t5/sweetalert.svg?branch=master)](https://travis-ci.org/t4t5/sweetalert) | ||
========== | ||
@@ -3,0 +3,0 @@ |
@@ -1,3 +0,1 @@ | ||
QUnit.config.reorder = false; | ||
// swal() sould add the modal to the DOM + make it visible | ||
@@ -4,0 +2,0 @@ test("modal shows up", function() { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
898859
4464
16