Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 912 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 912 Bytes

The brjsify command allows you to convert a set of NPM libraries and their dependencies into a set of BRJS libraries. You use it by creating a package.json file within your BRJS app where dependencies contains the NPM dependencies your app directly depends on, and where devDependencies contains brjsify itself.

For example, if your BRJS app depends on react and redux, you might end up with a package.json configuration file like this:

"dependencies": {
  "react": "^0.14.3",
  "redux": "^3.0.4"
},
"devDependencies": {
  "brjsify": "^0.0.1"
},
"scripts": {
  "brjsify": "brjsify sdk/libs/javascript"
}

Given a set-up like this, provided you've first installed with npm install, you can export the NPM libraries directly into your sdk/libs/javascript directory as follows:

npm run brjsify