{"id":70,"date":"2011-01-13T17:09:19","date_gmt":"2011-01-13T17:09:19","guid":{"rendered":"http:\/\/joose.it\/blog\/?p=70"},"modified":"2011-04-08T14:02:56","modified_gmt":"2011-04-08T14:02:56","slug":"migration-to-npm","status":"publish","type":"post","link":"http:\/\/joose.it\/blog\/2011\/01\/13\/migration-to-npm\/","title":{"rendered":"Migration to `npm`"},"content":{"rendered":"<div>\n<div>\n<div>\n<div>\n<p>As you may  know, for some time, Joose was being distributed both via OpenJSAN and  NPM repositories. However many people were experiencing various issues,  when installing and using the JSAN shell. Thats why Joose itself and  various Joose extensions have migrated to distribution solely via \u201cnpm\u201d.  See the <a href=\"http:\/\/nodul.es\/modules\/joose\" target=\"_blank\">http:\/\/nodul.es\/modules\/joose<\/a> for the list of modules, currently depending on Joose.<\/p>\n<p>Documentation is now hosted on the github: <a href=\"http:\/\/bit.ly\/joose_manual\" target=\"_blank\">http:\/\/bit.ly\/joose_manual<\/a><\/p>\n<p>If you are planning to use Joose cross-platform (share code between  browsers and NodeJS) then you may want to complete the 3.1, 3.2 items  from the <a href=\"http:\/\/joose.github.com\/Joose\/doc\/html\/Joose\/Manual\/Installation.html\" target=\"_blank\">http:\/\/joose.github.com\/Joose\/doc\/html\/Joose\/Manual\/Installation.html<\/a><\/p>\n<p>These additional steps are required, since the NPM is based on the  synchronous commonjs modules. It creates redirect files which contains  the following synchronous assignment:<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">module.exports = require(from)<\/pre>\n<p>I\u2019m not sure, whether its possible to redesign the NPM and whole  commonjs codebase to use the asynchronous loading (its still a SSJS, not  CommonJS), but synchronous loading is not acceptable for client-side.<\/p>\n<p>The additional setup is completely optional however.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>As you may know, for some time, Joose was being distributed both via OpenJSAN and NPM repositories. However many people were experiencing various issues, when installing and using the JSAN shell. Thats why Joose itself and various Joose extensions have migrated to distribution solely via \u201cnpm\u201d. See the http:\/\/nodul.es\/modules\/joose for the list of modules, currently [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[4],"tags":[10,11],"_links":{"self":[{"href":"http:\/\/joose.it\/blog\/wp-json\/wp\/v2\/posts\/70"}],"collection":[{"href":"http:\/\/joose.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/joose.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/joose.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/joose.it\/blog\/wp-json\/wp\/v2\/comments?post=70"}],"version-history":[{"count":5,"href":"http:\/\/joose.it\/blog\/wp-json\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":276,"href":"http:\/\/joose.it\/blog\/wp-json\/wp\/v2\/posts\/70\/revisions\/276"}],"wp:attachment":[{"href":"http:\/\/joose.it\/blog\/wp-json\/wp\/v2\/media?parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/joose.it\/blog\/wp-json\/wp\/v2\/categories?post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/joose.it\/blog\/wp-json\/wp\/v2\/tags?post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}