diff --git a/package.json b/package.json index edc9b1e..96a59bb 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "storybook-dev": "node scripts/storybook-dev.js", "validate": "npm ls && ripcord counsel check", "secure": "nsp check", - "lint": "standard src/", + "lint": "standard 'src/**/*.js' '.storybook/**/*.js' 'scripts/**/*.js' 'test/**/*.js'", "test": "jest", "check-coverage": "nyc check-coverage --lines 90 --functions 90 --branches 90", "preversion": "git checkout master && git pull", diff --git a/scripts/ci-post-test.js b/scripts/ci-post-test.js index b9f28c4..9250432 100644 --- a/scripts/ci-post-test.js +++ b/scripts/ci-post-test.js @@ -10,7 +10,7 @@ const repo = `https://${process.env.GH_TOKEN}@${pkg}` const staticDocs = path.join(__dirname, '..', 'storybook-static') const projectRoot = path.join(__dirname, '..') -if (!process.env.CI_BRANCH === 'master') { +if (process.env.CI_BRANCH !== 'master') { console.warn('not on master, skipping publish cycle') process.exit(0) } diff --git a/stories/widgets.GenericApprovalWorkflow.stories.js b/stories/widgets.GenericApprovalWorkflow.stories.js deleted file mode 100644 index 14c9f1e..0000000 --- a/stories/widgets.GenericApprovalWorkflow.stories.js +++ /dev/null @@ -1,70 +0,0 @@ -import React from 'react' -import { Grid, Item, Icon, Step } from '../src/index' - -import { storiesOf } from '@kadira/storybook' -import { withKnobs } from '@kadira/storybook-addon-knobs' - -const stories = storiesOf('widgets.GenericApprovalWorkflow', module) - -.addDecorator(withKnobs) -.add('horizontal', () => { - const columnContents = [ - { - header: 'Dividers R Great', - content: 'https://github.com/Semantic-Org/Semantic-UI/issues/4342!' - }, - { - header: 'Great Stuff', - content: 'I just can\'t get enough of it.' - } - ] - const totalColumns = 16 - const simpleColumnWidth = 3 - const approvalColumnWidth = 1 - const stepColumnWidth = totalColumns - simpleColumnWidth * columnContents.length - approvalColumnWidth - return ( - - - {columnContents.map((column, ndx) => ( - - - - {column.header} - -

{column.content}

-
-
-
-
- ))} - - - - - - Shipping - Choose your shipping options - - - - - - - - - - - - - - - -
- -

small divider issue: https://github.com/Semantic-Org/Semantic-UI/issues/4882

-
-
- ) -}) - -export default stories