File tree Expand file tree Collapse file tree 3 files changed +61
-1
lines changed Expand file tree Collapse file tree 3 files changed +61
-1
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "secrets_manager" : {}
3
+ }
Original file line number Diff line number Diff line change 11
11
"prune" : " ./prune-gh-pages.sh" ,
12
12
"i18n:push" : " tx-push-src scratch-editor interface translations/en.json" ,
13
13
"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" ,
15
15
"test" : " npm run test:lint && npm run test:unit && npm run build && npm run test:integration" ,
16
16
"test:integration" : " jest --maxWorkers=4 test[\\\\ /]integration" ,
17
17
"test:lint" : " eslint . --ext .js,.jsx" ,
You can’t perform that action at this time.
0 commit comments