-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.json
More file actions
143 lines (143 loc) · 7.5 KB
/
Copy pathpackage.json
File metadata and controls
143 lines (143 loc) · 7.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"name": "@nasa-hds/core",
"version": "0.10.0",
"description": "NASA Horizon Design System (HDS) Core — design tokens, base styles, and USWDS theme configuration.",
"license": "CC0-1.0",
"type": "module",
"homepage": "https://nasa.github.io/hds-core/",
"bugs": {
"url": "https://github.com/nasa/hds-core/issues"
},
"engines": {
"node": ">=20",
"npm": ">=10"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"exports": {
".": "./dist/css/hds.min.css",
"./package.json": "./package.json",
"./css": "./dist/css/hds.min.css",
"./css/uswds": "./dist/css/hds-uswds.min.css",
"./css/dataviz": "./dist/css/hds-dataviz.min.css",
"./scss": "./src/scss/hds.scss",
"./scss/uswds": "./src/scss/hds-uswds.scss",
"./scss/dataviz": "./src/scss/hds-dataviz.scss",
"./js/uswds": "./dist/js/uswds.min.js",
"./js/uswds-init": "./dist/js/uswds-init.min.js",
"./assets/*": "./dist/assets/*"
},
"style": "./dist/css/hds.min.css",
"files": [
"dist/",
"src/scss/"
],
"scripts": {
"sass:hds": "sass src/scss/hds.scss dist/css/hds.css --load-path=node_modules/@uswds/uswds/packages --load-path=src/scss --source-map --style=expanded --quiet-deps",
"sass:uswds": "sass src/scss/hds-uswds.scss dist/css/hds-uswds.css --load-path=node_modules/@uswds/uswds/packages --load-path=src/scss --source-map --style=expanded --quiet-deps",
"sass:dataviz": "sass src/scss/hds-dataviz.scss dist/css/hds-dataviz.css --load-path=node_modules/@uswds/uswds/packages --load-path=src/scss --source-map --style=expanded --quiet-deps",
"postcss:hds": "postcss dist/css/hds.css -o dist/css/hds.min.css --map --env production",
"postcss:uswds": "postcss dist/css/hds-uswds.css -o dist/css/hds-uswds.min.css --map --env production",
"postcss:dataviz": "postcss dist/css/hds-dataviz.css -o dist/css/hds-dataviz.min.css --map --env production",
"clean:intermediate": "node -e \"const fs=require('fs'),p=require('path'),d='dist/css';fs.readdirSync(d).filter(f=>f.endsWith('.css')&&!f.includes('.min.')||f.endsWith('.css.map')&&!f.includes('.min.')).forEach(f=>fs.unlinkSync(p.join(d,f)))\"",
"copy:uswds-fonts": "node -e \"const fs=require('fs'),src='node_modules/@uswds/uswds/dist/fonts/public-sans',dst='dist/assets/fonts/public-sans';fs.mkdirSync(dst,{recursive:true});fs.readdirSync(src).filter(f=>f.endsWith('.woff2')).forEach(f=>fs.copyFileSync(src+'/'+f,dst+'/'+f))\"",
"copy:uswds-img": "node -e \"require('fs').cpSync('node_modules/@uswds/uswds/dist/img', 'dist/assets/img', {recursive: true})\"",
"copy:uswds-js": "node -e \"require('fs').cpSync('node_modules/@uswds/uswds/dist/js', 'dist/js', {recursive: true})\"",
"copy:hds": "node -e \"require('fs').cpSync('src/assets', 'dist/assets', {recursive: true})\"",
"copy:all": "npm run copy:uswds-fonts && npm run copy:uswds-img && npm run copy:uswds-js && npm run copy:hds",
"check:uswds": "bash scripts/check-uswds.sh",
"check:uswds-core": "bash scripts/check-uswds-core.sh",
"check:api-snapshot": "node scripts/check-public-api/index.js",
"check:tokens": "node scripts/check-tokens-drift.js",
"check:docs-render": "concurrently -k -s first -n serve,crawl \"http-server storybook-static -p 6006 -s\" \"wait-on tcp:127.0.0.1:6006 && node scripts/check-docs-render.js\"",
"update:api-snapshot": "node scripts/check-public-api/update-snapshot.js",
"sprite": "svg-sprite --config .config/svg-sprite.config.json src/assets/img/hds-icons/*.svg",
"build:tokens": "style-dictionary build --config .config/sd.config.js",
"init": "node -e \"const fs=require('fs');['dist/css','dist/js','dist/assets/fonts','dist/assets/img'].forEach(d=>fs.mkdirSync(d,{recursive:true}))\" && npm run copy:all && npm run sprite",
"build": "npm run build:tokens && npm run init && npm run sass:hds && npm run postcss:hds && npm run sass:uswds && npm run postcss:uswds && npm run sass:dataviz && npm run postcss:dataviz && npm run clean:intermediate",
"prepack": "npm run build",
"watch": "sass --watch src/scss/hds.scss:dist/css/hds.css --load-path=node_modules/@uswds/uswds/packages --load-path=src/scss --source-map --style=expanded --quiet-deps --poll",
"docs:meta": "node scripts/generate-docs-meta.mjs",
"dev": "npm run docs:meta && concurrently \"npm run watch\" \"npm run storybook\" --names sass,storybook --prefix-colors yellow,blue",
"storybook": "storybook dev -p 6006 --no-open --ci",
"build-storybook": "npm run docs:meta && storybook build",
"format": "prettier --check --cache --config .config/prettierrc.json --ignore-path .gitignore --ignore-path .config/prettierignore \"**/*.{md,mdx,js,mjs,cjs,json}\"",
"format:fix": "prettier --write --list-different --cache --config .config/prettierrc.json --ignore-path .gitignore --ignore-path .config/prettierignore \"**/*.{md,mdx,js,mjs,cjs,json}\"",
"lint": "npm run lint:scss && npm run lint:js && npm run lint:md && npm run lint:mdx && npm run lint:lockfile",
"lint:scss": "stylelint \"src/scss/**/*.scss\" --config .config/stylelintrc.json --ignore-path .config/stylelintignore",
"lint:scss:fix": "stylelint \"src/scss/**/*.scss\" --fix --config .config/stylelintrc.json --ignore-path .config/stylelintignore",
"lint:js": "eslint .",
"lint:js:fix": "eslint . --fix",
"lint:md": "remark --rc-path .config/remarkrc.mjs --quiet --frail *.md docs/**/*.md .github/**/*.md",
"lint:mdx": "remark --rc-path .config/remarkrc.mdx.mjs --quiet --frail stories/**/*.mdx",
"lint:lockfile": "lockfile-lint --path package-lock.json --type npm --validate-https --allowed-hosts npm --validate-integrity",
"test": "vitest run --reporter=dot",
"test:watch": "vitest watch",
"test:visual": "chromatic --config-file .config/chromatic.config.json --log-level warn"
},
"browserslist": [
"> 2%",
"last 2 versions",
"not dead"
],
"peerDependencies": {
"@uswds/uswds": "^3.13.0"
},
"devDependencies": {
"@changesets/cli": "^3.0.0",
"@chromatic-com/storybook": "^5.2.1",
"@cyclonedx/cyclonedx-npm": "^6.0.0",
"@storybook/addon-a11y": "^10.5.3",
"@storybook/addon-docs": "^10.5.3",
"@storybook/addon-vitest": "^10.5.3",
"@storybook/html-vite": "^10.5.3",
"@vitest/browser-playwright": "^4.1.10",
"@vitest/coverage-v8": "^4.1.0",
"autoprefixer": "^10.5.4",
"concurrently": "^10.0.4",
"cssnano": "^8.0.10",
"eslint": "^10.7.0",
"eslint-plugin-mdx": "^3.8.1",
"eslint-plugin-storybook": "^10.5.3",
"globals": "^17.7.0",
"http-server": "^14.1.1",
"lockfile-lint": "^5.0.0",
"playwright": "^1.61.1",
"postcss": "^8.5.20",
"postcss-cli": "^11.0.1",
"postcss-discard-comments": "^8.0.4",
"prettier": "^3.9.5",
"remark-cli": "^12.0.1",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.1",
"remark-lint": "^10.0.1",
"remark-mdx": "^3.1.1",
"remark-preset-lint-consistent": "^6.0.1",
"remark-preset-lint-recommended": "^7.0.1",
"remark-validate-links": "^13.1.0",
"sass": "^1.101.0",
"storybook": "^10.4.6",
"storybook-addon-pseudo-states": "^10.5.3",
"storybook-design-token": "^5.0.0",
"style-dictionary": "^5.5.0",
"stylelint": "^17.14.0",
"stylelint-config-standard-scss": "^17.0.0",
"svg-sprite": "^2.0.4",
"vitest": "^4.1.0",
"wait-on": "^9.1.0"
},
"keywords": [
"nasa",
"hds",
"horizon-design-system",
"uswds",
"design-tokens",
"sass"
],
"repository": {
"type": "git",
"url": "https://github.com/nasa/hds-core.git"
}
}