Skip to content

Commit

Permalink
* [jsfm] fixed lint and added case test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinjiang committed Sep 21, 2016
1 parent e5c082f commit a3e20a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion html5/default/index.js
Expand Up @@ -6,9 +6,11 @@ import * as methods from './api/methods'

export { createInstance } from './static/create'
export { init, refreshInstance, destroyInstance } from './static/life'
export { registerComponents, registerModules, registerMethods } from './static/register'
import { registerComponents, registerModules, registerMethods } from './static/register'
export { receiveTasks } from './static/bridge'
export { getRoot } from './static/misc'

// register special methods for Weex framework
registerMethods(methods)

export { registerComponents, registerModules, registerMethods }
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -52,7 +52,7 @@
"test:unit": "mocha --compilers js:babel-core/register html5/test/unit/*/*.js html5/test/unit/*/*/*.js",
"test:cover": "babel-node node_modules/isparta/bin/isparta cover --report text node_modules/mocha/bin/_mocha -- --reporter dot html5/test/unit/*/*.js html5/test/unit/*/*/*.js",
"test:e2e": "npm run build:browser && node html5/test/e2e/runner.js",
"test": "npm run build:config && npm run lint && npm run test:cover && npm run test:e2e",
"test": "npm run build:config && npm run lint && npm run test:cover && npm run test:case && npm run test:e2e",
"serve": "serve ./ -p 12580",
"clean:examples": "echo \"\\033[36;1m[Clean]\\033[0m \\033[33mexamples\\033[0m\" && rm -vrf examples/build/*",
"clean:test": "echo \"\\033[36;1m[Clean]\\033[0m \\033[33mtest\\033[0m\" && rm -vrf test/build/*",
Expand Down Expand Up @@ -106,6 +106,7 @@
"weex-components": "^0.2.0",
"weex-loader": "^0.3.1",
"weex-rx-framework": "^0.0.9",
"weex-vdom-tester": "^0.1.0",
"weex-vue-components": "^0.1.0",
"weex-vue-framework": "^0.1.8",
"weex-vue-loader": "^0.1.1"
Expand Down

0 comments on commit a3e20a8

Please sign in to comment.