mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
643c880f28
* refactor: pluggable renderers * refactor: cache renderer per component * docs: update comments on snowpack plugin `transform` method * docs: add comments to renderer plugins * refactor: convert components to Map * fix: pass children through to astro __render * refactor: move Components/ComponentInfo to shared types * refactor: remove `gatherRuntimes` step, just scan output for imports * refactor: update isComponentTag logic * chore: move dependencies to renderers * fix: cross-platform transform injection * feat: defer renderer to react, fallback to preact * fix: use double quotes in generated script * test: fix failing children tests * test: add workspaceRoot to all tests * fix: pass props to renderer check * chore: add test:core script back for convenience * chore: remove unused external * chore: rename renderers * chore: add astring, estree-util-value-to-estree * chore: render-component => __astro_component * refactor: split hydrate logic to own file * refactor: use `astro-fragment` rather than `div` * chore: remove unused hooks * chore: delete unused file * chore: add changesets * fix: Astro renderer should be async * fix: remove <astro-fragment> for static content * test: fix failing test * chore: normalize config interface * feat: allow renderers to inject a snowpackPlugin * fix: resolve import URL before using dynamic import * refactor: update renderers to use separate /server entrypoint * refactor: update server renderer interface * fix: get renderers working again * test: debug failing test * test: better debug * test: better debug * test: remove debug * fix: support esm and cjs packages via "resolve" * refactor: split hydrate functions into individual files * fix: dependency resolution relative to projectRoot * fix: @snowpack/plugin-postcss needs to be hoisted * fix: do not test prettier-plugin-astro as it's not ready for primetime
53 lines
1.5 KiB
JSON
53 lines
1.5 KiB
JSON
{
|
|
"name": "root",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"release": "yarn build && yarn changeset publish",
|
|
"build": "yarn build:core",
|
|
"build:core": "lerna run build --scope astro --scope astro-parser --scope create-astro",
|
|
"build:vscode": "lerna run build --scope astro-languageserver --scope astro-vscode --scope astro-parser",
|
|
"dev:vscode": "lerna run dev --scope astro-languageserver --scope astro-vscode --scope astro-parser --parallel --stream",
|
|
"format": "prettier -w \"**/*.{js,jsx,ts,tsx,md,json}\"",
|
|
"lint": "eslint \"packages/**/*.ts\"",
|
|
"test": "lerna run test --scope astro --scope create-astro --stream",
|
|
"test:core": "yarn workspace astro run test"
|
|
},
|
|
"workspaces": [
|
|
"packages/*",
|
|
"packages/renderers/*",
|
|
"examples/*",
|
|
"tools/*",
|
|
"scripts",
|
|
"www"
|
|
],
|
|
"engines": {
|
|
"vscode": "^1.22.0"
|
|
},
|
|
"volta": {
|
|
"node": "14.16.1",
|
|
"npm": "7.11.2",
|
|
"yarn": "1.22.10"
|
|
},
|
|
"dependencies": {
|
|
"@changesets/cli": "^2.16.0"
|
|
},
|
|
"devDependencies": {
|
|
"@typescript-eslint/eslint-plugin": "^4.22.0",
|
|
"@typescript-eslint/parser": "^4.18.0",
|
|
"cheerio": "^1.0.0-rc.6",
|
|
"cheerio-select-tmp": "^0.1.1",
|
|
"del": "^6.0.0",
|
|
"esbuild": "^0.11.17",
|
|
"eslint": "^7.25.0",
|
|
"eslint-config-prettier": "^8.3.0",
|
|
"eslint-plugin-prettier": "^3.4.0",
|
|
"execa": "^5.0.0",
|
|
"lerna": "^4.0.0",
|
|
"prettier": "^2.2.1",
|
|
"svelte": "^3.38.0",
|
|
"tiny-glob": "^0.2.8",
|
|
"typescript": "^4.2.4",
|
|
"uvu": "^0.5.1"
|
|
}
|
|
}
|