cd ~/Workspace/package-to-release
release-package.sh
cd ~/Workspace/compass
bump-package-branch.sh package-to-release COMPASS-123
This file contains 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
nodemon -e js,jsx,css,less,scss,sass --watch ./src --delay 2 --exec npm run compile & | |
sync-module-dir ../compass --watch | |
wait |
This file contains 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 {MongoClient} = require('mongodb'); | |
const rewriteWithAwait = require('./rewrite-with-await.js'); | |
const startShell = require('./start-shell.js'); | |
function makeCollectionObject(nativeCollection) { | |
return { | |
insertOne: (...args) => { | |
return nativeCollection.insertOne(...args); | |
}, | |
findOne: (...args) => { |
This file contains 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 traverse = require('traverse'); | |
const getUniversalModuleTree = require('universal-module-tree'); | |
const { DepGraph } = require('dependency-graph'); | |
const path = require('path'); | |
const matcher = (name) => name.startsWith('@mongo') || | |
name.startsWith('mongo') || | |
name.startsWith('hadron'); | |
(async function main() { |
This file contains 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 bash | |
cat package.json | jq -r '.peerDependencies | keys[] as $k | "\($k)@\(.[$k])"' | xargs npm install --no-save |
This file contains 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
# Created by https://www.gitignore.io/api/osx,java,linux,kotlin,windows,eclipse,java-web,intellij+all,visualstudiocode,gradle,maven | |
# Edit at https://www.gitignore.io/?templates=osx,java,linux,kotlin,windows,eclipse,java-web,intellij+all,visualstudiocode,gradle,maven | |
### Eclipse ### | |
.metadata | |
bin/ | |
tmp/ | |
*.tmp | |
*.bak |
This file contains 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
var os = require("os"); | |
var ifaces = os.networkInterfaces(); | |
var myIfaces = {}; | |
Object.keys(ifaces).forEach(function (ifname) { | |
var alias = 0; | |
ifaces[ifname].forEach(function (iface) { | |
if ('IPv4' !== iface.family || iface.internal !== false) { | |
// skip over internal (i.e. 127.0.0.1) and non-ipv4 addresses |
This file contains 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
'use strict'; | |
let winston = require('winston'); | |
// | |
// Test with json format | |
// | |
let logger = new winston.Logger({ | |
transports: [ |
This file contains 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
Show hidden characters
{ | |
"preset": "google", | |
"esnext": true, | |
"maximumLineLength": { | |
"value": 160, | |
"allExcept": ["comments", "regex"] | |
}, | |
"excludeFiles": [ | |
"node_modules/**", | |
"bower_components/**", |
This file contains 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
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines | |
[*] | |
end_of_line = lf | |
charset = utf-8 | |
indent_style = space | |
indent_size = 2 |