Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b00e4ef
BREAKING CHANGE(appcd-default-plugins): Switched to installing defaul…
cb1kenobi Jun 27, 2019
8e6dc98
fix(appcd-default-plugins): Fixed spawning lerna on Windows.
cb1kenobi Jun 27, 2019
f72734b
fix(appcd-default-plugins): Fixed spawning lerna on Windows again.
cb1kenobi Jun 27, 2019
f9c2edb
feat: Attempt to install plugins postinstall and optionally at runtime.
cb1kenobi Jul 2, 2019
f7b0363
chore: Async cleanup.
cb1kenobi Jul 2, 2019
bd4228a
fix: Switched from appcd-logger to snooplogg to fix chicken and egg p…
cb1kenobi Jul 2, 2019
7e377ce
fix: Wrapped the entire postinstall script in a try/catch since it co…
cb1kenobi Jul 2, 2019
777069c
fix(appcd-default-plugins): Fixed yarn link dir for Windows.
cb1kenobi Jul 2, 2019
b4de7df
feat(appcd-default-plugins): Only install plugins compatible with cur…
cb1kenobi Jul 4, 2019
991e204
Merge branch 'DAEMON-280' of github.com:cb1kenobi/appc-daemon into DA…
cb1kenobi Jul 4, 2019
f9eae95
fix(appcd-default-plugins): Fixed plugin platform check.
cb1kenobi Jul 4, 2019
59306b0
chore: Updated npm deps.
cb1kenobi Jul 10, 2019
acea60a
feat: Added initial work of the registry watcher.
cb1kenobi Jul 11, 2019
0fbe06c
More work on the RegistryWatcher.
cb1kenobi Jul 11, 2019
f9103ca
feat(appcd-detect): Added ability to recursively watch registry keys …
cb1kenobi Aug 6, 2019
695d24e
chore: Updated deps.
cb1kenobi Aug 6, 2019
6c00a5e
Merge branch 'master' into DAEMON-280
cb1kenobi Aug 7, 2019
6abf3b1
chore(core): Updated changelog.
cb1kenobi Aug 7, 2019
7822b08
BREAKING CHANGE(util): Bumped minimum supported Node.js version from …
cb1kenobi Aug 7, 2019
64bc8ca
fix(telemetry): Fixed shutdown bug and failed send handling.
cb1kenobi Aug 7, 2019
61fa709
chore: chore: Bumped Node.js version from 10.15.3 to 10.16.2.
cb1kenobi Aug 7, 2019
501bf1c
docs: Updated config related docs.
cb1kenobi Aug 7, 2019
5e65c93
fix(detect): Fixed bug referencing subkeys state if not initialized.
cb1kenobi Aug 7, 2019
436637b
chore(docs): Updated config docs and added config settings doc.
cb1kenobi Aug 8, 2019
b0e16d3
chore(docs): Fixed type.
cb1kenobi Aug 9, 2019
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
3 changes: 2 additions & 1 deletion packages/appcd-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# v2.8.1
# v2.9.0

* chore: Updated to `[email protected]`,
* chore: Updated dependencies

# v2.8.0 (Jun 25, 2019)
Expand Down
2 changes: 1 addition & 1 deletion packages/appcd-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"appcd-agent": "^1.1.6",
"appcd-config": "^1.3.0",
"appcd-config-service": "^2.0.0",
"appcd-default-plugins": "^3.0.0",
"appcd-default-plugins": "^4.0.0",
"appcd-dispatcher": "^2.0.0",
"appcd-fs": "^1.1.7",
"appcd-fswatch-manager": "^2.0.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/appcd-core/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import fs from 'fs-extra';
import FSWatcher from 'appcd-fswatcher';
import FSWatchManager from 'appcd-fswatch-manager';
import globalModules from 'global-modules';
import installDefaultPlugins from 'appcd-default-plugins';
import os from 'os';
import path from 'path';
import PluginManager from 'appcd-plugin';
Expand Down Expand Up @@ -188,6 +189,9 @@ export default class Server {
this.systems.subprocessManager = new SubprocessManager();
Dispatcher.register('/appcd/subprocess', this.systems.subprocessManager);

// install default plugins
await installDefaultPlugins(path.join(homeDir, 'plugins'));

// init the plugin manager
this.systems.pluginManager = new PluginManager({
paths: [
Expand Down
1 change: 0 additions & 1 deletion packages/appcd-default-plugins/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ gulpfile.js
junit.xml
node_modules
npm-debug.log
/plugins
retire_output.json
yarn-error.log
/src
Expand Down
6 changes: 5 additions & 1 deletion packages/appcd-default-plugins/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# v3.0.1
# v4.0.0

* BREAKING CHANGE: Default plugins are now installed at runtime instead of postinstall.
* chore: Updated dependencies

# v3.0.0 (Jun 25, 2019)
Expand All @@ -9,6 +10,9 @@
* BREAKING CHANGE: Plugins are installed into `"~/.appcelerator/appcd/plugins"` instead of the
`"appcd-default-plugins/plugins"` directory to avoid permission issues when npm installing
`appcd` globally using `sudo` due to npm dropping root before running the post install script.
UPDATE: Turns out that this won't work because unless there's an explicit `user` set in the
npm config, it defaults to the user `nobody` which does not have write permissions to the
user's home directory.

# v2.0.0 (Jun 6, 2019)

Expand Down
23 changes: 11 additions & 12 deletions packages/appcd-default-plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@ user's appcd home directrory (e.g. `"~/.appcelerator/appcd/plugins"`).

Visit https://github.com/appcelerator/appc-daemon for more information.

## Overview
## Usage

After installing `appcd-default-plugins`, a post-install script will run and download every major
plugin release and puts it in the `"~/.appcelerator/appcd/plugins"` directory.
```js
import installDefaultPlugins from 'appcd-default-plugins';

If any of the plugins match locally linked packages using _yarn_, then it will use those instead of
installing from _npm_.
await installDefaultPlugins('/path/to/plugins/dir');
```

A list of packages to be installed is used to create a monorepo in the `plugins` directory, then
it runs `lerna` to initialize it.
`installDefaultPlugins()` will download all default plugins if not already installed. If any of the
plugins match locally linked packages using _yarn_, then it will use those instead of installing
from _npm_.

The post-install script will detect if _yarn_ is installed. If found, it will initialize the
monorepo using _yarn_'s workspaces, otherwise it fallsback to _npm_ with hoisting.

If at all possible, you should install _yarn_ before installing `appcd-default-plugins`. yarn is
about 3 times faster and uses about 75% less disk space.
The default plugins are installed into a `packages` directory inside the specified plugins
directory, then it initializes the plugins directory as a monorepo and runs `lerna bootstrap` using
`yarn`.

## Legal

Expand Down
8 changes: 8 additions & 0 deletions packages/appcd-default-plugins/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

require('appcd-gulp')({
exports,
pkgJson: require('./package.json'),
template: 'standard',
babel: 'node8'
});
21 changes: 16 additions & 5 deletions packages/appcd-default-plugins/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
{
"name": "appcd-default-plugins",
"version": "3.0.0",
"version": "4.0.0",
"description": "A psuedo package that bundles all default appcd plugins.",
"main": "./dist/index",
"author": "Axway, Inc. <[email protected]>",
"maintainers": [
"Chris Barber <[email protected]>"
],
"license": "Apache-2.0",
"scripts": {
"build": "gulp build",
"coverage": "gulp coverage",
"docs": "gulp docs",
"prepare": "gulp build",
"test": "gulp test"
},
"dependencies": {
"appcd-logger": "^2.0.2",
"fs-extra": "^8.0.1",
"globule": "^1.2.1",
"lerna": "^3.15.0",
"pacote": "^9.5.1",
"semver": "^6.1.2",
"which": "^1.3.1"
"yarn": "^1.16.0"
},
"devDependencies": {
"appcd-gulp": "^2.1.1",
"tmp": "^0.1.0"
},
"plugins": {
"@appcd/plugin-android": [
Expand All @@ -37,9 +51,6 @@
"^1.4.0"
]
},
"scripts": {
"postinstall": "node postinstall.js"
},
"homepage": "https://github.com/appcelerator/appc-daemon/tree/master/packages/appcd-default-plugins",
"bugs": "https://github.com/appcelerator/appc-daemon/issues",
"repository": "https://github.com/appcelerator/appc-daemon"
Expand Down
122 changes: 0 additions & 122 deletions packages/appcd-default-plugins/postinstall.js

This file was deleted.

Loading