Skip to content

Commit

Permalink
Merge pull request #72 from 6km/main
Browse files Browse the repository at this point in the history
create-play: add support for older node versions
  • Loading branch information
atapas authored Apr 20, 2022
2 parents bf702e3 + 42a529d commit e515569
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plop-templates/component.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

import { useLocation } from 'react-router-dom';
import { getPlayById } from 'meta/play-meta-util';

import PlayHeader from 'common/playlists/PlayHeader';
Expand Down
4 changes: 4 additions & 0 deletions plopfile.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
String.prototype.replaceAll = String.prototype.replaceAll || function(string, replaced) {
return this.replace(new RegExp(string, 'g'), replaced);
};

module.exports = plop => {
plop.setHelper('trim', str => str.trim());
plop.setHelper('removeAllSpaces', str => str.replaceAll(/\s/g,''));
Expand Down

1 comment on commit e515569

@vercel
Copy link

@vercel vercel bot commented on e515569 Apr 20, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.