{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","settings":"","params":[],"results":{"codes":[]}},"next":{"description":"","pages":[]},"title":"Build Directory","type":"basic","slug":"example-build-directory","excerpt":"How to use a Dedicated Build Directory","body":"## Folder Structure\n\n```\n/build\n  /node_modules\n  /.natronrc\n  /natronfile.js\n  /package.json\n/dest\n/node_modules\n/src\n/.natronrc\n/package.json\n```\n\n## Build Directory\n\n### `package.json`\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n\\t\\\"private\\\": true,\\n  \\\"dependencies\\\": {\\n    \\\"natron\\\": \\\"^0.1.0\\\",\\n    \\\"natron-vinyl\\\": \\\"^0.1.0\\\",\\n    \\\"vinyl-tf-babel\\\": \\\"^0.1.0\\\"\\n  }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"package.json\"\n    }\n  ]\n}\n[/block]\n## Package Root\n\n### `.natronrc`\n\nThe `natronfile` option tells `natron` where to find the actual `Natronfile` and allows to run `natron` from any directory within the project. \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"natronfile\\\": \\\"build/natronfile\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","updates":[],"order":1,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5619a39a13874c0d007038f1","__v":1,"category":{"sync":{"isSync":false,"url":""},"pages":["5651c8f4011c003500eca8c7","5657ad06a795770d00a2afb5"],"title":"Examples","slug":"examples","order":3,"from_sync":false,"reference":false,"_id":"5651c89a852cfb3500a69830","__v":2,"createdAt":"2015-11-22T13:52:26.932Z","version":"5619a39913874c0d007038e9","project":"5617a1f5a410c90d00c612f5"},"createdAt":"2015-10-10T22:59:07.028Z","user":"5617a0a4a410c90d00c612f4","githubsync":"","project":"5617a1f5a410c90d00c612f5","version":{"version":"0.2","version_clean":"0.2.0","codename":"Orange Arrow","is_stable":true,"is_beta":true,"is_hidden":false,"is_deprecated":false,"categories":["5619a39a13874c0d007038ea","5619a39a13874c0d007038eb","5619a39a13874c0d007038ec","5619a39a13874c0d007038ed","5651062a3b4d113500ed22d1","5651c89a852cfb3500a69830","565505ad055aa40d006f0ca7","56c219d8d3199a0d00694be6"],"_id":"5619a39913874c0d007038e9","createdAt":"2015-10-10T23:47:37.777Z","project":"5617a1f5a410c90d00c612f5","__v":5,"releaseDate":"2015-10-10T23:47:37.777Z"}}

Build Directory

How to use a Dedicated Build Directory

## Folder Structure ``` /build /node_modules /.natronrc /natronfile.js /package.json /dest /node_modules /src /.natronrc /package.json ``` ## Build Directory ### `package.json` [block:code] { "codes": [ { "code": "{\n\t\"private\": true,\n \"dependencies\": {\n \"natron\": \"^0.1.0\",\n \"natron-vinyl\": \"^0.1.0\",\n \"vinyl-tf-babel\": \"^0.1.0\"\n }\n}", "language": "json", "name": "package.json" } ] } [/block] ## Package Root ### `.natronrc` The `natronfile` option tells `natron` where to find the actual `Natronfile` and allows to run `natron` from any directory within the project. [block:code] { "codes": [ { "code": "{\n \"natronfile\": \"build/natronfile\"\n}", "language": "json" } ] } [/block]