The guide outlines how to get started with the latest code on the master branch
and how to go about implementing or fixing a feature.
After forking and cloning this repository, you need to do the following locally to setup denali as a global process.
cd ~/projects/denali
npm install
npm run build
npm link distThis makes denali available as denali and now you can use denali new my-app.
After generating a new app, you need to link back to the built version of denali.
cd ~/projects/my-app
npm link ../denali/dist
npm startNow you should be running the latest code from master, and are ready to test and submit your first pull request.
Addons must be built, and linked into your app to work.
cd ~/projects/my-addon
npm run buildAfter building the addon, a dist folder should be generated, and
this should be linked into your app.
cd ~/projects/my-app
npm link ../my-addon/distNow when you start your app, the addon should be available.
Due to how Denali works, and the fact that it has it's own CLI that does the transpiling, you cannot
use node debug .. or node --inspect ... Denali has a built in command which mimicks node --inspect.
denali server --debugThis will run the server and watch your code changes, and give you a URL to open so you can debug your app/addon using Chrome DevTools. Once you visit the URL, the app will start running. From there you can set breakpoints and call your API endpoints to trigger the breakpoints.
To mimic node --inspect-brk you can use:
denali server --debug-brk