Skip to content

Commit

Permalink
feat(ffe-animations): legg til pakke med animasjonene
Browse files Browse the repository at this point in the history
  • Loading branch information
HeleneKassandra committed Oct 24, 2022
1 parent 243b10a commit 1a94de4
Show file tree
Hide file tree
Showing 10 changed files with 121,257 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/ffe-animations/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
11 changes: 11 additions & 0 deletions packages/ffe-animations/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# @sb1/ffe-animations

## Install

```
npm install --save @sb1/ffe-animations
```

## Usage

Stores and exports the lottie animations in JSON format
52,747 changes: 52,747 additions & 0 deletions packages/ffe-animations/animations/face-recognition.json

Large diffs are not rendered by default.

7,911 changes: 7,911 additions & 0 deletions packages/ffe-animations/animations/finger-recognition.json

Large diffs are not rendered by default.

14,881 changes: 14,881 additions & 0 deletions packages/ffe-animations/animations/high-five.json

Large diffs are not rendered by default.

7,890 changes: 7,890 additions & 0 deletions packages/ffe-animations/animations/pin-code.json

Large diffs are not rendered by default.

18,572 changes: 18,572 additions & 0 deletions packages/ffe-animations/animations/woman-at-table.json

Large diffs are not rendered by default.

19,212 changes: 19,212 additions & 0 deletions packages/ffe-animations/animations/woman-shrugging.json

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions packages/ffe-animations/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const fs = require('fs');
const path = require('path');

const FILE_PATH = path.join(__dirname, 'animations');

fs.readdirSync(FILE_PATH).forEach(file => {
if (file.indexOf('.json' > -1))
exports[file.replace('.json', '')] = require(`./animations/${file}`);
});
23 changes: 23 additions & 0 deletions packages/ffe-animations/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "ffe-animations",
"version": "1.0.0",
"description": "Lottie animations for FFE animations",
"main": "index.js",
"scripts": {
"build": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/SpareBank1/designsystem.git"
},
"keywords": [
"ffe"
],
"author": "SpareBank 1",
"license": "MIT",
"bugs": {
"url": "https://github.com/SpareBank1/designsystem/issues"
},
"homepage": "https://github.com/SpareBank1/designsystem#readme"
}

0 comments on commit 1a94de4

Please sign in to comment.