This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 213
Baseline for Neutrino v5 #86
Merged
Merged
Changes from 21 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
96ce5bf
Baseline for Neutrino v5
eliperelman f202977
Refining middleware concept, splitting presets into middleware packages
eliperelman e1ee626
Switch packages licenses to MPL v2, add AVA to start test implementation
eliperelman 73ef503
Trying out use(loader, options)
eliperelman e3c7b60
Node.js HMR, source watching, named modules for Node and Web
eliperelman 47e9b52
Adding rudimentary testing
eliperelman 573c821
Travis changes
eliperelman 74f6f65
Fixing json extension
eliperelman 34d845a
Adding dynamic import syntax, babel-polyfill by default, devserver po…
eliperelman ac48dbf
Dynamic import() for Node
eliperelman 7b4b1b3
Allow linting overrides to airbnb preset
eliperelman 99db808
Simplify deep picking with pathOr
eliperelman 11cd3ba
Upgrade webpack-chain to v2, add --inspect
eliperelman d202d01
peerDeps and invalid deps
eliperelman a594ef9
Pointing package.json respository to tree location
eliperelman c35c84d
Cleaning up unused gitignores
eliperelman 49b9e29
Upgrading to webpack-chain v3, add more tests for full presets
eliperelman c33480f
Normalize API paths based on absolute or relative location
eliperelman 112f88d
Moving peerDeps of deps to devDeps
eliperelman aa16fa6
Attempting to cache packages' node_modules via wildcard
eliperelman 05e4b09
Manually caching monorepo package node_modules for travis
eliperelman eafadf2
Switching clean middleware to use options.root
eliperelman bd51085
Adding missing packages to travis cache, removing duplicate yarn inst…
eliperelman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
language: node_js | ||
node_js: | ||
- '6.9' | ||
- '7.7' | ||
cache: | ||
yarn: true | ||
directories: | ||
- node_modules | ||
- packages/neutrino-middleware-chunk/node_modules | ||
- packages/neutrino-middleware-clean/node_modules | ||
- packages/neutrino-middleware-compile-loader/node_modules | ||
- packages/neutrino-middleware-copy/node_modules | ||
- packages/neutrino-middleware-env/node_modules | ||
- packages/neutrino-middleware-eslint/node_modules | ||
- packages/neutrino-middleware-font-loader/node_modules | ||
- packages/neutrino-middleware-hot/node_modules | ||
- packages/neutrino-middleware-html-loader/node_modules | ||
- packages/neutrino-middleware-html-template/node_modules | ||
- packages/neutrino-middleware-image-loader/node_modules | ||
- packages/neutrino-middleware-loader-merge/node_modules | ||
- packages/neutrino-middleware-minify/node_modules | ||
- packages/neutrino-middleware-named-modules/node_modules | ||
- packages/neutrino-middleware-progress/node_modules | ||
- packages/neutrino-middleware-start-server/node_modules | ||
- packages/neutrino-middleware-style-loader/node_modules | ||
- packages/neutrino-preset-airbnb-base/node_modules | ||
- packages/neutrino-preset-jest/node_modules | ||
- packages/neutrino-preset-karma/node_modules | ||
- packages/neutrino-preset-mocha/node_modules | ||
- packages/neutrino-preset-node/node_modules | ||
- packages/neutrino-preset-react/node_modules | ||
- packages/neutrino-preset-web/node_modules | ||
before_script: | ||
- yarn | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Travis by default runs There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
- yarn bootstrap | ||
script: | ||
- yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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) | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"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": "https://github.com/mozilla-neutrino/neutrino-dev/tree/master/packages/neutrino-middleware-banner", | ||
"homepage": "https://neutrino.js.org", | ||
"bugs": "https://github.com/mozilla-neutrino/neutrino-dev/issues", | ||
"dependencies": { | ||
"deepmerge": "^1.3.2", | ||
"webpack": "^2.2.1" | ||
}, | ||
"peerDependencies": { | ||
"neutrino": "^5.0.0" | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this list also include these entries?
packages/neutrino-middleware-banner/node_modules
packages/neutrino/node_modules
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh, yes.