Skip to content

Commit

Permalink
Remove lib/ from gitignore to workaround yarn bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGabriel committed Feb 2, 2018
1 parent 31085d3 commit db450a0
Show file tree
Hide file tree
Showing 7 changed files with 691 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ TODO
*.log
node_modules
tmp
lib
example/bundle.js
yarn.lock
9 changes: 9 additions & 0 deletions lib/add-class.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

module.exports = addClass;

function addClass(existing, added) {
if (!existing) return added;
if (existing.indexOf(added) > -1) return existing;
return existing + ' ' + added;
}
Loading

0 comments on commit db450a0

Please sign in to comment.