Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release/0.27.0 #979

Merged
merged 25 commits into from
Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
3d0ae4b
Enhancement/issue 971 refactor bundling and optimizations (#974)
thescientist13 Sep 22, 2022
dc4b53b
Enhancement/issue 925 auto spread arrays of plugins (#969)
thescientist13 Sep 22, 2022
48a7517
fix incorrect HUD noopener implementation (#975)
thescientist13 Sep 22, 2022
bba98ef
v0.27.0-alpha.0
thescientist13 Oct 1, 2022
6398b48
Bug/leading slash in CSS (`<link>`) paths break bundling (#981)
thescientist13 Oct 15, 2022
819c946
v0.27.0-alpha.1
thescientist13 Oct 15, 2022
b5be2cc
introduce worker thread pools for SSR page generation (#983)
thescientist13 Nov 3, 2022
fd1a0b0
properly bundle all `<script>` tags (#995)
thescientist13 Nov 3, 2022
ad480ca
update rollup preserveEntrySignatures to neutral setting to silence w…
thescientist13 Nov 3, 2022
bf356ff
upgrade to WCC 0.6.x (#993)
thescientist13 Nov 3, 2022
bf0fa1a
reconcile bug fixes from rebasing master and 0.26.2 changes
thescientist13 Nov 3, 2022
a77a8be
v0.27.0-alpha.2
thescientist13 Nov 4, 2022
0eb3ebf
Enhancement/issue 763 custom css minification and bundling (#980)
thescientist13 Nov 12, 2022
c781ddb
v0.27.0-alpha.3
thescientist13 Nov 12, 2022
a0805ee
Bug/issue 763 refine import rule handling (#999)
thescientist13 Nov 18, 2022
992e180
Enhancement/issue 763 restore postcss import (#998)
thescientist13 Nov 18, 2022
ce98d8d
v0.27.0-alpha.4
thescientist13 Nov 18, 2022
e72407c
Revert "Enhancement/issue 763 restore postcss import (#998)" (#1001)
thescientist13 Nov 18, 2022
dfbd885
v0.27.0-alpha.5
thescientist13 Nov 18, 2022
dfa0f79
Revert "Revert "Enhancement/issue 763 restore postcss import (#998)" …
thescientist13 Nov 19, 2022
4f627bc
v0.27.0-alpha.6
thescientist13 Nov 19, 2022
04e25c4
Feature/issue 878 ssr custom resources (#992)
thescientist13 Nov 21, 2022
8c4fc75
v0.27.0-alpha.7
thescientist13 Nov 21, 2022
9ce5d35
move tech stack docs to the about page (#1006)
thescientist13 Nov 23, 2022
93295c0
Content/release v0.27.0 blog post (#1009)
thescientist13 Nov 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/ci-exp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Continuous Integration (Experimental)

on: [pull_request]

jobs:

build:
runs-on: ubuntu-18.04

strategy:
matrix:
node: [16]

steps:
- uses: actions/checkout@v1
- name: Install Chromium Library Dependencies
run: |
sh ./.github/workflows/chromium-lib-install.sh
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Installing project dependencies
run: |
yarn install --frozen-lockfile && yarn lerna bootstrap
- name: Test
run: |
yarn test:exp
25 changes: 25 additions & 0 deletions .github/workflows/ci-win-exp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Continuous Integration Windows (Experimental)

on: [pull_request]

jobs:

build:
runs-on: windows-latest

strategy:
matrix:
node: [16]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Installing project dependencies
run: |
yarn install --frozen-lockfile --network-timeout 1000000 && yarn lerna bootstrap
- name: Test
run: |
yarn test:exp:win
5 changes: 1 addition & 4 deletions .mocharc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
const path = require('path');

module.exports = {
spec: path.join(__dirname, 'packages/**/test/**/**/**/*.spec.js'),
timeout: 60000
timeout: 90000
};
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.17.0
16.17.0
12 changes: 6 additions & 6 deletions greenwood.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export default {
staticRouter: true,
interpolateFrontmatter: true,
plugins: [
...greenwoodPluginGraphQL(),
...greenwoodPluginPolyfills(),
greenwoodPluginGraphQL(),
greenwoodPluginPolyfills(),
greenwoodPluginPostCss(),
...greenwoodPluginImportJson(),
...greenwoodPluginImportCss(),
greenwoodPluginImportJson(),
greenwoodPluginImportCss(),
{
type: 'rollup',
name: 'rollup-plugin-analyzer',
Expand All @@ -34,8 +34,8 @@ export default {
];
}
},
...greenwoodPluginIncludeHTML(),
...greenwoodPluginRendererPuppeteer()
greenwoodPluginIncludeHTML(),
greenwoodPluginRendererPuppeteer()
],
markdown: {
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.26.2",
"version": "0.27.0-alpha.7",
"packages": [
"packages/*",
"www"
Expand Down
6 changes: 5 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
skip_processing = true

[build.environment]
NODE_VERSION = "14.16.0"
NODE_VERSION = "14.16.0"

[[redirects]]
from = "/docs/tech-stack/"
to = "/about/tech-stack/"
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"build": "cross-env __GWD_ROLLUP_MODE__=strict node . build",
"serve": "node . serve",
"develop": "node . develop",
"test": "cross-env BROWSERSLIST_IGNORE_OLD_DATA=true __GWD_ROLLUP_MODE__=strict c8 mocha",
"test": "cross-env BROWSERSLIST_IGNORE_OLD_DATA=true __GWD_ROLLUP_MODE__=strict c8 mocha --exclude \"./packages/**/test/cases/exp-*/**\" \"./packages/**/**/*.spec.js\"",
"test:exp": "cross-env BROWSERSLIST_IGNORE_OLD_DATA=true __GWD_ROLLUP_MODE__=strict NODE_NO_WARNINGS=1 node --experimental-loader $(pwd)/test/test-loader.js ./node_modules/mocha/bin/mocha \"./packages/**/**/*.spec.js\"",
"test:exp:win": "cross-env BROWSERSLIST_IGNORE_OLD_DATA=true __GWD_ROLLUP_MODE__=strict NODE_NO_WARNINGS=1 node --experimental-loader file:\\\\%cd%\\test\\test-loader.js ./node_modules/mocha/bin/mocha --exclude \"./packages/init/test/cases/**\" \"./packages/**/**/*.spec.js\"",
"test:tdd": "yarn test --watch",
"lint:js": "eslint \"*.js\" \"./packages/**/**/*.js\" \"./test/*.js\" \"./www/**/**/*.js\"",
"lint:ts": "eslint \"./packages/**/**/*.ts\"",
Expand All @@ -40,7 +42,7 @@
"cross-env": "^7.0.3",
"eslint": "^6.8.0",
"eslint-plugin-no-only-tests": "^2.6.0",
"gallinago": "^0.5.0",
"gallinago": "^0.6.0",
"glob-promise": "^3.4.0",
"jsdom": "^16.5.0",
"lerna": "^3.16.4",
Expand Down
8 changes: 3 additions & 5 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@greenwood/cli",
"version": "0.26.2",
"version": "0.27.0-alpha.7",
"description": "Greenwood CLI.",
"type": "module",
"repository": "https://github.com/ProjectEvergreen/greenwood/tree/master/packages/cli",
Expand Down Expand Up @@ -29,16 +29,14 @@
"acorn": "^8.0.1",
"acorn-walk": "^8.0.0",
"commander": "^2.20.0",
"cssnano": "^5.0.11",
"css-tree": "^2.2.1",
"es-module-shims": "^1.2.0",
"front-matter": "^4.0.2",
"koa": "^2.13.0",
"livereload": "^0.9.1",
"markdown-toc": "^1.2.0",
"node-fetch": "^2.6.1",
"node-html-parser": "^1.2.21",
"postcss": "^8.3.11",
"postcss-import": "^13.0.0",
"rehype-raw": "^5.0.0",
"rehype-stringify": "^8.0.0",
"remark-frontmatter": "^2.0.0",
Expand All @@ -47,7 +45,7 @@
"rollup": "^2.58.0",
"rollup-plugin-terser": "^7.0.0",
"unified": "^9.2.0",
"wc-compiler": "~0.5.0"
"wc-compiler": "~0.6.1"
},
"devDependencies": {
"@babel/runtime": "^7.10.4",
Expand Down
17 changes: 5 additions & 12 deletions packages/cli/src/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,15 @@ const runProductionBuild = async (compilation) => {
try {
const { prerender } = compilation.config;
const outputDir = compilation.context.outputDir;
const defaultPrerender = (compilation.config.plugins.filter(plugin => plugin.type === 'renderer' && plugin.isGreenwoodDefaultPlugin) || []).length === 1
? compilation.config.plugins.filter(plugin => plugin.type === 'renderer')[0].provider(compilation)
: {};
const customPrerender = (compilation.config.plugins.filter(plugin => plugin.type === 'renderer' && !plugin.isGreenwoodDefaultPlugin) || []).length === 1
const prerenderPlugin = (compilation.config.plugins.filter(plugin => plugin.type === 'renderer') || []).length === 1
? compilation.config.plugins.filter(plugin => plugin.type === 'renderer')[0].provider(compilation)
: {};

if (!fs.existsSync(outputDir)) {
fs.mkdirSync(outputDir);
}

if (prerender || customPrerender.prerender) {
if (prerender || prerenderPlugin.prerender) {
// start any servers if needed
const servers = [...compilation.config.plugins.filter((plugin) => {
return plugin.type === 'server';
Expand All @@ -42,14 +39,10 @@ const runProductionBuild = async (compilation) => {
return Promise.resolve(server);
}));

if (customPrerender.workerUrl) {
await preRenderCompilationWorker(compilation, customPrerender);
} else if (customPrerender.customUrl) {
await preRenderCompilationCustom(compilation, customPrerender);
} else if (defaultPrerender && prerender) {
await preRenderCompilationWorker(compilation, defaultPrerender);
if (prerenderPlugin.workerUrl) {
await preRenderCompilationWorker(compilation, prerenderPlugin);
} else {
reject('This is an unhandled pre-rendering case! Please report.');
await preRenderCompilationCustom(compilation, prerenderPlugin);
}
} else {
await staticRenderCompilation(compilation);
Expand Down
Loading