mirror of
https://github.com/material-components/material-web.git
synced 2024-08-17 09:30:27 +03:00
build: setup the npm workspace for the catalog
This commit is contained in:
parent
0e253a2e4d
commit
70b1a556ee
200
catalog/package.json
Normal file
200
catalog/package.json
Normal file
@ -0,0 +1,200 @@
|
||||
{
|
||||
"name": "material-web-catalog",
|
||||
"version": "0.0.1",
|
||||
"description": "The Material Web Catalog.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "npm run serve",
|
||||
"dev": "npm run serve:dev --watch",
|
||||
"serve": "wireit",
|
||||
"serve:dev": "wireit",
|
||||
"build:dev": "wireit",
|
||||
"build:dev:eleventy": "wireit",
|
||||
"build:dev:ts": "wireit",
|
||||
"build:type-check": "wireit",
|
||||
"build:prod": "wireit",
|
||||
"build:prod:eleventy": "wireit",
|
||||
"build:prod:ts": "wireit",
|
||||
"build:copy-readmes": "wireit",
|
||||
"build:copy-stories": "wireit"
|
||||
},
|
||||
"wireit": {
|
||||
"build:dev": {
|
||||
"dependencies": [
|
||||
"build:dev:eleventy",
|
||||
"build:dev:ts"
|
||||
]
|
||||
},
|
||||
"build:dev:eleventy": {
|
||||
"command": "NODE_ENV=DEV eleventy",
|
||||
"files": [
|
||||
"site",
|
||||
"lib",
|
||||
"eleventy-helpers",
|
||||
"eleventy.config.cjs",
|
||||
"stories"
|
||||
],
|
||||
"output": [
|
||||
"_dev"
|
||||
],
|
||||
"dependencies": [
|
||||
"build:dev:ts",
|
||||
"build:copy-readmes",
|
||||
"build:copy-stories"
|
||||
]
|
||||
},
|
||||
"build:dev:ts": {
|
||||
"command": "NODE_ENV=DEV node esbuild.config.mjs",
|
||||
"files": [
|
||||
"src",
|
||||
"tsconfig.json",
|
||||
"esbuild.config.mjs"
|
||||
],
|
||||
"output": [
|
||||
"lib"
|
||||
],
|
||||
"dependencies": [
|
||||
"..:build"
|
||||
]
|
||||
},
|
||||
"build:type-check": {
|
||||
"command": "tsc -p tsconfig.json --pretty --incremental",
|
||||
"files": [
|
||||
"src",
|
||||
"tsconfig.json"
|
||||
],
|
||||
"clean": "if-file-deleted",
|
||||
"output": [
|
||||
"tsconfig.tsbuildinfo"
|
||||
]
|
||||
},
|
||||
"build:prod": {
|
||||
"dependencies": [
|
||||
"build:prod:eleventy",
|
||||
"build:prod:ts"
|
||||
]
|
||||
},
|
||||
"build:prod:eleventy": {
|
||||
"command": "NODE_ENV=PROD eleventy",
|
||||
"files": [
|
||||
"site",
|
||||
"build",
|
||||
"eleventy-helpers",
|
||||
"eleventy.config.cjs",
|
||||
"stories/"
|
||||
],
|
||||
"output": [
|
||||
"_prod/"
|
||||
],
|
||||
"dependencies": [
|
||||
"build:prod:ts",
|
||||
"build:copy-readmes",
|
||||
"build:copy-stories"
|
||||
]
|
||||
},
|
||||
"build:prod:ts": {
|
||||
"command": "NODE_ENV=PROD node esbuild.config.mjs",
|
||||
"files": [
|
||||
"src",
|
||||
"tsconfig.json",
|
||||
"esbuild.config.mjs"
|
||||
],
|
||||
"output": [
|
||||
"build"
|
||||
],
|
||||
"dependencies": [
|
||||
"..:build"
|
||||
]
|
||||
},
|
||||
"build:copy-readmes": {
|
||||
"command": "node scripts/copy-readmes.mjs",
|
||||
"files": [
|
||||
"../docs/components",
|
||||
"scripts/copy-readmes.mjs"
|
||||
],
|
||||
"output": [
|
||||
"site/components/**/*.md",
|
||||
"site/components/images"
|
||||
]
|
||||
},
|
||||
"serve:dev": {
|
||||
"command": "wds -b /material-web/ --watch --root-dir _dev --open",
|
||||
"service": true,
|
||||
"dependencies": [
|
||||
{
|
||||
"script": "build:dev",
|
||||
"cascade": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"serve": {
|
||||
"command": "wds -b /material-web/ --watch --root-dir _prod",
|
||||
"service": true,
|
||||
"dependencies": [
|
||||
{
|
||||
"script": "build:prod",
|
||||
"cascade": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"build:copy-stories": {
|
||||
"command": "node scripts/copy-stories.mjs",
|
||||
"files": [
|
||||
"scripts/copy-stories.mjs",
|
||||
"../*/demo"
|
||||
],
|
||||
"output": [
|
||||
"stories/*/**/*",
|
||||
"!stories/components"
|
||||
]
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/e111077/11ty-lit.git"
|
||||
},
|
||||
"keywords": [
|
||||
"11ty",
|
||||
"eleventy",
|
||||
"lit",
|
||||
"lit-element",
|
||||
"SSR"
|
||||
],
|
||||
"author": "",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/e111077/11ty-lit/issues"
|
||||
},
|
||||
"homepage": "https://github.com/e111077/11ty-lit#readme",
|
||||
"dependencies": {
|
||||
"@11ty/is-land": "^3.0.0",
|
||||
"@lit-labs/ssr-client": "^1.1.1",
|
||||
"@material/material-color-utilities": "^0.2.5",
|
||||
"@material/mwc-drawer": "^0.27.0",
|
||||
"@material/web": "^1.0.0-pre.6",
|
||||
"@preact/signals-core": "^1.3.0",
|
||||
"lit": "^2.7.4",
|
||||
"playground-elements": "^0.17.0",
|
||||
"postdoc-lib": "^1.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@11ty/eleventy": "^2.0.1",
|
||||
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
|
||||
"@lit-labs/eleventy-plugin-lit": "^1.0.0",
|
||||
"@lit-labs/motion": "^1.0.3",
|
||||
"@luncheon/esbuild-plugin-gzip": "^0.1.0",
|
||||
"@web/dev-server": "^0.1.35",
|
||||
"@webcomponents/template-shadowroot": "^0.2.1",
|
||||
"clean-css": "^5.3.1",
|
||||
"eleventy-plugin-nesting-toc": "^1.3.0",
|
||||
"esbuild": "^0.17.14",
|
||||
"esbuild-plugin-minify-html-literals": "^1.0.1",
|
||||
"html-minifier": "^4.0.0",
|
||||
"markdown-it": "^13.0.1",
|
||||
"markdown-it-anchor": "^8.6.7",
|
||||
"slugify": "^1.6.6",
|
||||
"tiny-glob": "^0.2.9",
|
||||
"typescript": "~4.9.5",
|
||||
"wireit": "^0.9.5"
|
||||
}
|
||||
}
|
7197
package-lock.json
generated
7197
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
30
package.json
30
package.json
@ -19,7 +19,8 @@
|
||||
"build:ts": "wireit",
|
||||
"build:css-to-ts": "wireit",
|
||||
"build:sass": "wireit",
|
||||
"test": "wireit"
|
||||
"test": "wireit",
|
||||
"build:catalog": "wireit"
|
||||
},
|
||||
"type": "module",
|
||||
"files": [
|
||||
@ -34,8 +35,12 @@
|
||||
"!**/*_test.*",
|
||||
"!.wireit/**"
|
||||
],
|
||||
"workspaces": [
|
||||
".",
|
||||
"catalog"
|
||||
],
|
||||
"dependencies": {
|
||||
"lit": "^2.3.0",
|
||||
"lit": "^2.7.4",
|
||||
"safevalues": "^0.4.3",
|
||||
"tslib": "^2.4.0"
|
||||
},
|
||||
@ -62,7 +67,8 @@
|
||||
"tsconfig.json",
|
||||
"**/*.ts",
|
||||
"!**/*.d.ts",
|
||||
"!**/*.css.ts"
|
||||
"!**/*.css.ts",
|
||||
"!catalog"
|
||||
],
|
||||
"output": [
|
||||
".tsbuildinfo",
|
||||
@ -70,7 +76,8 @@
|
||||
"**/*.js.map",
|
||||
"**/*.d.ts",
|
||||
"!*.js",
|
||||
"!types/"
|
||||
"!types/",
|
||||
"!catalog"
|
||||
],
|
||||
"clean": "if-file-deleted",
|
||||
"dependencies": [
|
||||
@ -78,12 +85,13 @@
|
||||
]
|
||||
},
|
||||
"build:css-to-ts": {
|
||||
"command": "find . \\( -path ./.wireit -o -path ./node_modules \\) -prune -o -name '*.css' -print | xargs node css-to-ts.js",
|
||||
"command": "find . \\( -path ./.wireit -o -path ./node_modules -o -path ./catalog \\) -prune -o -name '*.css' -print | xargs node css-to-ts.js",
|
||||
"files": [
|
||||
"css-to-ts.js"
|
||||
],
|
||||
"output": [
|
||||
"**/*.css.ts"
|
||||
"**/*.css.ts",
|
||||
"!catalog"
|
||||
],
|
||||
"dependencies": [
|
||||
"build:sass"
|
||||
@ -96,7 +104,8 @@
|
||||
],
|
||||
"output": [
|
||||
"**/*.css",
|
||||
"**/*.css.map"
|
||||
"**/*.css.map",
|
||||
"!catalog"
|
||||
]
|
||||
},
|
||||
"test": {
|
||||
@ -108,6 +117,11 @@
|
||||
"web-test-runner.config.js"
|
||||
],
|
||||
"output": []
|
||||
},
|
||||
"build:catalog": {
|
||||
"dependencies": [
|
||||
"./catalog:build:prod"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user