i want use karma , jasmine test angularjs application. of documentation i've found install karma , jasmine involve using npm. can't use npm because restricted, reason doesn't matter. far have pulled jasmine , karma github using zip files. want add karma , jasmine project, don't think unzipping entire contents of respective github repos way go.
i'd know need make karma , jasmine usable within angularjs project without using npm.
i guess possible, take huuuuuge amount of work because of dependencies. if take @ karma's repository, can find file package.json (here). in file there property dependencies (link), lists modules karma depends on. you'll have find sources, manually download of them respective version number , put in folder called node_modules created in karma module folder. each of these modules karma depends on has dependencies listed in own package.json - you'll have download them keeping in mind version numbers , putting them in module's node_modules folder. , dependency nesting can really deep.
some modules may have scripts executed after have been installed (scripts), called npm default on installation. maybe there other things not aware of. speaking designed installed via npm , it's case when has no access use it.
i advise ask has access npm install of required packages , share result of installation you. installed in node_modules folder of directory run npm commands from, easy do.
here can download version i've created, has karma v0.13.1, karma-jasmine v0.3.6 , karma-chrome-launcher v0.2.0. hope work you, because might have different os (mine ubuntu 14.04 x64), i'm not sure if npm os-specific while installation of package.
you should place content of archive project directory, execute tests project folder use terminal command:
./node_modules/karma/bin/karma start i still advise solve problem of accessing npm if want closely work modules stores.
Comments
Post a Comment