Skip to content

Commit

Permalink
Release 2.0.0
Browse files Browse the repository at this point in the history
Bumped ffe-core to 8. Added peerDependency to ffe-spinner.
Added a budo example page
Added /.idea folder to .gitignore
Updated README
  • Loading branch information
Henrik Hermansen committed Sep 12, 2016
1 parent 0ae7de2 commit 49050cb
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 49 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/lib
# Created by https://www.gitignore.io/api/node

/.idea

### Node ###
# Logs
logs
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v.2.0.0
* peerDependency on `ffe-core` bumped to `^8.0.2`
* Added explicit dependency on `ffe-core` and `ffe-spinner`
* Added a budo example page that can be launched with `npm start`

## v.1.0.2
* peerDependency on `ffe-core` relaxed to `^6.0.0`

Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
$ npm install --save ffe-spinner-react
```

>`ffe-spinner-react` depends on `ffe-core` being present and imported in your project.
>More specifically, the CSS classes related to spinner in ffe-core should be in your CSS Object Model when using this component.
>`ffe-spinner-react` depends on `ffe-core` and `ffe-spinner` being present and imported in your project.
>More specifically, the CSS classes related to spinner in ffe-spinner should be in your CSS Object Model when using this component.
```css
@import "node_modules/ffe-spinner/less/spinner.less";
```

## Usage

Expand Down
8 changes: 8 additions & 0 deletions examples/example.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@import "../node_modules/ffe-core/less/ffe.less";
@import "../node_modules/ffe-spinner/less/spinner.less";
@font-url: "../node_modules/ffe-core/fonts";

body {
margin: 2.5%;
font-family: "MuseoSansRounded-500", arial, sans-serif;
}
24 changes: 24 additions & 0 deletions examples/spinner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react';
import { render } from 'react-dom';
import Spinner from '../src/spinner.jsx';
import InlineSpinner from '../src/inline-spinner.jsx';

require('./example.less');

const heading = document.createElement('h1');
heading.textContent = 'Spinner';
heading.className = 'ffe-h1';
document.body.appendChild(heading);

const accountSelectorDOM = document.createElement('section');
document.body.appendChild(accountSelectorDOM);

render(
<div>
<p>Default spinner: <Spinner /></p>
<p>Spinner with text: <Spinner text="some text" /></p>
<p>Non-center spinner: <Spinner center={false} /></p>
<p>Inline spinner: <InlineSpinner /></p>
<p>Inline, large spinner: <InlineSpinner large /></p>
</div>
, accountSelectorDOM);
99 changes: 52 additions & 47 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,54 @@
{
"name": "ffe-spinner-react",
"version": "1.0.2",
"author": "Sparebank 1",
"main": "lib/index.js",
"scripts": {
"build": "babel -d lib/. --ignore=*.test.js src/.",
"lint": "eslint src/.",
"test:nsp": "nsp check",
"test:spec": "mocha --require babel-register --reporter mocha-tap13 src/**/*.test.js",
"test": "npm run test:spec && npm run test:nsp",
"prepublish": "npm run build",
"has-published": "npm show . versions -s | grep -q ${npm_package_version}"
},
"devDependencies": {
"eslint-plugin-react": "^4.2.2",
"react": "^15.0.0",
"react-addons-test-utils": "^15.0.0",
"enzyme": "^2.0.0",
"react-dom": "^15.0.0",
"babel-core": "^6.5.2",
"babel-plugin-transform-object-rest-spread": "^6.5.0",
"babel-cli": "^6.4.5",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.5.0",
"babel-register": "^6.4.3",
"chai": "^3.5.0",
"eslint": "^2.4.0",
"mocha": "^2.4.5",
"mocha-tap13": "0.0.3",
"nsp": "^2.2.0"
},
"peerDependencies": {
"ffe-core": "^6.0.0"
},
"publishConfig": {
"registry": "***REMOVED***"
},
"files": [
"lib",
"*.js"
],
"babel": {
"presets": [
"react",
"es2015"
]
}
"name": "ffe-spinner-react",
"version": "2.0.0",
"author": "Sparebank 1",
"main": "lib/index.js",
"scripts": {
"build": "babel -d lib/. --ignore=*.test.js src/.",
"lint": "eslint src/.",
"start": "budo examples/spinner.js --open --live --title \"FFE Spinner React\" -- -t [ babelify --presets [ es2015 react ] ] -t node-lessify",
"test:nsp": "nsp check",
"test:spec": "mocha --require babel-register --reporter mocha-tap13 src/**/*.test.js",
"test": "npm run test:spec && npm run test:nsp",
"prepublish": "npm run build",
"has-published": "npm show . versions -s | grep -q ${npm_package_version}"
},
"devDependencies": {
"budo": "^8.3.0",
"eslint-plugin-react": "^4.2.2",
"react": "^15.2.0",
"react-addons-test-utils": "^15.0.0",
"enzyme": "^2.0.0",
"react-dom": "^15.0.0",
"babel-core": "^6.5.2",
"babel-plugin-transform-object-rest-spread": "^6.5.0",
"babel-cli": "^6.4.5",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.5.0",
"babel-register": "^6.4.3",
"babelify": "^7.3.0",
"chai": "^3.5.0",
"eslint": "^2.4.0",
"mocha": "^2.4.5",
"mocha-tap13": "0.0.3",
"node-lessify": "^0.1.4",
"nsp": "^2.2.0"
},
"peerDependencies": {
"ffe-core": "^8.0.2",
"ffe-spinner": "^1.0.0"
},
"publishConfig": {
"registry": "***REMOVED***"
},
"files": [
"lib",
"*.js"
],
"babel": {
"presets": [
"react",
"es2015"
]
}
}

0 comments on commit 49050cb

Please sign in to comment.