Change npm dev script to use two-step npm link.

This commit is contained in:
FelisCatus 2015-01-14 18:28:28 +08:00
parent 250a5f4be0
commit 54eaf96634
5 changed files with 8 additions and 4 deletions

View File

@ -23,5 +23,8 @@
"browser": {
"uglify-js": "./uglifyjs-shim.js",
"uglify-js-real": "./uglifyjs.js"
},
"scripts": {
"dev": "npm link"
}
}

View File

@ -27,6 +27,6 @@
"omega-target": "./omega_target_shim.js"
},
"scripts": {
"dev": "npm link ../omega-target; npm link ../omega-web"
"dev": "npm link omega-target; npm link omega-web"
}
}

View File

@ -4,7 +4,8 @@ Promise = OmegaTarget.Promise
module.exports = class Inspect
_enabled: false
constructor: (@onInspect) ->
constructor: (onInspect) ->
@onInspect = onInspect
enable: ->
# We don't need this API. However its presence indicates that Chrome >= 35,

View File

@ -25,6 +25,6 @@
"omega-pac": "./omega_pac_shim.js"
},
"scripts": {
"dev": "npm link ../omega-pac"
"dev": "npm link omega-pac; npm link"
}
}

View File

@ -20,6 +20,6 @@
"omega-pac": "../omega-pac"
},
"scripts": {
"dev": "npm link ../omega-pac"
"dev": "npm link omega-pac; npm link"
}
}