-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 #17695 from storybookjs/16210-fix-docs-dependencies
Addon-docs: Refactor docs support into individual framework packages
- Loading branch information
Showing
344 changed files
with
2,095 additions
and
1,015 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from '../dist/ts3.9/frameworks/angular/index.d'; | ||
export declare const setCompodocJson: (compodocJson: any) => void; |
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 +1,7 @@ | ||
module.exports = require('../dist/esm/frameworks/angular/index'); | ||
/* eslint-disable no-underscore-dangle */ | ||
/* global window */ | ||
|
||
export const setCompodocJson = (compodocJson) => { | ||
// @ts-ignore | ||
window.__STORYBOOK_COMPODOC_JSON__ = compodocJson; | ||
}; |
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 +1,6 @@ | ||
module.exports = require('../dist/esm/frameworks/ember'); | ||
/* eslint-disable no-underscore-dangle */ | ||
/* global window */ | ||
|
||
export const setJSONDoc = (jsondoc) => { | ||
window.__EMBER_GENERATED_DOC_JSON__ = jsondoc; | ||
}; |
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,16 +1,16 @@ | ||
const getFrameworkPresets = (framework) => { | ||
try { | ||
return [require.resolve(`./dist/cjs/frameworks/${framework}/preset`)]; | ||
} catch (err) { | ||
// there is no custom config for the user's framework, do nothing | ||
return []; | ||
} | ||
}; | ||
const { findDistEsm } = require('@storybook/core-common'); | ||
const { webpack } = require('./dist/cjs/frameworks/common/preset'); | ||
|
||
function managerEntries(entry = [], options) { | ||
return [...entry, findDistEsm(__dirname, 'register')]; | ||
} | ||
|
||
function config(entry = [], options = {}) { | ||
return [findDistEsm(__dirname, 'frameworks/common/config'), ...entry]; | ||
} | ||
|
||
module.exports = (storybookOptions, presetOptions) => { | ||
return [ | ||
{ name: require.resolve('./common-preset'), options: presetOptions }, | ||
{ name: require.resolve('./dist/cjs/frameworks/common/preset'), options: presetOptions }, | ||
...getFrameworkPresets(storybookOptions.framework), | ||
]; | ||
module.exports = { | ||
webpack, | ||
managerEntries, | ||
config, | ||
}; |
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 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
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.