Hi!
try passing the URL for this gist to npx
.
{ "comments": false, "minified": true, "plugins": [ "minify-mangle-names", "transform-merge-sibling-variables", "transform-minify-booleans", "transform-remove-console" ], "presets": [ [ "@babel/preset-env", { "targets": { "ie": "11" } } ] ] } |
#!/usr/bin/env node | |
// require('../lib/babel'); | |
// npm which babel | |
// babel --version | |
console.log('yay gist') |
{ | |
"name": "anrt_shell_module", | |
"version": "1.0.0", | |
"description": "Provides es6 transpilation to js file(s).", | |
"bin": "./node_modules/.bin/babel --version", | |
"scripts": { | |
"which-version": "babel --version", | |
"test-version": "./node_modules/.bin/babel --version" | |
}, | |
"author": "Mark Conroy", | |
"license": "GPL-2.0-or-later", | |
"devDependencies": { | |
"@babel/cli": "^7.10.5", | |
"@babel/core": "^7.11.4", | |
"@babel/generator": "^7.11.4", | |
"@babel/preset-env": "^7.11.0", | |
"babel-plugin-minify-mangle-names": "^0.5.0", | |
"babel-plugin-transform-merge-sibling-variables": "^6.9.4", | |
"babel-plugin-transform-minify-booleans": "^6.9.4", | |
"babel-plugin-transform-remove-console": "^6.9.4" | |
}, | |
"dependencies": {} | |
} |
{"name": "npx-is-cool", "version": "0.0.0", "bin": "./index.js", "scripts": { "test": "babel ./index.js --out-file ./index.min.js --verbose" }, "devDependencies": {"@babel/cli": "^7.10.5","@babel/core": "^7.11.4","@babel/generator": "^7.11.4","@babel/preset-env": "^7.11.0","babel-plugin-minify-mangle-names": "^0.5.0","babel-plugin-transform-merge-sibling-variables": "^6.9.4","babel-plugin-transform-minify-booleans": "^6.9.4","babel-plugin-transform-remove-console": "^6.9.4"}} |