Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,34 @@
"postbuild": "cp src/index.html dist/index.html",
"push.yalc": "yarn build && cd dist && yalc push"
},
"resolutions": {
"json-schema": "0.4.0",
"**/json-schema": "0.4.0",
"form-data": "2.5.5",
"**/request/form-data": "2.5.5",
"**/node-gyp/request/form-data": "2.5.5",
"pbkdf2": "3.1.5",
"**/pbkdf2": "3.1.5",
"**/crypto-browserify/pbkdf2": "3.1.5",
"loader-utils": "2.0.4",
"**/loader-utils": "2.0.4",
"style-loader/loader-utils": "2.0.4",
"babel-loader/loader-utils": "2.0.4",
"handlebars": "4.7.8",
"**/handlebars": "4.7.8",
"minimist": "1.2.8",
"**/minimist": "1.2.8",
"property-expr": "2.0.5",
"**/property-expr": "2.0.5",
"simple-git": "3.16.1",
"**/simple-git": "3.16.1",
"create-hash": "1.2.0",
"**/create-hash": "1.2.0",
"ejs": "3.1.8",
"**/ejs": "3.1.8",
"lodash": "4.17.21",
"**/lodash": "4.17.21"
},
"dependencies": {
"@babel/core": "^7.7.5",
"@types/history": "^4.7.3",
Expand Down Expand Up @@ -69,6 +97,7 @@
"devDependencies": {
"@stoplight/scripts": "^5.0.0",
"@types/jest": "^24.0.23",
"@types/minimatch": "^5.1.2",
"@types/node": "^12.12.14",
"browserfs": "*",
"jest": "^24.9.0",
Expand Down
69 changes: 6 additions & 63 deletions src/__tests__/__snapshots__/config.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ Object {
BugsnagSourceMapUploaderPlugin {
"apiKey": "123",
"appVersion": "1.1",
"codeBundleId": undefined,
"endpoint": undefined,
"ignoredBundleExtensions": Array [
".css",
Expand Down Expand Up @@ -182,263 +183,207 @@ Object {
"xhtml": false,
},
},
MonacoWebpackPlugin {
MonacoEditorWebpackPlugin {
"options": Object {
"features": Array [
Object {
"entry": "vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp",
"label": "accessibilityHelp",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/bracketMatching/bracketMatching",
"label": "bracketMatching",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/caretOperations/caretOperations",
"label": "caretOperations",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/clipboard/clipboard",
"label": "clipboard",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/codeAction/codeActionContributions",
"label": "codeAction",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/codelens/codelensController",
"label": "codelens",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/colorPicker/colorDetector",
"label": "colorDetector",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/comment/comment",
"label": "comment",
"worker": undefined,
},
Object {
"entry": "vs/editor/browser/controller/coreCommands",
"label": "coreCommands",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/cursorUndo/cursorUndo",
"label": "cursorUndo",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/dnd/dnd",
"label": "dnd",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/find/findController",
"label": "find",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/folding/folding",
"label": "folding",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/format/formatActions",
"label": "format",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/gotoError/gotoError",
"label": "gotoError",
"worker": undefined,
},
Object {
"entry": "vs/editor/standalone/browser/quickOpen/gotoLine",
"label": "gotoLine",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/hover/hover",
"label": "hover",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/inPlaceReplace/inPlaceReplace",
"label": "inPlaceReplace",
"worker": undefined,
},
Object {
"entry": "vs/editor/standalone/browser/inspectTokens/inspectTokens",
"label": "inspectTokens",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/linesOperations/linesOperations",
"label": "linesOperations",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/links/links",
"label": "links",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/multicursor/multicursor",
"label": "multicursor",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/parameterHints/parameterHints",
"label": "parameterHints",
"worker": undefined,
},
Object {
"entry": "vs/editor/standalone/browser/quickOpen/quickCommand",
"label": "quickCommand",
"worker": undefined,
},
Object {
"entry": Array [
"vs/editor/contrib/referenceSearch/referenceSearch",
"vs/editor/standalone/browser/referenceSearch/standaloneReferenceSearch",
],
"entry": "vs/editor/standalone/browser/referenceSearch/standaloneReferenceSearch",
"label": "referenceSearch",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/rename/rename",
"label": "rename",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/smartSelect/smartSelect",
"label": "smartSelect",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/snippet/snippetController2",
"label": "snippets",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/suggest/suggestController",
"label": "suggest",
"worker": undefined,
},
Object {
"entry": "vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast",
"label": "toggleHighContrast",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/caretOperations/transpose",
"label": "transpose",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/wordHighlighter/wordHighlighter",
"label": "wordHighlighter",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/wordOperations/wordOperations",
"label": "wordOperations",
"worker": undefined,
},
Object {
"entry": "vs/editor/contrib/wordPartOperations/wordPartOperations",
"label": "wordPartOperations",
"worker": undefined,
},
],
"filename": "[name].worker.js",
"languages": Array [
Object {
"alias": undefined,
"entry": Array [
"vs/basic-languages/css/css.contribution",
"vs/language/css/monaco.contribution",
],
"label": "css",
"worker": Object {
"entry": "vs/language/css/css.worker",
"fallback": "vs/language/css/cssWorker",
"id": "vs/language/css/cssWorker",
"output": "css.worker.js",
},
},
Object {
"alias": undefined,
"entry": Array [
"vs/basic-languages/html/html.contribution",
"vs/language/html/monaco.contribution",
],
"label": "html",
"worker": Object {
"entry": "vs/language/html/html.worker",
"fallback": "vs/language/html/htmlWorker",
"id": "vs/language/html/htmlWorker",
"output": "html.worker.js",
},
},
Object {
"alias": undefined,
"entry": "vs/basic-languages/javascript/javascript.contribution",
"label": "javascript",
"worker": undefined,
},
Object {
"alias": undefined,
"entry": "vs/language/json/monaco.contribution",
"label": "json",
"worker": Object {
"entry": "vs/language/json/json.worker",
"fallback": "vs/language/json/jsonWorker",
"id": "vs/language/json/jsonWorker",
"output": "json.worker.js",
},
},
Object {
"alias": undefined,
"entry": "vs/basic-languages/markdown/markdown.contribution",
"label": "markdown",
"worker": undefined,
},
Object {
"alias": undefined,
"entry": Array [
"vs/basic-languages/typescript/typescript.contribution",
"vs/language/typescript/monaco.contribution",
],
"label": "typescript",
"worker": Object {
"entry": "vs/language/typescript/ts.worker",
"fallback": "vs/language/typescript/tsWorker",
"id": "vs/language/typescript/tsWorker",
"output": "typescript.worker.js",
},
},
Object {
"alias": undefined,
"entry": "vs/basic-languages/xml/xml.contribution",
"label": "xml",
"worker": undefined,
},
Object {
"alias": undefined,
"entry": "vs/basic-languages/yaml/yaml.contribution",
"label": "yaml",
"worker": undefined,
},
],
"output": "",
"publicPath": "",
},
},
HashedModuleIdsPlugin {
Expand Down Expand Up @@ -471,9 +416,7 @@ Object {
},
CopyPlugin {
"options": Object {},
"patterns": Array [
"",
],
"patterns": Array [],
},
HotModuleReplacementPlugin {
"fullBuildTimeout": 200,
Expand Down
3 changes: 2 additions & 1 deletion src/public.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export interface IPublicOpts {
export const configurePublic = (config: Config, opts: IPublicOpts) => {
const { publicDir } = opts;

config.plugin('public').use(CopyWebpackPlugin, [[publicDir]]);
const patterns = publicDir ? [{ from: publicDir }] : [];
config.plugin('public').use(CopyWebpackPlugin, [patterns]);

return config.plugin('public');
};
Loading