forked from wellcometrust/next-plugin-transpile-modules
-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from martpie/scss-fix-9.5.0
Potential fix for CSS and SCSS issues
- Loading branch information
Showing
46 changed files
with
14,211 additions
and
7,314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
const withTM = require('./lib/next-transpile-modules')(['shared', 'shared-ts', 'shared-ui', 'lodash-es']); | ||
const withTM = require('../../../next-transpile-modules')(['shared', 'shared-ts', 'shared-ui', 'lodash-es']); | ||
|
||
module.exports = withTM({}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../basic/pages |
5 changes: 5 additions & 0 deletions
5
src/__tests__/__apps__/yarn-workspaces/_shared-ts/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
src/__tests__/__apps__/yarn-workspaces/_shared-ts/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "shared-ts", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"description": "" | ||
} |
2 changes: 2 additions & 0 deletions
2
src/__tests__/__apps__/yarn-workspaces/_shared-ts/utils/calc.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const add = (a: number, b: number) => a + b; | ||
export const substract = (a: number, b: number) => a - b; |
16 changes: 16 additions & 0 deletions
16
src/__tests__/__apps__/yarn-workspaces/_shared-ui/components/Button.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import styles from './Button.module.css'; | ||
|
||
function Button(props) { | ||
return ( | ||
<button | ||
type='button' | ||
// Note how the "error" class is accessed as a property on the imported | ||
// `styles` object. | ||
className={styles.error} | ||
> | ||
{props.children} | ||
</button> | ||
); | ||
} | ||
|
||
export default Button; |
4 changes: 4 additions & 0 deletions
4
src/__tests__/__apps__/yarn-workspaces/_shared-ui/components/Button.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.error { | ||
color: white; | ||
background-color: red; | ||
} |
7 changes: 7 additions & 0 deletions
7
src/__tests__/__apps__/yarn-workspaces/_shared-ui/components/Input.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import styles from './Input.module.scss'; | ||
|
||
function Input() { | ||
return <input type='text' className={styles.input} />; | ||
} | ||
|
||
export default Input; |
9 changes: 9 additions & 0 deletions
9
src/__tests__/__apps__/yarn-workspaces/_shared-ui/components/Input.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$padding: 10px; | ||
$bg: black; | ||
$color: white; | ||
|
||
.input { | ||
padding: $padding; | ||
background-color: $bg; | ||
color: $color; | ||
} |
79 changes: 79 additions & 0 deletions
79
src/__tests__/__apps__/yarn-workspaces/_shared-ui/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
src/__tests__/__apps__/yarn-workspaces/_shared-ui/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "shared-ui", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"react": "^16.12.0", | ||
"react-dom": "^16.12.0" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
src/__tests__/__apps__/yarn-workspaces/_shared-ui/styles/_variables.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$background: red; |
5 changes: 5 additions & 0 deletions
5
src/__tests__/__apps__/yarn-workspaces/_shared-ui/styles/another-global.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@import 'variables'; | ||
|
||
body { | ||
background-color: $background; | ||
} |
4 changes: 4 additions & 0 deletions
4
src/__tests__/__apps__/yarn-workspaces/_shared-ui/styles/global.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
body { | ||
background-color: black; | ||
color: white; | ||
} |
5 changes: 5 additions & 0 deletions
5
src/__tests__/__apps__/yarn-workspaces/_shared-ui/styles/yet-another-global.sass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
$base-color: black | ||
$border-dark: rgba($base-color, 0.88) | ||
|
||
body | ||
border: 1px solid $border-dark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const multiply = (a, b) => a * b; |
5 changes: 5 additions & 0 deletions
5
src/__tests__/__apps__/yarn-workspaces/_shared/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.