Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Initial commit, creating neutrino Node.js preset
Browse files Browse the repository at this point in the history
  • Loading branch information
eliperelman committed Feb 3, 2017
1 parent d97ac6e commit ff893f2
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
41 changes: 41 additions & 0 deletions packages/neutrino-preset-node/.gitignore
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions packages/neutrino-preset-node/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
13 changes: 13 additions & 0 deletions packages/neutrino-preset-node/src/index.js
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit ff893f2

Please sign in to comment.