There is a few steps to get started with your homework.
- First of all you have to click the
Forkbutton to make your own repo based on this one. - Then clone your own repo (i.e.
git clone git@github.com:username/your-forked-repo.git) - Before submitting your homework you should check yourself with our public tests. Run
git submodule add git@github.com:vladkampov/gl-jsprocamp-tests.git __tests__to add tests repo as git submodule. - To run tests use
npm install && npm test(or yarn`?) - Post to slack your repo ssh link and you are all set!
- Note that to make your homework you should use our code convention. Read More...
- Feel free to use npm scripts. Read more...
- Before doing your stuff don't forget to pull the updates from this repo. Read more...
- Don't forget to keep updated tests submodule Read more...
We are kindly asks you to stick to the following reexporting flow in your project and not change prefedined folders, files and functions names.
- src
|- lesson0
|- task0.js // export default { sum };
|- index.js // import task0 from './task0'; export default { task0 };
...
|- index.js // import lesson0 from './lesson0'; export default { lesson0 };npm lintto check the sources lintingnpm run coverageto check the tests coveragenpm testto run testsnpm run debugto run tests with debugger compatibilitynpm run test:watchto run tests with--watchflag
To keep your forked repo up to date with current run following commands in your project folder.
git remote add upstream git@github.com:vladkampov/gl-jsprocamp-homework.git
git fetch upstream
git pull upstream masterTo keep tests submodule updated use git submodule update --remote