Eli Perelman
8 years ago
3 changed files with 73 additions and 0 deletions
@ -0,0 +1,41 @@ |
|||
# Logs |
|||
logs |
|||
*.log |
|||
npm-debug.log* |
|||
|
|||
# Runtime data |
|||
pids |
|||
*.pid |
|||
*.seed |
|||
*.pid.lock |
|||
|
|||
# Directory for instrumented libs generated by jscoverage/JSCover |
|||
lib-cov |
|||
|
|||
# Coverage directory used by tools like istanbul |
|||
coverage |
|||
|
|||
# nyc test coverage |
|||
.nyc_output |
|||
|
|||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) |
|||
.grunt |
|||
|
|||
# node-waf configuration |
|||
.lock-wscript |
|||
|
|||
# Compiled binary addons (http://nodejs.org/api/addons.html) |
|||
build/Release |
|||
|
|||
# Dependency directories |
|||
node_modules |
|||
jspm_packages |
|||
|
|||
# Optional npm cache directory |
|||
.npm |
|||
|
|||
# Optional eslint cache |
|||
.eslintcache |
|||
|
|||
# Optional REPL history |
|||
.node_repl_history |
@ -0,0 +1,19 @@ |
|||
{ |
|||
"name": "neutrino-preset-node", |
|||
"version": "1.0.0", |
|||
"description": "", |
|||
"main": "src/index.js", |
|||
"scripts": { |
|||
"test": "echo \"Error: no test specified\" && exit 1" |
|||
}, |
|||
"keywords": [], |
|||
"author": "Eli Perelman <eli@eliperelman.com>", |
|||
"license": "MPL-2.0", |
|||
"dependencies": { |
|||
"neutrino-preset-base": "1.0.0", |
|||
"webpack-node-externals": "1.3.3" |
|||
}, |
|||
"peerDependencies": { |
|||
"neutrino": "^2.0.0" |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
'use strict'; |
|||
|
|||
const preset = require('neutrino-preset-base'); |
|||
const nodeExternals = require('webpack-node-externals'); |
|||
|
|||
if (!preset.externals) { |
|||
preset.externals = []; |
|||
} |
|||
|
|||
preset.target = 'node'; |
|||
preset.externals.push(nodeExternals({ modulesFromFile: true })); |
|||
|
|||
module.exports = preset; |
Loading…
Reference in new issue