css-font-face-src
Version:
A CSS @font-face src property value parser
58 lines (57 loc) • 2.06 kB
JSON
{
"name": "css-font-face-src",
"version": "2.0.0",
"description": "A CSS @font-face src property value parser",
"main": "dist/ts/index.js",
"types": "dist/ts/index.d.ts",
"browser": "dist/umd/index.js",
"scripts": {
"build": "npm run build:grammar && npm run build:ts && npm run build:umd",
"build:grammar": "peggy --plugin ts-pegjs -d util:../util -o src/grammar/index.ts src/grammar/grammar.peg # the ../util path is relative to src/grammar, i.e. where the output file src/grammar/index.ts sits",
"build:ts": "mkdir -p dist/ts && tsc",
"build:umd": "mkdir -p dist/umd && browserify --standalone cssFontFaceSrc src/index.ts -p [ tsify ] -o dist/umd/index.js",
"examples": "npm run examples:cjs && npm run examples:esm && npm run examples:ts",
"examples:cjs": "node examples/cjs/parse.js && node examples/cjs/serialize.js",
"examples:esm": "node examples/esm/parse.mjs && node examples/esm/serialize.mjs",
"examples:ts": "ts-node examples/ts/parse.ts && ts-node examples/ts/serialize.ts",
"test": "npm run build && npm run test:jest && npm run test:dist",
"test:dist": "npm run build:umd && npm run test:smoketest",
"test:jest": "jest",
"test:smoketest": "ts-node test/dist/loadPage.ts test/dist/dist_test.html | grep font.woff"
},
"repository": {
"type": "git",
"url": "git://github.com/cburgmer/css-font-face-src"
},
"keywords": [
"css",
"parser",
"value",
"font",
"font-face"
],
"author": {
"name": "Christoph Burgmer",
"email": "christoph.burgmer@gmail.com"
},
"contributors": [
{
"name": "Mobile Design Resources",
"email": "mobiledesres@outlook.com"
}
],
"license": "BSD-2-Clause",
"bugs": {
"url": "https://github.com/cburgmer/css-font-face-src/issues"
},
"devDependencies": {
"@tsconfig/recommended": "^1.0.2",
"@types/jest": "^29.4.0",
"browserify": "^13.3.0",
"puppeteer": "^19.6.1",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"ts-pegjs": "^3.0.0",
"tsify": "^5.0.4"
}
}