sass google fonts
1.0.0
قم بتضمين خطوط Google إلى مشاريعك
npm install sass-google-fontsتحتاج أولاً إلى استيراد المشروع.
// Import the project
@import " node_modules/sass-google-fonts/src/GoogleFonts.scss " ;استيراد خط Google الخاص بك إلى مشروعك عن طريق إدخال اسم الخط للخط.
// Include a google font
@include google-font ( ' Tintos ' );
html , body {
font-family : ' Tintos ' ;
}يمكنك أيضًا تحديد الوزن واللغة التي تريد تضمينها على النحو التالي.
// 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 إذا قمت بإضافة أو تغيير الوظيفة ، تذكر إضافة اختبارات في test/ .
تأكد من نجاح جميع الاختبارات قبل النشر على NPM
# Set the version
npm version {type} # major/minor/patch
# Publish to npm
npm publish
# Publish to github
git push && git push --tags