forked from SpareBank1/designsystem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
6 changed files
with
96 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} |