sass google fonts
1.0.0
Inclua fontes do Google para seus projetos
npm install sass-google-fontsPrimeiro você precisa importar o projeto.
// Import the project
@import " node_modules/sass-google-fonts/src/GoogleFonts.scss " ;Importe sua fonte do Google para o seu projeto inserindo o nome da fonte da fonte.
// Include a google font
@include google-font ( ' Tintos ' );
html , body {
font-family : ' Tintos ' ;
}Você também pode especificar o peso e o idioma que deseja incluir o seguinte.
// If you want to specify sizes of the font
@include google-font ( ' Tintos ' , ' 400,400i,700 ' );
// Include languages of fonts
@include google-font ( ' Tintos ' , ' 400,400i,700 ' , ' greek,latin-ext,vietnamese ' ); # Install dependencies
npm install
# Run tests one time
npm run test
# Run test driven development
npm run tdd Se você adicionar ou alterar a funcionalidade, lembre -se de adicionar testes no test/ .
Verifique se todos os testes são bem -sucedidos antes de publicar no NPM
# Set the version
npm version {type} # major/minor/patch
# Publish to npm
npm publish
# Publish to github
git push && git push --tags