Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ cache:
- node_modules
- packages/create-react-app/node_modules
- packages/react-scripts/node_modules
# This causes builds for merges and direct pushes to master.
# Other branches are pull requests and build are triggered via the
# pull request hook
branches:
only:
- master
install: true
script:
- 'if [ $TEST_SUITE = "simple" ]; then tasks/e2e-simple.sh; fi'
Expand Down
4 changes: 3 additions & 1 deletion packages/react-scripts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## UNRELEASED

_Nothing yet..._
- Deprecated BpkHeading and BpkParagraph
- Added BpkText component
- Updated all other Backpack dependencies to latest versions

## 4.0.1 - 2017-07-27
### Fixed
Expand Down
13 changes: 6 additions & 7 deletions packages/react-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"babel-loader": "7.0.0",
"babel-preset-react-app": "^3.0.1",
"babel-runtime": "6.23.0",
"bpk-mixins": "15.1.0",
"bpk-mixins": "16.0.0",
"case-sensitive-paths-webpack-plugin": "2.1.1",
"chalk": "1.1.3",
"css-loader": "0.28.4",
Expand Down Expand Up @@ -62,12 +62,11 @@
"whatwg-fetch": "2.0.3"
},
"devDependencies": {
"bpk-component-button": "^1.6.33",
"bpk-component-code": "0.1.0",
"bpk-component-grid": "^1.1.0",
"bpk-component-heading": "^2.1.0",
"bpk-component-paragraph": "^0.3.0",
"bpk-stylesheets": "^3.2.38",
"bpk-component-button": "^1.6.41",
"bpk-component-code": "^1.0.2",
"bpk-component-grid": "^1.1.8",
"bpk-component-text": "^1.0.0",
"bpk-stylesheets": "^3.2.46",
"react": "^15.5.4",
"react-dom": "^15.5.4"
},
Expand Down
3 changes: 1 addition & 2 deletions packages/react-scripts/scripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ module.exports = function(
'bpk-component-button',
'bpk-component-code',
'bpk-component-grid',
'bpk-component-heading',
'bpk-component-paragraph',
'bpk-component-text',
'bpk-mixins',
'bpk-stylesheets'
);
Expand Down
9 changes: 4 additions & 5 deletions packages/react-scripts/template/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from 'react';
import { BpkCode } from 'bpk-component-code';
import BpkButton from 'bpk-component-button';
import BpkHeading from 'bpk-component-heading';
import BpkParagraph from 'bpk-component-paragraph';
import BpkText from 'bpk-component-text';
import { BpkGridContainer, BpkGridRow, BpkGridColumn } from 'bpk-component-grid';

import STYLES from './App.scss';
Expand All @@ -13,7 +12,7 @@ const App = () => (
<BpkGridContainer>
<BpkGridRow>
<BpkGridColumn width={12}>
<BpkHeading level="h1">Welcome to React + Backpack</BpkHeading>
<BpkText tagName="h1" textStyle="xxl" className={STYLES.App__heading}>Welcome to React + Backpack</BpkText>
</BpkGridColumn>
</BpkGridRow>
</BpkGridContainer>
Expand All @@ -22,9 +21,9 @@ const App = () => (
<BpkGridContainer>
<BpkGridRow>
<BpkGridColumn width={12}>
<BpkParagraph>
<BpkText tagName="p" className={STYLES.App__text}>
To get started, edit <BpkCode>src/App.jsx</BpkCode> and save to reload.
</BpkParagraph>
</BpkText>
<BpkButton onClick={() => alert('It works!')}>Click me</BpkButton>
</BpkGridColumn>
</BpkGridRow>
Expand Down
8 changes: 8 additions & 0 deletions packages/react-scripts/template/src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,12 @@
&__main {
padding: $bpk-spacing-base 0;
}

&__heading {
margin-bottom: $bpk-spacing-sm;
}

&__text {
margin-bottom: $bpk-spacing-sm;
}
}