Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
latest story version and buildchain
Browse files Browse the repository at this point in the history
  • Loading branch information
clouless committed Mar 29, 2018
1 parent fbf4061 commit c6f6dc7
Show file tree
Hide file tree
Showing 5 changed files with 8,092 additions and 12 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ documentation
src/*.js
src/components/*.js
tsconfig-*.json
yarn.lock
_dist_demo_node_modules
dist-demo
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.yarnpkg.com/
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"COMMENT": "THIS FILE WILL BE PARSED DURING BUILD. IT IS NOT THE ACTUAL PACKAGE FILE PUSHED TO NPMJS!",
"name": "@cloukit/dropout",
"moduleId": "dropout",
"version": "1.5.6",
"version": "1.6.0",
"description": "Dropout is a non visible helper to drop something down, up, left or right relative to a trigger element",
"license": "MIT",
"author": "codelcou.io",
Expand All @@ -21,12 +21,12 @@
"dependencies": {
},
"devDependencies": {
"@cloukit/library-build-chain": "1.16.0",
"@cloukit/story": "1.2.0"
"@cloukit/library-build-chain": "1.17.1",
"@cloukit/story": "1.3.1"
},
"peerDependencies": {
"@angular/common": ">=4.0.0",
"@angular/core": ">=4.0.0",
"@angular/common": ">=5.0.0",
"@angular/core": ">=5.0.0",
"rxjs": ">=5.0.0",
"zone.js": ">=0.8.0"
}
Expand Down
10 changes: 4 additions & 6 deletions src/demo/demo.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { DemoComponent } from './demo.component';
import { CloukitDropoutModule } from '../index';
import demoStoriesSource from '../assets/demoStoriesSource.json';
import { CloukitStoryModule, CloukitStoryService } from '@cloukit/story';
import { Story00Component } from './stories/story-00-dropout-directions';
import { Story01Component } from './stories/story-01-off-placed-trigger-element';
Expand Down Expand Up @@ -31,11 +30,10 @@ import { Story02Component } from './stories/story-02-programmatic-trigger';
export class DemoModule {
constructor(private cloukitStoryService: CloukitStoryService) {
//
// REGISTER STORY SOURCES
// INITIALIZE STORY SOURCES
//
const keys = Object.keys(demoStoriesSource);
for (let i=0; i<keys.length; i++) {
this.cloukitStoryService.addSource(keys[i], demoStoriesSource[keys[i]]);
}
const baseUrl = document.getElementsByTagName('base')[0].href;
const storySourceJsonUrl = `${baseUrl}assets/demoStoriesSource.json`; // File is auto generated by build chain!
this.cloukitStoryService.loadStoryJson(storySourceJsonUrl);
}
}
Loading

0 comments on commit c6f6dc7

Please sign in to comment.