@mongodb-js/compass-shell 3.4.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -43
- package/dist/281.index.js +1919 -0
- package/dist/281.index.js.LICENSE.txt +12 -0
- package/dist/766.browser.js +1919 -0
- package/dist/766.browser.js.LICENSE.txt +12 -0
- package/dist/945.browser.js +12 -0
- package/dist/996.index.js +12 -0
- package/dist/browser.js +2 -0
- package/dist/browser.js.LICENSE.txt +71 -0
- package/dist/index.html +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +71 -0
- package/package.json +74 -106
- package/.babelrc.js +0 -24
- package/.browserslistrc +0 -1
- package/.depcheckrc +0 -25
- package/AUTHORS +0 -9
- package/lib/1.js +0 -55967
- package/lib/2.js +0 -512
- package/lib/index.html +0 -9
- package/lib/index.js +0 -66070
package/README.md
CHANGED
|
@@ -2,34 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> Compass Shell Plugin
|
|
4
4
|
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
### Scripts
|
|
8
|
-
|
|
9
|
-
`link-plugin`: Links the Compass plugin and Compass for development along with React to ensure the
|
|
10
|
-
plugin and Compass are using the same React instance.
|
|
11
|
-
|
|
12
|
-
```shell
|
|
13
|
-
COMPASS_HOME=/path/to/my/compass npm run link-plugin
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
`unlink-plugin`: Restores Compass and the plugin to their original unlinked state.
|
|
17
|
-
|
|
18
|
-
```shell
|
|
19
|
-
COMPASS_HOME=/path/to/my/compass npm run unlink-plugin
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
`start-compass`: Runs the plugin in compass master.
|
|
23
|
-
|
|
24
5
|
## Features
|
|
25
6
|
|
|
26
|
-
#### Electron
|
|
27
|
-
|
|
28
|
-
Validate and test your component in an Electron window, styles included. The source automatically
|
|
29
|
-
compiles and the window content reloads when any file under `./src` changes.
|
|
30
|
-
|
|
31
|
-
To start Electron and render your component, type `npm start`.
|
|
32
|
-
|
|
33
7
|
#### Enzyme
|
|
34
8
|
|
|
35
9
|
The test environment is configured to test components with [Enzyme][enzyme]
|
|
@@ -42,31 +16,16 @@ Almost all of your development will happen in the `./src` directory. Add new com
|
|
|
42
16
|
to `./src/components`, actions to `./src/actions/index.js` and if you need additional
|
|
43
17
|
stores, add them to `./src/stores`.
|
|
44
18
|
|
|
45
|
-
To be able to debug the plugin inside `compass` make sure [webpack prod
|
|
46
|
-
config](./config/webpack.prod.config.js) has `devtool` is set to `source-map`.
|
|
47
|
-
If you want faster compiler time when you commit/push, switch it to `false.`
|
|
48
|
-
|
|
49
|
-
```js
|
|
50
|
-
const config = {
|
|
51
|
-
target: 'electron-renderer',
|
|
52
|
-
devtool: 'source-map'
|
|
53
|
-
}
|
|
54
|
-
```
|
|
55
|
-
|
|
56
19
|
#### Directory Structure
|
|
57
20
|
|
|
58
21
|
For completeness, below is a list of directories present in this module:
|
|
59
22
|
|
|
60
|
-
- `
|
|
61
|
-
You don't usually need to touch this, unless you want to render something other
|
|
62
|
-
than the main component in Electron.
|
|
63
|
-
- `lib` compiled version of your components (plain javascript instead of `jsx`) and
|
|
23
|
+
- `dist` compiled version of your components (plain javascript instead of `jsx`) and
|
|
64
24
|
styles (`css` instead of `less`). Never change anything here as this entire folder
|
|
65
25
|
gets automatically created and overwritten.
|
|
66
26
|
- `src` components, actions and stores source code, as well as style files. This is the
|
|
67
27
|
place to implement your own components. `npm run compile` will use `./src` as input
|
|
68
|
-
and create `./
|
|
69
|
-
- `test` implement your tests here, and name the files `*.test.js`.
|
|
28
|
+
and create `./dist`.
|
|
70
29
|
|
|
71
30
|
[enzyme]: http://airbnb.io/enzyme/
|
|
72
31
|
[enzyme-chai]: https://github.com/producthunt/chai-enzyme
|