diff --git a/.travis.yml b/.travis.yml index 5274e1056a09..45039187fb90 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,8 +10,9 @@ node_js: before_install: ./scripts/travis/before_install.sh after_success: ./scripts/travis/after_success.sh script: + - npm run bootstrap - npm run lint - - npm run test + - npm run test -- --coverage - npm run coverage - npm run test-examples git: diff --git a/examples/test-cra/package.json b/examples/test-cra/package.json index 89cfe0df5c92..529cc2645636 100644 --- a/examples/test-cra/package.json +++ b/examples/test-cra/package.json @@ -1,26 +1,27 @@ { "name": "test-cra", "version": "1.0.0", - "private": true, + "scripts": { + "build": "react-scripts build", + "build-storybook": "build-storybook -s public", + "eject": "react-scripts eject", + "start": "react-scripts start", + "storybook": "start-storybook -p 9009 -s public", + "pretest": "npm install", + "test": "react-scripts test --env=jsdom" + }, + "dependencies": { + "react": "^15.4.2", + "react-dom": "^15.4.2" + }, "devDependencies": { "@kadira/storybook": "file:../../packages/react-storybook", + "@kadira/storybook-addon-actions": "file:../../packages/addon-actions", "@kadira/storybook-addons": "file:../../packages/addons", "@kadira/storybook-channel": "file:../../packages/channel", - "@kadira/storybook-ui": "file:../../packages/storybook-ui", - "@kadira/storybook-addon-actions": "file:../../packages/addon-actions", "@kadira/storybook-channel-postmsg": "file:../../packages/channel-postmessage", + "@kadira/storybook-ui": "file:../../packages/storybook-ui", "react-scripts": "0.9.5" }, - "dependencies": { - "react": "^15.4.2", - "react-dom": "^15.4.2" - }, - "scripts": { - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test --env=jsdom", - "eject": "react-scripts eject", - "storybook": "start-storybook -p 9009 -s public", - "build-storybook": "build-storybook -s public" - } + "private": true } diff --git a/lerna.json b/lerna.json index cebb3cefa983..7636f0f1f8cb 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,13 @@ { "lerna": "2.0.0-rc.3", "version": "3.0.0", + "commands": { + "bootstrap": { + "ignore": [ + "test-cra" + ] + } + }, "packages": [ "packages/*", "examples/*" diff --git a/package.json b/package.json index 07e909049293..a14d994114fe 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "shelljs": "^0.7.7" }, "scripts": { - "postinstall": "lerna bootstrap --hoist", + "bootstrap": "lerna bootstrap --hoist", "lint": "eslint .", "test": "jest --config ./.jestrc", "test:watch": "npm test -- --watch",