Skip to content

Commit 7068d72

Browse files
committed
get my development environment stuff setup
1 parent c019ab6 commit 7068d72

File tree

3 files changed

+61
-1
lines changed

3 files changed

+61
-1
lines changed

.idx/dev.nix

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# To learn more about how to use Nix to configure your environment
2+
# see: https://firebase.google.com/docs/studio/customize-workspace
3+
{ pkgs, ... }: {
4+
# Which nixpkgs channel to use.
5+
channel = "stable-24.05"; # or "unstable"
6+
7+
# Use https://search.nixos.org/packages to find packages
8+
packages = [
9+
# pkgs.go
10+
# pkgs.python311
11+
# pkgs.python311Packages.pip
12+
pkgs.nodejs_20
13+
# pkgs.nodePackages.nodemon
14+
];
15+
16+
# Sets environment variables in the workspace
17+
env = {
18+
NODE_OPTIONS = "--openssl-legacy-provider";
19+
};
20+
idx = {
21+
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
22+
extensions = [
23+
# "vscodevim.vim"
24+
];
25+
26+
# Enable previews
27+
previews = {
28+
enable = true;
29+
previews = {
30+
web = {
31+
# Example: run "npm run dev" with PORT set to IDX's defined port for previews,
32+
# and show it in IDX's web preview panel
33+
command = ["npm" "start" "--" "--port" "$PORT"];
34+
manager = "web";
35+
env = {
36+
# Environment variables to set for your server
37+
PORT = "$PORT";
38+
};
39+
};
40+
};
41+
};
42+
43+
# Workspace lifecycle hooks
44+
workspace = {
45+
# Runs when a workspace is first created
46+
onCreate = {
47+
# Example: install JS dependencies from NPM
48+
npm-install = "npm install";
49+
};
50+
# Runs when the workspace is (re)started
51+
onStart = {
52+
# Example: start a background task to watch and re-build backend code
53+
watch = "npm run watch";
54+
};
55+
};
56+
};
57+
}

.idx/integrations.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"secrets_manager": {}
3+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"prune": "./prune-gh-pages.sh",
1212
"i18n:push": "tx-push-src scratch-editor interface translations/en.json",
1313
"i18n:src": "rimraf ./translations/messages/src && babel src > tmp.js && rimraf tmp.js && build-i18n-src ./translations/messages/src ./translations/ && npm run i18n:push",
14-
"start": "webpack-dev-server --host 0.0.0.0 --port 3000 --disable-host-check",
14+
"start": "webpack-dev-server --host 0.0.0.0 --disable-host-check",
1515
"test": "npm run test:lint && npm run test:unit && npm run build && npm run test:integration",
1616
"test:integration": "jest --maxWorkers=4 test[\\\\/]integration",
1717
"test:lint": "eslint . --ext .js,.jsx",

0 commit comments

Comments
 (0)