Created
May 1, 2018 15:45
-
-
Save travisrcory/d0904963a10d56e40650987609c9148d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Component to share with others | |
//bnd.bnd | |
Provide-Capability:\ | |
soy;\ | |
type="componet-library-web";\ | |
version:Version="1.0.0" | |
// Component wantint to use component library | |
//bnd.bnd | |
Require-Capability:\ | |
soy;\ | |
filter:="(type=componet-library-web)" | |
//build.gradle | |
dependencies { | |
... | |
jsCompile project(':modules:componet-library-web') | |
soyCompile project(':modules:componet-library-web') | |
... | |
} | |
// package.json | |
"localDependencies": { | |
"components-soy-web": "../componet-library-web" | |
}, | |
// JS file | |
import 'Component' from 'component-library-web/Component'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment