- Clone that repository :
git clone [email protected]:web-education/demo-components.git
- Clone infra-components repository in the same directory than demo-components :
git clone [email protected]:web-education/infra-components.git
- Modify infra-compnents source code and build it. In infra-components directory run :
npm start
- Load new infra-components's version into demo-components. In demo-components directory run :
npm install --force ../infra-components/
Run demo-components dev-server :npm start
That repository is configure to publish a Github Page in its gh-pages branch. Follow the next steps to uptade the published version of gh-pages :
- Push new commits on master branch' :
git push origin master
- Reset last commit from gh-pages branch :
git checkout _gh-pages
andgit reset --hard HEAD~1
- Rebase gh-pages branch onto master branch's HEAD :
git rebase -i --onto master <gh-pagesh base> gh-pages
- build :
npm install
andnpm start
- Commit folder build node_modules in gh-pages branch :
git add build/ node_modules/
andgit commit -m " Build with infra-compoents <infra-compoents-version>"
- Publish the gh-pages branch :
git push --force origin gh-pages