Skip to content

Commit

Permalink
Put standalone.js to every app
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-dv committed Oct 10, 2018
1 parent b9fb04b commit 2e11d18
Show file tree
Hide file tree
Showing 21 changed files with 80 additions and 11 deletions.
1 change: 0 additions & 1 deletion app/angular/src/server/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { buildDev } from '@storybook/core/server';

import options from './options';

buildDev(options);
8 changes: 8 additions & 0 deletions app/angular/standalone.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const build = require('@storybook/core/standalone');
const frameworkOptions = require('./dist/server/options').default;

async function buildStandalone(options) {
return build(options, frameworkOptions);
}

module.exports = buildStandalone;
1 change: 0 additions & 1 deletion app/ember/src/server/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { buildDev } from '@storybook/core/server';

import options from './options';

buildDev(options);
8 changes: 8 additions & 0 deletions app/ember/standalone.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const build = require('@storybook/core/standalone');
const frameworkOptions = require('./dist/server/options').default;

async function buildStandalone(options) {
return build(options, frameworkOptions);
}

module.exports = buildStandalone;
1 change: 0 additions & 1 deletion app/html/src/server/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { buildDev } from '@storybook/core/server';

import options from './options';

buildDev(options);
8 changes: 8 additions & 0 deletions app/html/standalone.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const build = require('@storybook/core/standalone');
const frameworkOptions = require('./dist/server/options').default;

async function buildStandalone(options) {
return build(options, frameworkOptions);
}

module.exports = buildStandalone;
1 change: 0 additions & 1 deletion app/marko/src/server/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { buildDev } from '@storybook/core/server';

import options from './options';

buildDev(options);
8 changes: 8 additions & 0 deletions app/marko/standalone.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const build = require('@storybook/core/standalone');
const frameworkOptions = require('./dist/server/options').default;

async function buildStandalone(options) {
return build(options, frameworkOptions);
}

module.exports = buildStandalone;
1 change: 0 additions & 1 deletion app/mithril/src/server/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { buildDev } from '@storybook/core/server';

import options from './options';

buildDev(options);
8 changes: 8 additions & 0 deletions app/mithril/standalone.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const build = require('@storybook/core/standalone');
const frameworkOptions = require('./dist/server/options').default;

async function buildStandalone(options) {
return build(options, frameworkOptions);
}

module.exports = buildStandalone;
1 change: 0 additions & 1 deletion app/polymer/src/server/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { buildDev } from '@storybook/core/server';

import options from './options';

buildDev(options);
8 changes: 8 additions & 0 deletions app/polymer/standalone.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const build = require('@storybook/core/standalone');
const frameworkOptions = require('./dist/server/options').default;

async function buildStandalone(options) {
return build(options, frameworkOptions);
}

module.exports = buildStandalone;
1 change: 0 additions & 1 deletion app/react/src/server/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { buildDev } from '@storybook/core/server';

import options from './options';

buildDev(options);
8 changes: 8 additions & 0 deletions app/react/standalone.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const build = require('@storybook/core/standalone');
const frameworkOptions = require('./dist/server/options').default;

async function buildStandalone(options) {
return build(options, frameworkOptions);
}

module.exports = buildStandalone;
1 change: 0 additions & 1 deletion app/riot/src/server/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { buildDev } from '@storybook/core/server';

import options from './options';

buildDev(options);
8 changes: 8 additions & 0 deletions app/riot/standalone.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const build = require('@storybook/core/standalone');
const frameworkOptions = require('./dist/server/options').default;

async function buildStandalone(options) {
return build(options, frameworkOptions);
}

module.exports = buildStandalone;
1 change: 0 additions & 1 deletion app/svelte/src/server/build.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { buildStatic } from '@storybook/core/server';

import options from './options';

buildStatic(options);
1 change: 0 additions & 1 deletion app/svelte/src/server/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { buildDev } from '@storybook/core/server';

import options from './options';

buildDev(options);
8 changes: 8 additions & 0 deletions app/svelte/standalone.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const build = require('@storybook/core/standalone');
const frameworkOptions = require('./dist/server/options').default;

async function buildStandalone(options) {
return build(options, frameworkOptions);
}

module.exports = buildStandalone;
1 change: 0 additions & 1 deletion app/vue/src/server/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { buildDev } from '@storybook/core/server';

import options from './options';

buildDev(options);
8 changes: 8 additions & 0 deletions app/vue/standalone.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const build = require('@storybook/core/standalone');
const frameworkOptions = require('./dist/server/options').default;

async function buildStandalone(options) {
return build(options, frameworkOptions);
}

module.exports = buildStandalone;

0 comments on commit 2e11d18

Please sign in to comment.