Browse Source

Upgrading dependencies, adding yarn instructions

plugin-mode
Eli Perelman 8 years ago
parent
commit
8b9f87b12a
  1. 6
      packages/neutrino-preset-node/README.md
  2. 10
      packages/neutrino-preset-node/package.json
  3. 5
      packages/neutrino-preset-node/src/eslint.js
  4. 3011
      packages/neutrino-preset-node/yarn.lock

6
packages/neutrino-preset-node/README.md

@ -10,7 +10,11 @@ projects with a common configuration for Webpack, ESLint, Babel, and Mocha.
Install neutrino and neutrino-preset-node as development dependencies in your project:
```sh
# npm
npm install --save-dev neutrino neutrino-preset-node
# yarn
yarn add neutrino neutrino-preset-node --dev
```
Modify your package.json scripts to use the Node.js preset to build your project. Remember to also
@ -36,7 +40,7 @@ Add your source code to `src/`, which is compiled using Babel's es2015 preset.
If you would like to use testing in your project, create a `test/` directory, and write tests in
JS files with file names ending in `_test.js`, e.g. `test/homepage_test.js` or
`test/users/admin_test.js`. Run tests with `npm test`, which will output results to the console, and
`test/users/admin_test.js`. Run tests with `npm test` or `yarn test`, which will output results to the console, and
also creates test coverage to a `.coverage/` directory.
# Overriding the preset

10
packages/neutrino-preset-node/package.json

@ -1,6 +1,6 @@
{
"name": "neutrino-preset-node",
"version": "1.3.0",
"version": "2.0.0",
"description": "Neutrino preset for building Node.js projects",
"main": "src/index.js",
"keywords": [
@ -12,11 +12,11 @@
"dependencies": {
"babel-plugin-transform-runtime": "6.15.0",
"babel-runtime": "6.11.6",
"neutrino-preset-base": "1.3.0",
"webpack-merge": "0.14.1",
"webpack-node-externals": "1.3.3"
"neutrino-preset-base": "2.0.0",
"webpack-merge": "0.15.0",
"webpack-node-externals": "1.5.4"
},
"peerDependencies": {
"neutrino": "^2.0.0"
"neutrino": "^3.0.0"
}
}

5
packages/neutrino-preset-node/src/eslint.js

@ -16,6 +16,9 @@ module.exports = {
// enforces error handling in callbacks (node environment)
'handle-callback-err': 'off',
// Allow console in Node.js
'no-console': 'off',
// disallow mixing regular variable and require declarations
'no-mixed-requires': ['off', false],
@ -36,6 +39,6 @@ module.exports = {
'no-restricted-modules': 'off',
// disallow use of synchronous methods (off by default)
'no-sync': 'off',
'no-sync': 'off'
}
};

3011
packages/neutrino-preset-node/yarn.lock

File diff suppressed because it is too large
Loading…
Cancel
Save