sass google fonts
1.0.0
Sertakan Google Font ke proyek Anda
npm install sass-google-fontsPertama, Anda perlu mengimpor proyek.
// Import the project
@import " node_modules/sass-google-fonts/src/GoogleFonts.scss " ;Impor Google Font Anda ke proyek Anda dengan memasukkan nama font font.
// Include a google font
@include google-font ( ' Tintos ' );
html , body {
font-family : ' Tintos ' ;
}Anda juga dapat menentukan berat dan bahasa yang ingin Anda sertakan sebagai berikut.
// 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 Jika Anda menambahkan atau mengubah fungsionalitas, ingatlah untuk menambahkan tes dalam test/ .
Pastikan semua tes berhasil sebelum diterbitkan ke NPM
# Set the version
npm version {type} # major/minor/patch
# Publish to npm
npm publish
# Publish to github
git push && git push --tags