$ git clone [email protected]:Azure/kashti.git
$ cd kashti
$ git checkout angular5
$ git checkout -b your-branch-name
Install dependencies and run the app with these commands.
$ yarn # install project dependencies
$ ng serve # start a local server in development mode
$ ng serve --environment prod # start a local server in production mode (minification, uglification, etc.)
$ ng lint # run linters
$ ng test # run unit tests in Chrome
Project layout:
- Global SCSS/CSS:
src/styles.scss
- Per component SCSS/CSS:
src/app/my-component-name/my-component-name.scss
- Global
index.html
:src/index.html
: generally you want to edit HTML for components directly, not work in here index.html
in turn calls component HTML/CSS based on URL hit in the app, e.g./dashboard
,/styleguide
, etc.- Per component HTML:
src/app/my-component-name/my-component-name.html
- Place assets under
src/assets
, e.g.src/assets/images
- Refer assets from HTML/CSS with path, e.g.
assets/images/microsoft.png
- HTML/CSS scratchpad for foundation widgets.
- Located in
src/app/style-guide/
- Go to http://localhost:4200/styleguide
- First thing is to run
ng serve
to launch the kashti app running on http://localhost:4200. - Any changes to typescript/html/css will automatically trigger a refresh with latest version in the browser
- When happy, commit that code!
- Push your branch often!
- When you're ready to merge into the
angular5
branch, open a pull request from your branch intoangular5
yarn add <npm package>
to add to app dependencies (bundled in javascript shipped to users)yarn add -D <npm package>
to add to development dependencies (examples: testing libraries)
I had to do a couple of baseline steps before getting the
yarn
install step to work:Possibly just local issues with an ancient macbook though.