Skip to content

Commit

Permalink
1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
orcunsaltik committed Apr 27, 2021
1 parent 74bf41a commit f37236c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

# Modules
/node_modules
/nbproject/private/
11 changes: 5 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const pugOptKeys = [
'name' // compileClient
];

module.exports = (optsBase) => {
module.exports = (options) => {

optsBase = optsBase || {};
const keys = Object.keys(optsBase);
options = options || {};
const keys = Object.keys(options);

keys.forEach((key) => {
if (pugOptKeys.indexOf(key) < 0) {
Expand All @@ -33,9 +33,8 @@ module.exports = (optsBase) => {
});

return through.obj((file, encoding, callback) => {
// don't re-use opts as we may be called by gulp multiple times
// for different files
const opts = Object.assign({}, optsBase);

const opts = Object.assign({}, options);

if (!file.isBuffer()) {
throw new Error(`${PLUGIN_NAME}: Buffer Only!`);
Expand Down
3 changes: 3 additions & 0 deletions nbproject/project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
files.encoding=UTF-8
site.root.folder=
source.folder=
9 changes: 9 additions & 0 deletions nbproject/project.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.web.clientproject</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/clientside-project/1">
<name>gulp-pug-3</name>
</data>
</configuration>
</project>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gulp-pug-3",
"version": "1.2.1",
"version": "1.2.2",
"description": "Gulp plugin for compiling Pug templates using the latest stable version of Pug Template Engine.",
"main": "index.js",
"scripts": {
Expand Down

1 comment on commit f37236c

@mattpr
Copy link

@mattpr mattpr commented on f37236c Apr 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.