-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce nested dependency installation through a multi-fronted strategy.
- t2 run/push checks for .npmrc and isntructs to the author to run to t2 init to prepare the directory for deployment. - t2 init now produces an .npmrc file which sets global-style=true - t2 init will reinstall everything with newly created npmrc config in place Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
- Loading branch information
Showing
11 changed files
with
305 additions
and
62 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'use strict'; | ||
|
||
// System Objects | ||
var path = require('path'); | ||
|
||
|
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
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,25 @@ | ||
# This file is a special npm configuration file. | ||
# | ||
# From npm docs: | ||
# | ||
# The --global-style argument will cause | ||
# npm to install the package into your | ||
# local node_modules folder with the same | ||
# layout it uses with the global node_modules | ||
# folder. Only your direct dependencies | ||
# will show in node_modules and everything | ||
# they depend on will be flattened in their | ||
# node_modules folders. This obviously will | ||
# eliminate some deduping. | ||
# | ||
# t2-cli gives third party modules control over what | ||
# files and dependencies get deployed to a Tessel 2 | ||
# by supporting .tesselignore and .tesselinclude files. | ||
# Ever since npm 3, dependency flattening has taken that | ||
# control away, since the rules in those files are | ||
# resolved relative to the third party module itself. | ||
# Forcing Tessel 2 project dependencies to install as | ||
# described above restores that control, ideally | ||
# producing smaller project bundles. | ||
|
||
global-style = true |
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
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
5 changes: 4 additions & 1 deletion
5
test/unit/fixtures/project-binary-modules/node_modules/release/package.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.