This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const next = require('next') | |
//on windows | |
const dns = require('dns') | |
dns.setDefaultResultOrder('ipv4first') | |
const port = parseInt(process.env.PORT, 8888) || 3000 | |
const dev = process.env.NODE_ENV !== 'production' | |
const app = next({ dev }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS ~\AppData\Local\nvim-data\lazy\mason.nvim> git diff | |
diff --git a/lua/mason-core/fetch.lua b/lua/mason-core/fetch.lua | |
index c8a8591..c9eb559 100644 | |
--- a/lua/mason-core/fetch.lua | |
+++ b/lua/mason-core/fetch.lua | |
@@ -49,7 +49,7 @@ local function fetch(url, opts) | |
if opts.out_file then | |
platform_specific = function() | |
return powershell.command( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// babel's cli option --copy-files will override the --ignore setting | |
// so copy resources like this | |
require('fs-extra').copy( | |
process.argv.slice(-2).shift(), | |
process.argv.slice(-2).pop(), | |
{ filter: (src,dist)=>{ return (src.match(/\.js|\.jsx|stories|test/)===null)} }, | |
err => { if (err) return console.error (err); console.log ('Copy success!'); |