Skip to content

Commit

Permalink
Merge branch 'release/0.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
arcticicestudio committed Dec 18, 2018
2 parents 2fc351b + 54dd9ab commit 507e6b2
Show file tree
Hide file tree
Showing 180 changed files with 6,422 additions and 38 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ module.exports = {
},
settings: {
"import/resolver": {
jest: {
jestConfigFile: resolve(__dirname, "jest.config.js")
},
node: {
/* Resolve Webpack alias imports */
paths: [resolve(__dirname, "src"), resolve(__dirname, "src/components")]
Expand Down
17 changes: 17 additions & 0 deletions .svgo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
# Copyright (C) 2018-present Sven Greb <[email protected]>
#
# Project: Nord Docs
# Repository: https://github.com/arcticicestudio/nord-docs
# License: MIT

# Configuration for SVGO.
#
# References:
# - https://github.com/svg/svgo
# - https://github.com/svg/svgo/blob/master/.svgo.yml

multipass: true
js2svg:
pretty: true
indent: 2
223 changes: 223 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module.exports = {
"gatsby-plugin-remove-trailing-slashes",
"gatsby-plugin-no-sourcemaps",
"gatsby-transformer-yaml",
"gatsby-plugin-svgr",
{
resolve: "gatsby-plugin-canonical-urls",
options: {
Expand Down
8 changes: 5 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ module.exports = {
*/
moduleNameMapper: {
/* Reflect Webpack's `resolve.alias` configuration. */
"^assets(.*)$": "<rootDir>/src/assets$1",
"^atoms(.*)$": "<rootDir>/src/components/atoms$1",
"^config(.*)$": "<rootDir>/src/config$1",
"^containers(.*)$": "<rootDir>/src/components/containers$1",
"^data(.*)$": "<rootDir>/src/data$1",
"^layouts(.*)$": "<rootDir>/src/components/layouts$1",
"^molecules(.*)$": "<rootDir>/src/components/molecules$1",
"^nord-docs-test-utils(.*)$": "<rootDir>/test/__utils__$1",
"^organisms(.*)$": "<rootDir>/src/components/organisms$1",
"^pages(.*)$": "<rootDir>/src/pages$1",
"^stores(.*)$": "<rootDir>/src/stores$1",
Expand All @@ -61,8 +61,10 @@ module.exports = {
"^utils(.*)$": "<rootDir>/src/utils$1",
/* Map all import stylesheets to the "identity object proxy" module. */
".+\\.(css|styl|less|sass|scss)$": "identity-obj-proxy",
".+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"<rootDir>/test/__mocks__/file.js"
".+\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"<rootDir>/test/__mocks__/file.js",
/* Ensure React components loaded from SVG files are mocked correctly. */
".+\\.svg$": "<rootDir>/test/__mocks__/svgr.jsx"
},

/*
Expand Down
Loading

0 comments on commit 507e6b2

Please sign in to comment.