@mcgill-wsg/mcgill-ds
Version:
McGill Design System - a set of components and styles to adhere to McGill University standards.
153 lines (152 loc) • 5.75 kB
JSON
{
"name": "@mcgill-wsg/mcgill-ds",
"version": "1.12.22",
"description": "McGill Design System - a set of components and styles to adhere to McGill University standards.",
"main": "dist/css/mds.css",
"style": "dist/css/mds.css",
"config": {
"host": "http://host.docker.internal"
},
"homepage": "https://www.mcgill.ca/web-services/",
"files": [
"dist"
],
"scripts": {
"build": "rimraf dist && npm run build:copy && npm run build:copy-twig && npm run build:postcss && npm run build:scoped && npm run build:web-components && npm run build:pre-pack",
"build:copy": "copyfiles -V -u 1 \"src/assets/**/*\" dist",
"build:copy-twig": "copyfiles -V -u 1 \"src/components/**/*.twig\" dist/twig",
"build:storybook-all": "npm-run-all -p storybook test:storybook8",
"test": "npm run unit-tests",
"test:a11y": "npx storybook-a11y-report --exclude **/Details --storybookUrl http://localhost:3001 --exit",
"test:dev": "cypress run --config-file cypress.dev.config.js",
"test:migration": "cypress run --config-file cypress.migration.config.js",
"test:storybook-compare": "npm-run-all -p storybook test:storybook8 test:migration",
"test:security": "npm audit --audit-level=critical",
"test:web-components": "npm -w packages/web-components run cypress:component",
"test:storybook8": "npm -w ./docs run storybook",
"storybook": "start-storybook --ci --port=3001 -s src/assets/",
"unit-tests": "jest --no-cache",
"lint": "npm run lint:eslint && npm run lint:css",
"lint:eslint": "eslint --ext .js .",
"lint:css": "stylelint \"**/*.css\"",
"lint:css-fix": "npm run lint:css -- --fix",
"build-storybook": "build-storybook -s src/assets/ -o public/",
"build:postcss": "cross-env-shell NODE_ENV=production postcss --verbose src/css/mds-all.css -o dist/css/mds.css",
"build:scoped": "SCOPED=true postcss dist/css/mds.css -o dist/css/mds-scoped.css",
"build:web-components": "npm -w packages/web-components run build && copyfiles -V -u 3 \"packages/web-components/dist/**/*\" dist/web-components",
"build:pre-pack": "cp package.json composer.json dist/",
"cy:run": "cypress run --config-file cypress.config.js",
"cy:ci": "start-test storybook :3001 cy:run",
"cy:dev": "start-test storybook :3001 test:dev",
"a11y": "start-test storybook :3001 test:a11y",
"dockify": "mds-docker",
"dockify:bash": "mds-docker -e /bin/bash",
"dockify:test:jest": "mds-docker -s test",
"dockify:test:dev": "mds-docker -s cy:dev",
"dockify:storybook": "mds-docker -s storybook",
"dockify:cypress": "mds-docker -s cy:ci",
"dockify:cypress:info": "mds-docker -e cypress -s info",
"dockify:php-version": "mds-docker -e php -s -v",
"dockify:composer-version": "mds-docker -e composer -s -V",
"dockify:composer-install": "mds-docker -e composer -s install",
"dockify:twig-linter": "npm run dockify:composer-install; mds-docker -e vendor/bin/twig-linter -s 'lint src/components'",
"dockify:watch-wc": "mds-docker -s watch:wc",
"dockify:test-wc": "mds-docker -s test:web-components",
"mr-prep": "npx changeset",
"watch:wc": "npm -w packages/web-components run watch",
"watch:tests": "npm-watch"
},
"watchGlobalConfig": {
"delay": 1000
},
"watch": {
"test:migration": [
"src",
"docs/stories"
]
},
"publishConfig": {
"@mcgill-wsg:registry": "https://registry.npmjs.org/"
},
"keywords": [
"CSS",
"library",
"framework",
"components"
],
"author": "McGill Web Services Group",
"license": "ISC",
"peerDependencies": {
"cypress": "13.17.0",
"ionicons": "5.5.1"
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.15.7",
"@babel/preset-env": "^7.12.16",
"@changesets/cli": "^2.22.0",
"@storybook/addon-a11y": "^6.5.16",
"@storybook/addon-actions": "^6.5.16",
"@storybook/addon-essentials": "^6.5.16",
"@storybook/addon-links": "^6.5.16",
"@storybook/addons": "^6.5.16",
"@storybook/html": "^6.5.16",
"@storybook/theming": "^6.5.16",
"@tailwindcss/postcss7-compat": "^2.0.3",
"@testing-library/dom": "7.29.4",
"@testing-library/jest-dom": "^5.11.9",
"autoprefixer": "^9.8.6",
"babel-loader": "^8.2.2",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.0",
"cssnano": "4.1.10",
"cssnano-preset-default": "4.0.7",
"cypress-image-diff-js": "^1.23.0",
"dom-serializer": "^2.0.0",
"eslint": "^7.32.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-storybook": "^0.6.6",
"file-loader": "^5.0.2",
"htmlparser2": "^10.0.0",
"http-server": "^14.1.0",
"ionicons": "^5.5.1",
"jest": "^26.6.2",
"jest-environment-jsdom": "^26.6.2",
"js-yaml-loader": "^1.2.2",
"npm-run-all": "^4.1.5",
"npm-watch": "^0.13.0",
"postcss": "^8.3.6",
"postcss-cli": "^8.0.0",
"postcss-import": "^14.0.2",
"postcss-load-config": "^3.1.4",
"postcss-loader": "^4.3.0",
"postcss-prefix-selector": "^1.13.0",
"rimraf": "^3.0.2",
"sass": "^1.23.7",
"start-server-and-test": "^1.14.0",
"storybook-a11y-report": "^0.0.19",
"storybook-design-token": "^2.7.1",
"stylelint": "^14.0.1",
"stylelint-config-standard": "^23.0.0",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.0.3",
"twig": "1.15.4",
"twig-drupal-filters": "^3.1.2",
"twig-loader": "0.5.5",
"twig-testing-library": "1.1.1",
"twigjs-loader": "^1.0.2"
},
"engines": {
"node": ">=14"
},
"dependencies": {
"normalize.css": "^8.0.1"
},
"overrides": {
"elliptic": "6.6.1",
"form-data": "^4.0.4"
},
"workspaces": [
"packages/**",
"docs/"
]
}