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

Baseline for Neutrino v5 #86

Merged
merged 23 commits into from
Mar 8, 2017
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
96ce5bf
Baseline for Neutrino v5
eliperelman Mar 1, 2017
f202977
Refining middleware concept, splitting presets into middleware packages
eliperelman Mar 2, 2017
e1ee626
Switch packages licenses to MPL v2, add AVA to start test implementation
eliperelman Mar 2, 2017
73ef503
Trying out use(loader, options)
eliperelman Mar 2, 2017
e3c7b60
Node.js HMR, source watching, named modules for Node and Web
eliperelman Mar 3, 2017
47e9b52
Adding rudimentary testing
eliperelman Mar 3, 2017
573c821
Travis changes
eliperelman Mar 3, 2017
74f6f65
Fixing json extension
eliperelman Mar 3, 2017
34d845a
Adding dynamic import syntax, babel-polyfill by default, devserver po…
eliperelman Mar 3, 2017
ac48dbf
Dynamic import() for Node
eliperelman Mar 3, 2017
7b4b1b3
Allow linting overrides to airbnb preset
eliperelman Mar 4, 2017
99db808
Simplify deep picking with pathOr
eliperelman Mar 4, 2017
11cd3ba
Upgrade webpack-chain to v2, add --inspect
eliperelman Mar 6, 2017
d202d01
peerDeps and invalid deps
eliperelman Mar 6, 2017
a594ef9
Pointing package.json respository to tree location
eliperelman Mar 7, 2017
c35c84d
Cleaning up unused gitignores
eliperelman Mar 7, 2017
49b9e29
Upgrading to webpack-chain v3, add more tests for full presets
eliperelman Mar 8, 2017
c33480f
Normalize API paths based on absolute or relative location
eliperelman Mar 8, 2017
112f88d
Moving peerDeps of deps to devDeps
eliperelman Mar 8, 2017
aa16fa6
Attempting to cache packages' node_modules via wildcard
eliperelman Mar 8, 2017
05e4b09
Manually caching monorepo package node_modules for travis
eliperelman Mar 8, 2017
eafadf2
Switching clean middleware to use options.root
eliperelman Mar 8, 2017
bd51085
Adding missing packages to travis cache, removing duplicate yarn inst…
eliperelman Mar 8, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: node_js
node_js:
- '6.9'
- '7.7'
cache:
yarn: true
directories:
- node_modules
before_script:
- yarn
Copy link
Member

@edmorley edmorley Mar 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Travis by default runs yarn install as part of the install step (if not overridden), so this additional yarn invocation is a duplicate, eg:
https://travis-ci.org/mozilla-neutrino/neutrino-dev/jobs/209062877#L274

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! This is an artifact left over from when I switched from install to before_script in 573c821. I'll update. 👍

- yarn bootstrap
script:
- yarn test
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "neutrino-dev",
"version": "4.2.0",
"version": "5.0.0",
"private": true,
"author": "Eli Perelman <eli@eliperelman.com>",
"license": "MPL-2.0",
Expand All @@ -18,9 +18,11 @@
"docs:deploy": "yarn docs:build && gh-pages --dist _book --remote upstream",
"docs:serve": "gitbook serve",
"release": "yarn release:pre && oao publish",
"release:pre": "oao prepublish"
"release:pre": "oao prepublish",
"test": "ava packages/*/test"
},
"devDependencies": {
"ava": "^0.18.2",
"changelog": "^1.0.7",
"gh-pages": "^0.12.0",
"gitbook-cli": "^2.3.0",
Expand All @@ -29,6 +31,6 @@
"gitbook-plugin-github": "^2.0.0",
"gitbook-plugin-npmsearchlist": "^1.0.0",
"gitbook-plugin-prism": "^2.1.0",
"oao": "^0.5.7"
"oao": "^0.7.2"
}
}
17 changes: 0 additions & 17 deletions packages/neutrino-lint-base/README.md

This file was deleted.

55 changes: 0 additions & 55 deletions packages/neutrino-lint-base/src/index.js

This file was deleted.

10 changes: 10 additions & 0 deletions packages/neutrino-middleware-banner/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const { BannerPlugin } = require('webpack');
const merge = require('deepmerge');

module.exports = ({ config }, options) => config
.plugin('banner')
.use(BannerPlugin, merge({
banner: `require('source-map-support').install();`,
raw: true,
entryOnly: true
}, options));
20 changes: 20 additions & 0 deletions packages/neutrino-middleware-banner/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "neutrino-middleware-banner",
"version": "5.0.0",
"description": "Neutrino middleware for injecting a banner into bundled files",
"main": "index.js",
"keywords": [
"neutrino",
"neutrino-middleware",
"banner"
],
"author": "Eli Perelman <eli@eliperelman.com>",
"license": "MPL-2.0",
"repository": "mozilla-neutrino/neutrino-dev",
"homepage": "https://neutrino.js.org",
"bugs": "https://github.com/mozilla-neutrino/neutrino-dev/issues",
"dependencies": {
"deepmerge": "^1.3.2",
"webpack": "^2.2.1"
}
}
Loading