add nix infra

This commit is contained in:
Maxwell Brown 2024-10-26 12:15:57 -04:00
parent 4d7ea90dd9
commit b95d19325b
No known key found for this signature in database
4 changed files with 108 additions and 79 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake;

1
.gitignore vendored
View file

@ -6,3 +6,4 @@
/test/smoke/parcel/.cache/** /test/smoke/parcel/.cache/**
**/dist/ **/dist/
**/out/ **/out/
.direnv/

27
flake.nix Normal file
View file

@ -0,0 +1,27 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs =
{ nixpkgs, ... }:
let
forAllSystems =
function:
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (
system: function nixpkgs.legacyPackages.${system}
);
in
{
formatter = forAllSystems (pkgs: pkgs.alejandra);
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
bun
deno
nodejs
python3
];
};
});
};
}

View file

@ -1,81 +1,81 @@
{ {
"name": "monaco-editor", "name": "@effect/monaco-editor",
"version": "0.52.0", "version": "0.52.0",
"vscodeRef": "493330cdc6475247184ea459c66776c3da12cd2d", "vscodeRef": "493330cdc6475247184ea459c66776c3da12cd2d",
"private": true, "private": true,
"description": "A browser based code editor", "description": "A browser based code editor",
"homepage": "https://github.com/microsoft/monaco-editor", "homepage": "https://github.com/microsoft/monaco-editor",
"author": "Microsoft Corporation", "author": "Microsoft Corporation",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"import-typescript": "ts-node ./build/importTypescript", "import-typescript": "ts-node ./build/importTypescript",
"playwright-install": "node ./node_modules/playwright/install.js", "playwright-install": "node ./node_modules/playwright/install.js",
"playwright-install-deps": "playwright install-deps", "playwright-install-deps": "playwright install-deps",
"postinstall": "ts-node ./build/postinstall", "postinstall": "ts-node ./build/postinstall",
"prettier-check": "prettier --check .", "prettier-check": "prettier --check .",
"prettier": "prettier --write .", "prettier": "prettier --write .",
"pretty-quick": "pretty-quick --staged", "pretty-quick": "pretty-quick --staged",
"simpleserver": "ts-node ./build/simpleserver", "simpleserver": "ts-node ./build/simpleserver",
"package-for-smoketest-webpack": "ts-node ./test/smoke/package-webpack", "package-for-smoketest-webpack": "ts-node ./test/smoke/package-webpack",
"package-for-smoketest-webpack-cross-origin": "ts-node ./test/smoke/package-webpack --cross-origin", "package-for-smoketest-webpack-cross-origin": "ts-node ./test/smoke/package-webpack --cross-origin",
"package-for-smoketest-esbuild": "ts-node ./test/smoke/package-esbuild", "package-for-smoketest-esbuild": "ts-node ./test/smoke/package-esbuild",
"package-for-smoketest-vite": "ts-node ./test/smoke/package-vite", "package-for-smoketest-vite": "ts-node ./test/smoke/package-vite",
"smoketest": "node ./test/smoke/runner.js", "smoketest": "node ./test/smoke/runner.js",
"smoketest-debug": "node ./test/smoke/runner.js --debug-tests", "smoketest-debug": "node ./test/smoke/runner.js --debug-tests",
"test": "mocha test/unit/all.js && ts-node ./build/check-samples", "test": "mocha test/unit/all.js && ts-node ./build/check-samples",
"deps-all-remove": "ts-node ./build/npm/removeAll", "deps-all-remove": "ts-node ./build/npm/removeAll",
"deps-all-install": "ts-node ./build/npm/installAll", "deps-all-install": "ts-node ./build/npm/installAll",
"update-actions": "pin-github-action ./.github/workflows/website.yml", "update-actions": "pin-github-action ./.github/workflows/website.yml",
"watch": "tsc -w -p ./src", "watch": "tsc -w -p ./src",
"build": "ts-node ./build/build-languages", "build": "ts-node ./build/build-languages",
"build-monaco-editor": "npm run build && ts-node ./build/build-monaco-editor" "build-monaco-editor": "npm run build && ts-node ./build/build-monaco-editor"
}, },
"typings": "./esm/vs/editor/editor.api.d.ts", "typings": "./esm/vs/editor/editor.api.d.ts",
"module": "./esm/vs/editor/editor.main.js", "module": "./esm/vs/editor/editor.main.js",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/microsoft/monaco-editor" "url": "https://github.com/microsoft/monaco-editor"
}, },
"devDependencies": { "devDependencies": {
"@types/mocha": "^9.1.0", "@types/mocha": "^9.1.0",
"@types/shelljs": "^0.8.11", "@types/shelljs": "^0.8.11",
"@typescript/vfs": "^1.3.5", "@typescript/vfs": "^1.3.5",
"chai": "^4.3.6", "chai": "^4.3.6",
"clean-css": "^5.2.4", "clean-css": "^5.2.4",
"css-loader": "^6.7.1", "css-loader": "^6.7.1",
"esbuild": "^0.20.0", "esbuild": "^0.20.0",
"esbuild-plugin-alias": "^0.2.1", "esbuild-plugin-alias": "^0.2.1",
"file-loader": "^6.2.0", "file-loader": "^6.2.0",
"glob": "^7.2.0", "glob": "^7.2.0",
"http-server": "^14.1.1", "http-server": "^14.1.1",
"husky": "^7.0.4", "husky": "^7.0.4",
"jsdom": "^19.0.0", "jsdom": "^19.0.0",
"jsonc-parser": "^3.0.0", "jsonc-parser": "^3.0.0",
"mocha": "^9.2.0", "mocha": "^9.2.0",
"monaco-editor-core": "0.52.0-rc2", "monaco-editor-core": "0.52.0-rc2",
"parcel": "^2.7.0", "parcel": "^2.7.0",
"pin-github-action": "^1.8.0", "pin-github-action": "^1.8.0",
"playwright": "^1.32.2", "playwright": "^1.32.2",
"prettier": "^2.5.1", "prettier": "^2.5.1",
"pretty-quick": "^3.1.3", "pretty-quick": "^3.1.3",
"requirejs": "^2.3.6", "requirejs": "^2.3.6",
"shelljs": "^0.8.5", "shelljs": "^0.8.5",
"style-loader": "^3.3.1", "style-loader": "^3.3.1",
"terser": "^5.14.2", "terser": "^5.14.2",
"ts-node": "^10.6.0", "ts-node": "^10.6.0",
"typescript": "^5.4.5", "typescript": "^5.4.5",
"vite": "^3.2.8", "vite": "^3.2.8",
"vscode-css-languageservice": "6.2.14", "vscode-css-languageservice": "6.2.14",
"vscode-html-languageservice": "5.2.0", "vscode-html-languageservice": "5.2.0",
"vscode-json-languageservice": "5.3.11", "vscode-json-languageservice": "5.3.11",
"vscode-languageserver-textdocument": "^1.0.11", "vscode-languageserver-textdocument": "^1.0.11",
"vscode-languageserver-types": "3.17.5", "vscode-languageserver-types": "3.17.5",
"vscode-uri": "3.0.8", "vscode-uri": "3.0.8",
"webpack": "^5.76.0", "webpack": "^5.76.0",
"yaserver": "^0.4.0" "yaserver": "^0.4.0"
}, },
"alias": { "alias": {
"process": false, "process": false,
"buffer": false "buffer": false
} }
} }