-
Notifications
You must be signed in to change notification settings - Fork 34
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
Chore: Modernize Dependencies #236
Changes from all commits
1d29b29
b224229
1edf7d4
3a4e47b
2cc9aa7
8cf0d7c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", { | ||
"loose": true, | ||
"modules": "commonjs", | ||
"targets": { | ||
"node": "6" | ||
} | ||
} | ||
] | ||
], | ||
"plugins": ["add-module-exports"] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"env": { | ||
"node": true | ||
}, | ||
"ecmaFeatures": { | ||
"arrowFunctions": true, | ||
"blockBindings": true, | ||
"classes": true, | ||
"defaultParams": true, | ||
"destructuring": true, | ||
"forOf": true, | ||
"modules": true, | ||
"objectLiteralComputedProperties": true, | ||
"objectLiteralShorthandMethods": true, | ||
"objectLiteralShorthandProperties": true, | ||
"spread": true, | ||
"superInFunctions": true, | ||
"templateStrings": true, | ||
"unicodeCodePointEscapes": true, | ||
"jsx": true | ||
"parser": "babel-eslint", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only structure/formatting changes in this file. ESLint threw errors with the old config. |
||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"arrowFunctions": true, | ||
"blockBindings": true, | ||
"classes": true, | ||
"defaultParams": true, | ||
"destructuring": true, | ||
"forOf": true, | ||
"modules": true, | ||
"objectLiteralComputedProperties": true, | ||
"objectLiteralShorthandMethods": true, | ||
"objectLiteralShorthandProperties": true, | ||
"spread": true, | ||
"superInFunctions": true, | ||
"templateStrings": true, | ||
"unicodeCodePointEscapes": true, | ||
"jsx": true | ||
} | ||
}, | ||
"rules": { | ||
"quotes": "single" | ||
"quotes": [2, "single"] | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,27 +7,30 @@ | |
"test": "test" | ||
}, | ||
"dependencies": { | ||
"icss-replace-symbols": "1.1.0", | ||
"postcss": "6.0.1", | ||
"postcss-modules-extract-imports": "1.1.0", | ||
"postcss-modules-local-by-default": "1.2.0", | ||
"postcss-modules-scope": "1.1.0", | ||
"postcss-modules-values": "1.3.0" | ||
"icss-replace-symbols": "^1.1.0", | ||
"postcss": "^7.0.32", | ||
"postcss-modules-extract-imports": "^2.0.0", | ||
"postcss-modules-local-by-default": "^3.0.2", | ||
"postcss-modules-scope": "^2.2.0", | ||
"postcss-modules-values": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel": "5.8.29", | ||
"babel-eslint": "7.1.0", | ||
"babelify": "7.3.0", | ||
"chokidar-cli": "1.1.0", | ||
"eslint": "3.10.1", | ||
"mocha": "3.1.2" | ||
"@babel/cli": "7.10.3", | ||
"@babel/core": "7.10.3", | ||
"@babel/preset-env": "7.10.3", | ||
"@babel/register": "7.10.3", | ||
"babel-eslint": "10.1.0", | ||
"babel-plugin-add-module-exports": "1.0.2", | ||
"chokidar-cli": "2.1.0", | ||
"eslint": "7.3.0", | ||
"mocha": "8.0.1" | ||
}, | ||
"scripts": { | ||
"lint": "eslint src", | ||
"lint": "eslint src test", | ||
"build": "babel --out-dir lib src", | ||
"autotest": "chokidar src test -c 'npm test'", | ||
"test": "mocha --compilers js:babel/register", | ||
"prepublish": "rm -rf lib/* && npm run build" | ||
"test": "mocha -r @babel/register", | ||
"prepublishOnly": "rm -rf lib/* && npm run build" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The "prepublish" hook is deprecated |
||
}, | ||
"repository": { | ||
"type": "git", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is all that changed given the new dependency set! |
||
._values_borders__dashed { | ||
border: 4px dashed; | ||
} | ||
|
||
._values_colors__text-primary { | ||
color: #f01; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was needed because Babel 6 (and thus 7) no longer transform to
module.exports
by default. So in order to maintain current API this plugin was needed.