Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Jan 10, 2017
1 parent 2c20dc3 commit 840be99
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
3 changes: 0 additions & 3 deletions lib/index.js

This file was deleted.

30 changes: 26 additions & 4 deletions lib/riot.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import styleManager from './browser/tag/styleManager'
import { tmpl, brackets } from 'riot-tmpl'
import o from 'riot-observable'
import { __TAGS_CACHE } from './browser/common/global-variables'
import * as dom from './browser/common/util/dom'
import * as check from './browser/common/util/check'
import * as misc from './browser/common/util/misc'
import * as tags from './browser/common/util/tags'
import * as core from './browser/tag/core'

/**
* Riot public api
*/

export const settings = Object.create(brackets.settings)

export const util = {
tmpl,
brackets,
Expand All @@ -24,6 +26,26 @@ export const util = {
tags
}

export { default as observable } from 'riot-observable'
// core api
export * from './browser/tag/core'
// export the core props/methods
export const Tag = core.Tag
export const tag = core.tag
export const tag2 = core.tag2
export const mount = core.mount
export const mixin = core.mixin
export const update = core.update
export const unregister = core.unregister
export const observable = o

export default {
settings,
util,
// core
Tag,
tag,
tag2,
mount,
mixin,
update,
unregister,
observable
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@
"riot": "node_modules/riot-cli/lib/index.js"
},
"main": "lib/server/index.js",
"jsnext:main": "lib/index.js",
"jsnext:main": "lib/riot.js",
"browser": "riot.js"
}

1 comment on commit 840be99

@btakita
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #2212

Please sign in to comment.