-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP * init upgrade graphql plugin to ESM * fix linting * got develop command working for the website * build command WIP * migrate node module utils to async and refactor require to import.meta * pass linter * remove comment * www/ greenwood build command working * PostCSS working for both develop and build * PostCSS working for both develop and build * async prodServer support * fix serve task not resolving standard web assets * restore plugin analyzer * restore plugin analyzer * restore unified markdown functionality * fix missed merge conflict * restore include HTML plugin * restore polyfills plugin * PostCSS 8 deps upgrades * CLI build default spec passing via ESM * migrtate all CLI specs to ESM and enable eject * fix spec * migrate init package specs to ESM * migrate google and polyfills plugins and specs to ESM * migrate plugin-include-html to ESM * migrate plugin import CSS, JSON, and CommonJS and their specs to ESM * migrate plugin GraphQL and test cases to ESM * migrate plugin GraphQL and unit tests to ESM * migrate plugin typescript and specs to ESM * migrate plugin postcss specs to ESM * migrate plugin babel and default spec case to ESM * update package READMEs for ESM * update docs to demonstrate ESM usage * fix linting * handle path seperator to fix failing spec * bug/issue 532 esm upgrade with fix for windows (#814) * fix greenwood compilation for windows * serve and devekop commands working * default spec passing * proper URL to path handling for cross platform support * all specs passing wiht initial URL refactoring * refactor all specs to new standard URL usage * update docs * fix develop command * wip passing all specs on windows * all commands and tests passing on windows * update theme pack docs
- Loading branch information
1 parent
c3b5e21
commit 7d6493f
Showing
287 changed files
with
2,978 additions
and
2,580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
**/.greenwood/** | ||
**/public/** | ||
**/node_modules/** | ||
!.eslintrc.js | ||
!.eslintrc.cjs | ||
!.mocharc.js | ||
packages/plugin-babel/test/cases/**/*main.js |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
"author": "Owen Buckley <[email protected]>", | ||
"license": "MIT", | ||
"main": "./packages/cli/src/index.js", | ||
"type": "module", | ||
"workspaces": { | ||
"packages": [ | ||
"packages/*", | ||
|
@@ -42,7 +43,7 @@ | |
"glob-promise": "^3.4.0", | ||
"jsdom": "^14.0.0", | ||
"lerna": "^3.16.4", | ||
"mocha": "^6.1.4", | ||
"mocha": "^9.1.3", | ||
"nyc": "^14.0.0", | ||
"rimraf": "^2.6.3", | ||
"stylelint": "^13.8.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
"name": "@greenwood/cli", | ||
"version": "0.19.4", | ||
"description": "Greenwood CLI.", | ||
"type": "module", | ||
"repository": "https://github.com/ProjectEvergreen/greenwood/tree/master/packages/cli", | ||
"author": "Owen Buckley <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -29,16 +30,16 @@ | |
"acorn": "^8.0.1", | ||
"acorn-walk": "^8.0.0", | ||
"commander": "^2.20.0", | ||
"cssnano": "^4.1.10", | ||
"cssnano": "^5.0.11", | ||
"es-module-shims": "^0.5.2", | ||
"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": "^7.0.32", | ||
"postcss-import": "^12.0.0", | ||
"postcss": "^8.3.11", | ||
"postcss-import": "^13.0.0", | ||
"puppeteer": "^10.2.0", | ||
"rehype-raw": "^5.0.0", | ||
"rehype-stringify": "^8.0.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
const generateCompilation = require('../lifecycles/compile'); | ||
const { prodServer } = require('../lifecycles/serve'); | ||
import { generateCompilation } from '../lifecycles/compile.js'; | ||
import { prodServer } from '../lifecycles/serve.js'; | ||
|
||
module.exports = runProdServer = async () => { | ||
const runProdServer = async () => { | ||
|
||
return new Promise(async (resolve, reject) => { | ||
|
||
try { | ||
const compilation = await generateCompilation(); | ||
const port = 8080; | ||
|
||
prodServer(compilation).listen(port, () => { | ||
(await prodServer(compilation)).listen(port, () => { | ||
console.info(`Started production test server at localhost:${port}`); | ||
}); | ||
} catch (err) { | ||
reject(err); | ||
} | ||
|
||
}); | ||
}; | ||
}; | ||
|
||
export { runProdServer }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.