Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

making sed work with both unix and mac os x #17

Merged
merged 6 commits into from
Nov 27, 2019

Conversation

morozgrafix
Copy link
Contributor

Workaround for sed differences between GNU and OS X versions.

Hey Rodrigo, I know this repo is somewhat old. I grabbed it to make another MMM module and found that issue from a while ago. Here is my proposed solution based on https://stackoverflow.com/a/51060063

fixes #3

roramirez and others added 4 commits July 21, 2017 12:41
Version 1.2.0
The Gruntfile runs stylelint, which errors with "font-family-no-missing-generic-family-keyword" undefined.  This rule was added in styleline 8.3.0, and our package.json here is earlier than that.  Updating it to force a version that works.

Error running npm test:

```
Running "stylelint:simple" (stylelint) task
Warning: Running stylelint failed
Error: Undefined rule font-family-no-missing-generic-family-keyword
  at module.exports (/Users/ralberth/MagicMirror/modules/MMM-MinecraftStatus/node_modules/stylelint/lib/utils/configurationError.js:8:27)
  at Object.keys.forEach.ruleName (/Users/ralberth/MagicMirror/modules/MMM-MinecraftStatus/node_modules/stylelint/lib/augmentConfig.js:279:13)
  at Array.forEach (<anonymous>:null:null)
  at normalizeAllRuleSettings (/Users/ralberth/MagicMirror/modules/MMM-MinecraftStatus/node_modules/stylelint/lib/augmentConfig.js:275:29)
  at augmentConfigBasic.then.then.then.then.augmentedConfig (/Users/ralberth/MagicMirror/modules/MMM-MinecraftStatus/node_modules/stylelint/lib/augmentConfig.js:84:12)
  at <anonymous>:null:null
 Use --force to continue.
```

See stylelint/stylelint#3042 for description.
@morozgrafix
Copy link
Contributor Author

morozgrafix commented Nov 16, 2019

Travis build is failing due to some eslint errors but I don't think it has anything to do with my changes. 🤷‍♂

$ grunt
Loading "eslint.js" tasks...ERROR
>> SyntaxError: Unexpected token ...
Warning: Task "eslint" not found.� Use --force to continue.
Aborted due to warnings.

@morozgrafix
Copy link
Contributor Author

Bumped some of the package versions and bumped node versions for travis runs. Tests are passing now.

@roramirez roramirez changed the base branch from master to develop November 27, 2019 22:22
@roramirez
Copy link
Owner

Hey Sergey, Thanks you! This is a good work for issue with sed.

PS: Never a repo is too old if work for someones ;)

@roramirez
Copy link
Owner

I've change the PR against the develop branch

@roramirez roramirez merged commit 016ee9c into roramirez:develop Nov 27, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants