-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: React project base with Refresh and Linaria support 🎊 (#75)
BREAKING CHANGE: React projects must install Refresh and Linaria packages
- Loading branch information
1 parent
e1b116e
commit a0a01ed
Showing
10 changed files
with
9,026 additions
and
9,049 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
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 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import { testEnv } from './test-env' | ||
|
||
describe('babelBase', () => { | ||
test('returns true for a single environment', () => { | ||
it('returns true for a single environment', () => { | ||
expect(testEnv('development', ['development'])).toBe(true) | ||
}) | ||
|
||
test('returns true for a multiple environments', () => { | ||
it('returns true for a multiple environments', () => { | ||
expect(testEnv('development', ['development', 'test'])).toBe(true) | ||
}) | ||
|
||
test('returns false when unmatched', () => { | ||
it('returns false when unmatched', () => { | ||
expect(testEnv('development', ['production'])).toBe(false) | ||
}) | ||
}) |
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,2 +1,9 @@ | ||
import { TransformOptions } from '@babel/core' | ||
|
||
/** Supported environment values */ | ||
export type Env = 'development' | 'production' | 'test' | ||
|
||
/** Package transform options includes an env map by default */ | ||
export type BaseTransformOptions = TransformOptions & { | ||
env: { [environment: string]: TransformOptions } | ||
} |