Skip to content

Commit 5a38537

Browse files
author
Mihai Ionut Vilcu
committed
Fixes the build process, updates the version number.
1 parent de64b6e commit 5a38537

7 files changed

+13
-13
lines changed

Gruntfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function gruntConfig(grunt) {
1515

1616
copy: {
1717
build: {
18-
src: '<%= pkg.name %>.js',
18+
src: '<%= pkg.main %>',
1919
dest: 'dist/verbalexpressions.js',
2020
},
2121
},
@@ -37,7 +37,7 @@ module.exports = function gruntConfig(grunt) {
3737
},
3838
dist: {
3939
files: {
40-
'dist/verbalexpressions.min.js': ['<%= pkg.name %>.js'],
40+
'dist/verbalexpressions.min.js': ['<%= pkg.main %>'],
4141
},
4242
},
4343
},

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VerbalExpressions v0.2.0
1+
VerbalExpressions v0.2.1
22
=====================
33

44
[![Build Status](https://travis-ci.org/VerbalExpressions/JSVerbalExpressions.svg)](https://travis-ci.org/VerbalExpressions/JSVerbalExpressions)

VerbalExpressions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* VerbalExpressions JavaScript Library v0.2.0
2+
* VerbalExpressions JavaScript Library v0.2.1
33
* https://github.com/VerbalExpressions/JSVerbalExpressions
44
*
55
*

dist/verbalexpressions.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* VerbalExpressions JavaScript Library v0.2.0
2+
* VerbalExpressions JavaScript Library v0.2.1
33
* https://github.com/VerbalExpressions/JSVerbalExpressions
44
*
55
*
@@ -392,12 +392,12 @@
392392

393393
// UMD (Universal Module Definition), URL: https://github.com/umdjs/umd
394394
// Supports AMD, CommonJS and the browser
395-
if (typeof root.module !== 'undefined' && root.module.exports) {
395+
if (typeof module !== 'undefined' && module.exports) {
396396
// Node.js Module
397397
module.exports = createVerbalExpression;
398-
} else if (typeof root.define === 'function' && root.define.amd) {
398+
} else if (typeof define === 'function' && define.amd) {
399399
// AMD Module
400-
root.define(MODULE_NAME, [], function define() {
400+
define(MODULE_NAME, [], function define() {
401401
return VerbalExpression;
402402
});
403403
} else {

dist/verbalexpressions.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/verbalexpressions.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "verbal-expressions",
33
"description": "JavaScript Regular expressions made easy",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"keywords": [
66
"regular expressions",
77
"regex"

0 commit comments

Comments
 (0)