UNPKG

gatsby-plugin-prefetch-google-fonts

Version:

A Gatsby plugin to download and prefetch [Google Fonts](https://fonts.google.com/). Can increase performance as opposed to loading webfonts from Google's external stylesheet.

147 lines (146 loc) 4.82 kB
{ "name": "gatsby-plugin-prefetch-google-fonts", "version": "1.4.3", "repository": { "type": "git", "url": "https://github.com/escaladesports/gatsby-plugin-prefetch-google-fonts.git" }, "keywords": [ "gatsby-plugin", "gatsby", "plugin", "web", "font", "loader", "google", "webfont", "webfontloader", "prefetch", "download", "downloader", "local" ], "author": "Kennedy Rose <krose@escaladesports.com>", "license": "MIT", "scripts": { "build": "npm run build:plugin", "build:gatsby": "npm run patch && NODE_ENV=production gatsby build", "build:module": "rm -rf dist && mkdir dist && babel src/export --out-dir dist", "build:plugin": "cd plugins/export && babel ./ --out-dir ../../", "build:plugin:dev": "rm -rf plugins/dist && mkdir plugins/dist && cd plugins/export && babel ./ --out-dir ../dist && cp package.json ../dist/package.json", "clean": "run-p clean:cache clean:public", "clean:cache": "rm -rf .cache", "clean:public": "rm -rf public", "dev": "npm run dev:gatsby", "dev:gatsby": "gatsby develop --open", "env": "node utils/env", "lint": "eslint ./", "patch": "node utils/patch", "precommit": "lint-staged", "prepublishOnly": "npm run build", "reset": "node utils/reset", "serve": "gatsby serve --open", "test": "echo 'No test specified'", "travis": "opn https://travis-ci.org/escaladesports/gatsby-plugin-prefetch-google-fonts/branches" }, "jest": { "testRegex": "/.*(__tests__\\/.*)|(.*(test|spec))\\.jsx?$", "moduleNameMapper": { ".+\\.(css|styl|less|sass|scss)$": "identity-obj-proxy", ".+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js" }, "setupTestFrameworkScriptFile": "<rootDir>/setupTests.js", "testPathIgnorePatterns": [ "node_modules", ".cache", "__snapshots__", "public", "dist" ], "transformIgnorePatterns": [ "node_modules/(?!(gatsby)/)" ], "globals": { "__PATH_PREFIX__": "" }, "testURL": "http://localhost", "setupFiles": [ "<rootDir>/loadershim.js" ], "coverageDirectory": "<rootDir>/public/coverage" }, "lint-staged": { "**/*.js": [ "eslint --fix", "git add" ] }, "dependencies": { "@babel/runtime": "^7.2.0", "clean-css": "^4.2.1", "download": "^7.1.0", "fs-extra": "^7.0.0", "get-urls": "^8.0.0", "globby": "^8.0.1", "google-fonts-plugin": "2.0.2", "object-hash": "^1.3.0" }, "main": "gatsby-ssr.js", "devDependencies": { "@babel/cli": "^7.1.2", "@babel/core": "^7.1.2", "@babel/plugin-proposal-class-properties": "^7.1.0", "@babel/plugin-proposal-decorators": "^7.1.2", "@babel/plugin-proposal-do-expressions": "^7.0.0", "@babel/plugin-proposal-export-default-from": "^7.0.0", "@babel/plugin-proposal-export-namespace-from": "^7.0.0", "@babel/plugin-proposal-function-bind": "^7.0.0", "@babel/plugin-proposal-function-sent": "^7.1.0", "@babel/plugin-proposal-json-strings": "^7.0.0", "@babel/plugin-proposal-logical-assignment-operators": "^7.0.0", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0", "@babel/plugin-proposal-numeric-separator": "^7.0.0", "@babel/plugin-proposal-optional-chaining": "^7.0.0", "@babel/plugin-proposal-pipeline-operator": "^7.0.0", "@babel/plugin-proposal-throw-expressions": "^7.0.0", "@babel/plugin-syntax-dynamic-import": "^7.0.0", "@babel/plugin-syntax-import-meta": "^7.0.0", "@babel/plugin-syntax-jsx": "^7.2.0", "@babel/plugin-transform-runtime": "^7.1.0", "@babel/preset-env": "^7.1.0", "@babel/preset-react": "^7.0.0", "child-process-async": "^1.0.1", "child-process-promise": "^2.2.1", "emotion": "^9.2.6", "emotion-server": "^9.2.6", "enzyme": "^3.5.0", "enzyme-adapter-react-16": "^1.3.0", "eslint": "^5.2.0", "eslint-config-escalade-sports": "^1.0.1", "gatsby": "^2.0.19", "gatsby-plugin-emotion": "2.0.5", "husky": "^0.14.3", "identity-obj-proxy": "^3.0.0", "isomorphic-fetch": "^2.2.1", "jest": "^23.4.2", "jest-dom": "^1.12.0", "lint-staged": "^7.2.0", "netlify-cms": "^1.9.3", "netlify-lambda": "^0.4.0", "npm-run-all": "^4.1.3", "opn-cli": "^3.1.0", "react": "^16.4.0", "react-dom": "^16.4.0", "react-helmet": "^5.2.0", "react-netlify-form": "^2.0.7", "react-no-ssr": "^1.1.0", "react-test-renderer": "^16.4.2", "react-testing-library": "^4.1.7", "request": "^2.87.0", "statable": "^0.3.2", "static-server": "^2.2.1", "strip-html-comments": "^1.0.0", "toml": "^2.3.3", "wt-cli": "^10.0.3" } }