{"_id":"5619a39a13874c0d007038f1","__v":1,"category":{"_id":"5651c89a852cfb3500a69830","__v":2,"version":"5619a39913874c0d007038e9","pages":["5651c8f4011c003500eca8c7","5657ad06a795770d00a2afb5"],"project":"5617a1f5a410c90d00c612f5","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-11-22T13:52:26.932Z","from_sync":false,"order":3,"slug":"examples","title":"Examples"},"user":"5617a0a4a410c90d00c612f4","project":"5617a1f5a410c90d00c612f5","version":{"_id":"5619a39913874c0d007038e9","project":"5617a1f5a410c90d00c612f5","__v":5,"createdAt":"2015-10-10T23:47:37.777Z","releaseDate":"2015-10-10T23:47:37.777Z","categories":["5619a39a13874c0d007038ea","5619a39a13874c0d007038eb","5619a39a13874c0d007038ec","5619a39a13874c0d007038ed","5651062a3b4d113500ed22d1","5651c89a852cfb3500a69830","565505ad055aa40d006f0ca7","56c219d8d3199a0d00694be6"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"Orange Arrow","version_clean":"0.2.0","version":"0.2"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-10-10T22:59:07.028Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":1,"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]","excerpt":"How to use a Dedicated Build Directory","slug":"example-build-directory","type":"basic","title":"Build Directory"}

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]