diff options
author | Alan Pearce | 2021-03-19 21:47:49 +0100 |
---|---|---|
committer | Alan Pearce | 2021-03-19 21:47:49 +0100 |
commit | 1370e8edf2f5da612c0a5e57b15d57b88f21d41d (patch) | |
tree | d103f296bec466be32e02ad622728390bebee52f /user/settings/javascript.nix | |
parent | c733f3ba61cac64e0110747c569b46f8a0c30027 (diff) | |
download | nixfiles-1370e8edf2f5da612c0a5e57b15d57b88f21d41d.tar.lz nixfiles-1370e8edf2f5da612c0a5e57b15d57b88f21d41d.tar.zst nixfiles-1370e8edf2f5da612c0a5e57b15d57b88f21d41d.zip |
Move and split javascript module to dev/javascript,web
Diffstat (limited to 'user/settings/javascript.nix')
-rw-r--r-- | user/settings/javascript.nix | 124 |
1 files changed, 0 insertions, 124 deletions
diff --git a/user/settings/javascript.nix b/user/settings/javascript.nix deleted file mode 100644 index 1ca1a1ba..00000000 --- a/user/settings/javascript.nix +++ /dev/null @@ -1,124 +0,0 @@ -{ config, pkgs, ... }: - -let - nodejs = pkgs.nodejs-14_x; -in -{ - nixpkgs.overlays = [ - (self: super: { - node2nixPackages = super.callPackage ../packages/node2nix { - inherit nodejs; - }; - }) - ]; - home.packages = (with pkgs; [ - nodejs - ] ++ ( - if stdenv.isDarwin - then - [ - ] - else - [ - # npm install may use any of these - binutils - gcc - python2 - ] - )) ++ (with pkgs.nodePackages; [ - node2nix - nodemon - javascript-typescript-langserver - typescript-language-server - vscode-css-languageserver-bin - vscode-html-languageserver-bin - csslint - eslint_d - typescript - - node-gyp - node-gyp-build - node-pre-gyp - ]) ++ (with pkgs.node2nixPackages; [ - pkgs.node2nixPackages."pnpm-5.17.3" - - stylelint - - pino-pretty - ]); - - home.sessionVariables = { - NO_UPDATE_NOTIFIER = "1"; # stop npm update-notifier - }; - - programs.zsh.shellAliases = { - ava = "pnpx ava"; - avt = "pnpx ava --tap"; - avat = "pnpx ava --tap"; - avaw = "pnpx ava --watch"; - avaf = "pnpx ava --fail-fast"; - avafw = "pnpx ava --fail-fast --watch"; - avawf = "pnpx ava --fail-fast --watch"; - pino = "pino-pretty"; - mocha = "pnpx mocha"; - standard = "pnpx standard"; - tsc = "pnpx tsc"; - tslint = "pnpx tslint"; - tsnode = "pnpx ts-node"; - - p = "pnpm"; - pi = "pnpm install --filter=."; - pit = "pnpm install-test --filter=."; - pl = "pnpm ls"; - pr = "pnpm run"; - pb = "pnpm run build"; - prb = "pnpm run build"; - pbd = "pnpm multi run build --filter={.}..."; - pmi = "pnpm multi install"; - pmx = "pnpm multi exec "; # expand command aliases - pmr = "pnpm multi run"; - pa = "pnpm add"; - pad = "pnpm add --save-dev"; - pd = "pnpm uninstall"; - pou = "pnpm outdated"; - pt = "pnpm test"; - pmt = "pnpm multi test"; - pmd = "pnpm multi uninstall"; - pmit = "pnpm multi install-test"; - pup = "pnpm update"; - pupl = "pnpm update --latest"; - ppr = "pnpm prune"; - pprp = "pnpm prune --production"; - pli = "pnpm link"; - pdi = "pnpm dislink"; - pul = "pnpm unlink"; - - np = "npm"; - npi = "npm install"; - npl = "npm ls"; - npr = "npm run"; - npb = "npm run build"; - nprb = "npm run build"; - npa = "npm install --save"; - npad = "npm install --save-dev"; - npd = "npm uninstall"; - npt = "npm test"; - npup = "npm update"; - nppr = "npm prune"; - npprp = "npm prune --production"; - npli = "npm link"; - npul = "npm unlink"; - }; - - home.file.".npmrc".text = '' - prefix=''${HOME}/.local - cache=${config.xdg.cacheHome}/npm/ - store-dir=${config.xdg.cacheHome}/pnpm/ - script-shell=${pkgs.zsh}/bin/zsh - always-auth=true - sign-git-tag=true - rebuild-bundle=false - update-notifier=false - registry=https://registry.npmjs.org/ - ''; -} |