Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
Fix package inclusion logic. Bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
hperrin committed Apr 23, 2018
1 parent 3fd2eed commit 1741fa7
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 29 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"name": "tilmeld-client",
"version": "1.0.0-beta.15",
"version": "1.0.0-beta.16",
"description": "Nymph user and group management with access controls.",
"main": "lib/umd/index.js",
"main": "lib/umd/tilmeld-client.js",
"browser": "lib/es/tilmeld-client.js",
"directories": {
"lib": "lib/umd"
},
"scripts": {
"build-components": "svelte compile src/Components -o lib/es/Components",
"build-entities": "cp -a src/Entities lib/es/",
"build-index": "cp src/index.js lib/es/",
"build-index": "cp src/tilmeld-client.js lib/es/",
"transpile": "babel -d lib/umd/ lib/es/",
"build": "npm run build-components && npm run build-entities && npm run build-index && npm run transpile",
"prepare": "npm run lint && npm run build",
Expand All @@ -18,8 +19,7 @@
},
"files": [
"lib",
"src",
"make.js"
"src"
],
"repository": {
"type": "git",
Expand All @@ -42,7 +42,7 @@
},
"homepage": "https://github.com/sciactive/tilmeld-client#readme",
"dependencies": {
"nymph-client": "^3.0.5",
"nymph-client": "^4.0.0-beta.1",
"pform": "^3.3"
},
"devDependencies": {
Expand All @@ -62,6 +62,6 @@
"eslint-plugin-standard": "^3.0.1",
"svelte": "^2.1.1",
"svelte-cli": "^3.0.0",
"umailphp": "^2.2"
"umailphp": "^2.3"
}
}
2 changes: 1 addition & 1 deletion src/Components/TilmeldChangePassword.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h2 class="change-password-dialog-title">{compactText}</h2>
{/if}

<script>
import User from 'User';
import User from '../Entities/User';

export default {
oncreate () {
Expand Down
4 changes: 2 additions & 2 deletions src/Components/TilmeldLogin.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ <h2 class="login-dialog-title">{compactText}</h2>
{/if}

<script>
import User from 'User';
import TilmeldRecover from './TilmeldRecover.html';
import User from '../Entities/User';
import TilmeldRecover from './TilmeldRecover';

export default {
oncreate () {
Expand Down
2 changes: 1 addition & 1 deletion src/Components/TilmeldRecover.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ <h2 class="recovery-dialog-title">Account Recovery</h2>
{/if}

<script>
import User from 'User';
import User from '../Entities/User';

export default {
oncreate () {
Expand Down
8 changes: 4 additions & 4 deletions src/Entities/Group.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Nymph from 'Nymph';
import Entity from 'NymphEntity';
import {Nymph, Entity} from 'nymph-client';

export default class Group extends Entity {
export class Group extends Entity {
// === Constructor ===

constructor (id) {
Expand Down Expand Up @@ -59,4 +58,5 @@ Group.etype = 'tilmeld_group';
Group.class = 'Tilmeld\\Entities\\Group';

Nymph.setEntityClass(Group.class, Group);
export {Group};

export default Group;
8 changes: 4 additions & 4 deletions src/Entities/User.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Nymph from 'Nymph';
import Entity from 'NymphEntity';
import {Nymph, Entity} from 'nymph-client';

export default class User extends Entity {
export class User extends Entity {
// === Constructor ===

constructor (id) {
Expand Down Expand Up @@ -127,4 +126,5 @@ User.loginCallbacks = [];
User.logoutCallbacks = [];

Nymph.setEntityClass(User.class, User);
export {User};

export default User;
4 changes: 2 additions & 2 deletions src/index.js → src/tilmeld-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import TilmeldChangePassword from './Components/TilmeldChangePassword';
import TilmeldLogin from './Components/TilmeldLogin';
import TilmeldRecover from './Components/TilmeldRecover';

import User from './Entities/User';
import Group from './Entities/Group';
import {User} from './Entities/User';
import {Group} from './Entities/Group';

export {TilmeldChangePassword, TilmeldLogin, TilmeldRecover, User, Group};

0 comments on commit 1741fa7

Please sign in to comment.