diff --git a/package.json b/package.json index 9053601..93d7e7b 100644 --- a/package.json +++ b/package.json @@ -71,6 +71,7 @@ "semantic-release": "semantic-release pre && npm publish && semantic-release post", "styleguide": "styleguidist server", "styleguide:build": "styleguidist build", + "styleguide:server": "styleguidist server", "start": "node scripts/start" }, "ripcord": { diff --git a/src/components/suir/SUI.examples.md b/src/components/suir/SUI.examples.md new file mode 100644 index 0000000..394437e --- /dev/null +++ b/src/components/suir/SUI.examples.md @@ -0,0 +1,5 @@ +## CSS Theme + +This is a dummy component just to import our CSS! + + require('../../../lib/styles/semantic.css') diff --git a/src/components/suir/radio/Radio.examples.md b/src/components/suir/radio/Radio.examples.md index 94b9f72..d8baa8c 100644 --- a/src/components/suir/radio/Radio.examples.md +++ b/src/components/suir/radio/Radio.examples.md @@ -2,8 +2,8 @@ Radio toggle - const Radio = require('semantic-ui-react').Radio; - + const Radio = require('semantic-ui-react').Radio; + Standard Radio diff --git a/styleguide.config.js b/styleguide.config.js index cfed862..0980254 100644 --- a/styleguide.config.js +++ b/styleguide.config.js @@ -10,12 +10,6 @@ const glob = require('glob') const fs = require('fs') const builder = require('./scripts/builder') -const componentStyles = glob - .sync(`${__dirname}/src/**/*.css`) - .filter(filename => !filename.match(/components.suir/)) - .filter(filename => !filename.match(/variables.css/)) - .concat([builder.semanticCSSFilename]) - const suirExamples = glob.sync(`${__dirname}/src/components/suir/**/*.examples.md`) var semanticCSSStat = fs.lstatSync(builder.semanticCSSFilename) @@ -48,12 +42,12 @@ module.exports = { }, skipComponentsWithoutExample: true, webpackConfig: { - entry: componentStyles, output: { path: PATHS.dist, publicPath: '/', filename: 'bundle.js' }, + devtool: 'eval', module: { preLoaders: [ {