Skip to content
Chris edited this page Oct 26, 2016 · 2 revisions

How to install the components project

Installer + attacher components + mooc

cd /components
npm i

---> installe tous les packages @components + @treantjs

cd /packages/@coorpacademy-components
npm link
cd /coorpacademy
npm i
npm link @coorpacademy/components

---> override en symlink le paquet local

Sync les modifs des components sur le Mooc

cd /component/packages/@coorpacademy-components
npm run build:commonjs

---> transpile /src sur /lib

cd /coorpacademy
npm run build:components --production

---> utilise le bundler + angular adapter ---> cree les directives pour le bundle selectionné + extrait le css + copie la dist dans /public

sublime build system

{
    "shell_cmd": "npm run build:commonjs && cd ../../../coorpacademy; npm run build:components --production",
    "working_dir": "/path/to/components/packages/@coorpacademy-components",
    "target": "ansi_color_build",
    "syntax": "Packages/ANSIescape/ANSI.tmLanguage"
}