Skip to content

Commit 5bf6b0e

Browse files
committed
v1.1.1 - uncompressed browser bundle is now correctly in development mode
1 parent f0a22aa commit 5bf6b0e

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 1.1.1 / 2015-01-21
2+
3+
Fixed: uncompressed browser bundle was not actually in development mode, as
4+
documented in README.
5+
16
# 1.1.0 / 2015-01-18
27

38
Added: grid components: `Container`, `Row`, `Col` and `Field`

dist/newforms-bootstrap.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* newforms-bootstrap 1.1.0 - https://github.com/insin/newforms-bootstrap
2+
* newforms-bootstrap 1.1.1 - https://github.com/insin/newforms-bootstrap
33
* MIT Licensed
44
*/
55
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o;"undefined"!=typeof window?o=window:"undefined"!=typeof global?o=global:"undefined"!=typeof self&&(o=self),o.BootstrapForm=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
@@ -24,7 +24,7 @@ var noobj = {}
2424

2525
var warn = function() {}
2626

27-
if ("production" !== "production") {
27+
if ("production" !== "development") {
2828
warn = function(message ) {for (var args=[],$__0=1,$__1=arguments.length;$__0<$__1;$__0++) args.push(arguments[$__0]);
2929
var index = 0
3030
console.warn('[newforms-bootstrap] Warning: ' + message.replace(/%s/g, function() {return args[index++];}))
@@ -345,28 +345,28 @@ function calculateColumnProps(childProps, options) {
345345
})
346346

347347
if (needColSizeIndexes.length === 0) {
348-
("production" !== "production" ? warn(
348+
("production" !== "development" ? warn(
349349
'[Row %s] All Cols/Fields already have %s column units specified, so ' +
350350
'you don\'t need to use autoColumns.',
351351
rowNum, colProp
352352
) : null)
353353
}
354354
else if (availableCols < 0) {
355-
("production" !== "production" ? warn(
355+
("production" !== "development" ? warn(
356356
'[Row %s] Too many %s column units specified - widths and offsets ' +
357357
'added up to %s.',
358358
rowNum, colProp, 12 - availableCols
359359
) : null)
360360
}
361361
else if (availableCols === 0) {
362-
("production" !== "production" ? warn(
362+
("production" !== "development" ? warn(
363363
'[Row %s] There are no %s column units left to distribute to the %s ' +
364364
'Cols/Fields which needthem.',
365365
rowNum, colProp, needColSizeIndexes.length
366366
) : null)
367367
}
368368
else if (availableCols < needColSizeIndexes.length) {
369-
("production" !== "production" ? warn(
369+
("production" !== "development" ? warn(
370370
'[Row %s] There are more Cols/Fields needing column widths ' +
371371
'(%s) than there are %s column units remaining to distribute (%s).',
372372
rowNum, needColSizeIndexes.length, colProp, availableCols

dist/newforms-bootstrap.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var gutil = require('gulp-util')
1515
process.env.NODE_ENV = gutil.env.production ? 'production' : 'development'
1616

1717
var pkg = require('./package.json')
18-
var devBuild = gutil.env.production ? '' : ' (dev build at ' + (new Date()).toUTCString() + ')'
18+
var devBuild = gutil.env.release ? '' : ' (dev build at ' + (new Date()).toUTCString() + ')'
1919
var distHeader = '/*!\n\
2020
* <%= pkg.name %> <%= pkg.version %><%= devBuild %> - <%= pkg.homepage %>\n\
2121
* <%= pkg.license %> Licensed\n\
@@ -24,10 +24,6 @@ var distHeader = '/*!\n\
2424
var jsSrcPaths = './src/**/*.js*'
2525
var jsLibPaths = './lib/**/*.js'
2626

27-
gulp.task('clean-dist', function(cb) {
28-
del('./dist/*.js', cb)
29-
})
30-
3127
gulp.task('clean-lib', function(cb) {
3228
del(jsLibPaths, cb)
3329
})
@@ -45,7 +41,7 @@ gulp.task('lint-js', ['transpile-js'], function() {
4541
.pipe(jshint.reporter('jshint-stylish'))
4642
})
4743

48-
gulp.task('bundle-js', ['clean-dist', 'lint-js'], function() {
44+
gulp.task('bundle-js', ['lint-js'], function() {
4945
var b = browserify(pkg.main, {
5046
debug: !!gutil.env.debug
5147
, standalone: pkg.standalone

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "newforms-bootstrap",
33
"description": "Bootstrap integration for newforms",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"main": "./lib/index.js",
66
"standalone": "BootstrapForm",
77
"homepage": "https://github.com/insin/newforms-bootstrap",
@@ -35,7 +35,7 @@
3535
},
3636
"scripts": {
3737
"debug": "gulp --debug",
38-
"dist": "gulp bundle-js --production",
38+
"dist": "gulp bundle-js --production --release && gulp bundle-js --development --release",
3939
"test": "gulp transpile-js && tape test/*.js",
4040
"watch": "gulp"
4141
},

0 commit comments

Comments
 (0)