Previously, when using the cunningham bin to build tokens, the CSS file always included utility classes, resulting in duplicated CSS utility classes on the consumer side if no specific CSS optimizer is defined ( its local cunningham-tokens.css + the one from the react package ). Now, this new feature introduces a param named --utility-classes that must be provided to generate those classes. This params is henceforth only provided to the bin inside the tokens package.
57 lines
1.6 KiB
JSON
57 lines
1.6 KiB
JSON
{
|
|
"name": "@openfun/cunningham-tokens",
|
|
"private": false,
|
|
"version": "0.1.0",
|
|
"license": "MIT",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"bin": {
|
|
"cunningham": "./dist/bin/Main.js"
|
|
},
|
|
"main": "./dist/lib/index.js",
|
|
"types": "./dist/lib/index.d.ts",
|
|
"exports": {
|
|
"./default-tokens": "./dist/cunningham-tokens.css",
|
|
".": {
|
|
"require": "./dist/lib/index.js",
|
|
"import": "./dist/lib/index.js",
|
|
"types": "./dist/lib/index.d.ts"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist/"
|
|
],
|
|
"scripts": {
|
|
"lint": "eslint . 'src/**/*.{ts,tsx}'",
|
|
"dev": "nodemon --watch 'src/bin' --ext '*' --exec 'yarn build'",
|
|
"build-bin": "cd src/bin && tsc -p tsconfig.json && tsc-alias && chmod +x ../../dist/bin/Main.js",
|
|
"build-lib": "cp dist/cunningham-tokens.ts src/lib && cd src/lib && tsc -p tsconfig.json",
|
|
"build": "yarn build-bin && yarn build-default-theme && yarn build-lib && cd ../.. && ln -sf ../../packages/tokens/dist/bin/Main.js node_modules/.bin/cunningham",
|
|
"build-default-theme": "./dist/bin/Main.js -o dist -s html -g css,js,ts --utility-classes",
|
|
"test": "FORCE_COLOR=1 jest --runInBand --verbose src"
|
|
},
|
|
"dependencies": {
|
|
"chalk": "4.1.2",
|
|
"commander": "9.4.1",
|
|
"deepmerge": "4.2.2",
|
|
"figlet": "1.5.2",
|
|
"ts-node": "10.9.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/figlet": "1.5.5",
|
|
"@types/jest": "29.2.4",
|
|
"@types/node": "18.11.18",
|
|
"eslint-config-custom": "*",
|
|
"jest": "29.3.1",
|
|
"nodemon": "2.0.20",
|
|
"prettier": "2.8.1",
|
|
"ts-jest": "29.0.3",
|
|
"tsc-alias": "1.8.2",
|
|
"typescript": "4.9.4"
|
|
},
|
|
"engines": {
|
|
"node": ">=16.0.0"
|
|
}
|
|
}
|