Skip to content

Commit f5326cb

Browse files
chore(workspace): #1315 convert www to follow proper workspace conventions (#1578)
1 parent cc0e3c3 commit f5326cb

File tree

139 files changed

+20
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+20
-8
lines changed

.ls-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ls:
1313

1414
ignore:
1515
- .git
16-
- public
16+
- www/public
1717
- node_modules
1818
- packages/cli/node_modules
1919
- packages/plugin-postcss/node_modules

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build]
2-
publish = "public/"
2+
publish = "www/public/"
33
command = "npx puppeteer browsers install chrome && yarn build"
44

55
[build.processing]

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"lerna": "lerna",
1717
"clean": "rimraf --glob ./packages/**/.greenwood/** ./packages/**/public/** ./coverage",
1818
"clean:deps": "rimraf **/node_modules/**",
19-
"build": "cross-env __GWD_ROLLUP_MODE__=strict greenwood build",
20-
"serve": "greenwood serve",
21-
"develop": "greenwood develop",
19+
"build": "yarn workspace www build",
20+
"serve": "yarn workspace www serve",
21+
"dev": "yarn workspace www dev",
2222
"test": "cross-env BROWSERSLIST_IGNORE_OLD_DATA=true __GWD_ROLLUP_MODE__=strict NODE_NO_WARNINGS=1 c8 mocha --exclude \"./packages/**/test/cases/loaders-*/**\" \"./packages/**/**/*.spec.js\"",
2323
"test:loaders": "cross-env BROWSERSLIST_IGNORE_OLD_DATA=true __GWD_ROLLUP_MODE__=strict NODE_NO_WARNINGS=1 node --import $(pwd)/test/test-register.js ./node_modules/mocha/bin/mocha \"./packages/**/**/*.spec.js\"",
2424
"test:loaders:win": "cross-env BROWSERSLIST_IGNORE_OLD_DATA=true __GWD_ROLLUP_MODE__=strict NODE_NO_WARNINGS=1 node --import file:\\\\%cd%\\test\\test-register.js ./node_modules/mocha/bin/mocha --exclude \"./packages/init/test/cases/**\" \"./packages/**/**/*.spec.js\"",

greenwood.config.js renamed to www/greenwood.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import rollupPluginAnalyzer from "rollup-plugin-analyzer";
99

1010
/** @type {import('@greenwood/cli').Config} */
1111
export default {
12-
workspace: new URL("./www/", import.meta.url),
1312
optimization: "inline",
1413
staticRouter: true,
1514
activeContent: true,

www/package.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
11
{
2-
"name": "@greenwood/www",
2+
"name": "www",
33
"version": "0.33.3",
44
"private": true,
55
"type": "module",
66
"description": "Greenwood website workspace.",
77
"repository": "https://github.com/ProjectEvergreen/greenwood",
88
"author": "Owen Buckley <[email protected]>",
99
"license": "MIT",
10+
"scripts": {
11+
"build": "cross-env __GWD_ROLLUP_MODE__=strict greenwood build",
12+
"serve": "greenwood serve",
13+
"dev": "greenwood develop"
14+
},
1015
"dependencies": {
1116
"@evergreen-wc/eve-button": "^0.1.1",
1217
"@evergreen-wc/eve-container": "^0.1.1",
1318
"lit": "^3.1.0",
1419
"prismjs": "^1.21.0"
1520
},
1621
"devDependencies": {
22+
"@greenwood/cli": "^0.33.0",
23+
"@greenwood/plugin-graphql": "^0.33.0",
24+
"@greenwood/plugin-import-raw": "^0.33.0",
25+
"@greenwood/plugin-include-html": "^0.33.0",
26+
"@greenwood/plugin-markdown": "^0.33.0",
27+
"@greenwood/plugin-polyfills": "^0.33.0",
28+
"@greenwood/plugin-postcss": "^0.33.0",
29+
"@greenwood/plugin-renderer-puppeteer": "^0.33.0",
1730
"@mapbox/rehype-prism": "^0.5.0",
1831
"postcss-nested": "^4.1.2",
1932
"rehype-autolink-headings": "^4.0.0",
File renamed without changes.

0 commit comments

Comments
 (0)