-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(monorepo): migrate frontend bundling from webpack to vite (#14405)
migrate frontend bundler from webpack to vite Co-authored-by: Jamey Huffnagle <[email protected]> Co-authored-by: Brian Cooper <[email protected]> Co-authored-by: koji <[email protected]> Co-authored-by: Jethary <[email protected]> Co-authored-by: ncdiehl11 <[email protected]> Co-authored-by: smb2268 <[email protected]> Co-authored-by: Brent Hagen <[email protected]>
- Loading branch information
1 parent
9bbcc02
commit 2bab955
Showing
1,824 changed files
with
56,898 additions
and
34,053 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
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
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 |
---|---|---|
|
@@ -159,3 +159,4 @@ opentrons-robot-app.tar.gz | |
|
||
# asdf versions file | ||
.tool-versions | ||
mock_dir |
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,20 +1,21 @@ | ||
'use strict' | ||
|
||
const { baseConfig } = require('@opentrons/webpack-config') | ||
|
||
module.exports = { | ||
webpackFinal: config => ({ | ||
...config, | ||
module: { ...config.module, rules: baseConfig.module.rules }, | ||
plugins: [...config.plugins, ...baseConfig.plugins], | ||
}), | ||
stories: [ | ||
'../components/**/*.stories.@(js|jsx|ts|tsx)', | ||
'../app/**/*.stories.@(js|jsx|ts|tsx)', | ||
], | ||
|
||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'storybook-addon-pseudo-states', | ||
], | ||
|
||
framework: { | ||
name: '@storybook/react-vite', | ||
options: {}, | ||
}, | ||
|
||
docs: { | ||
autodocs: true, | ||
}, | ||
} |
File renamed without changes.
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,6 +1,27 @@ | ||
// mock electron-store | ||
'use strict' | ||
import { vi } from 'vitest' | ||
import { DEFAULTS_V12, migrate } from '../app-shell-odd/src/config/migrate' | ||
Check warning on line 4 in __mocks__/electron-store.js GitHub Actions / js checks
|
||
|
||
module.exports = jest.createMockFromModule( | ||
'../app-shell/node_modules/electron-store' | ||
) | ||
// will by default mock the config dir. if you need other behaavior you can | ||
// override this mock (see app-shell/src/__tests__/discovery.test.ts for an example) | ||
const Store = vi.fn(function () { | ||
this.store = vi.fn(() => { | ||
return {} | ||
}) | ||
this.get = vi.fn(property => { | ||
return {} | ||
}) | ||
this.onDidChange = vi.fn() | ||
}) | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default Store | ||
|
||
// const Store = vi.fn(function () { | ||
// this.store = vi.fn(() => migrate(DEFAULTS_V12)) | ||
// this.get = vi.fn(property => { | ||
// return this.store()[property] | ||
// }) | ||
// this.onDidChange = vi.fn() | ||
// }) |
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
Oops, something went wrong.