Skip to content

Commit 7b7a993

Browse files
authored
Merge pull request #42 from JIB3377/dist
Prepped the files to be ready for distribution
2 parents b3965ea + 8bb66f5 commit 7b7a993

File tree

13 files changed

+49
-89
lines changed

13 files changed

+49
-89
lines changed

README.md

Lines changed: 6 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4,61 +4,19 @@ Spearmint helps developers easily create functional React/Redux/Endpoint/Paint T
44

55
# How to use
66

7-
Download spearmint @ spearmintjs.com. Available for Mac OS and Windows.
7+
Download spearmint @ spearmintjs.com. Available for Mac OS, Windows and Linux.
88

9-
<br>
10-
11-
### React Testing
12-
<hr>
13-
To run React tests generated by spearmint, install the following in your dev dependencies.
14-
15-
npm i -D jest @testing-library/jest-dom @testing-library/react test-data-bot
16-
17-
To run Redux tests generated by spearmint, install the following in your dev dependencies, in addition to your React test installations above.
18-
19-
npm i -D redux-mock-store redux-thunk fetch-mock
20-
21-
To run Hooks / Context tests generated by spearmint, install the following in your dev dependencies, in addition to your React test installations above.
22-
23-
npm i -D @testing-library/react-hooks
249

10+
Mac users:
11+
### Pre-requisite
12+
* Download latest version of Xcode
13+
* run "npm install-once" to install dependencies and run electron rebuild sequentially
14+
2515
<br>
2616

27-
### Endpoint Testing
28-
<hr>
29-
To run Endpoint tests generated by spearmint, install the following in your dev dependencies.
30-
31-
npm i -D jest supertest
32-
33-
<br>
34-
35-
### Puppeteer Testing
36-
<hr>
37-
To run Puppeteer tests generated by spearmint, install the following in your dev dependencies.
3817

39-
npm i -D jest puppeteer
4018

4119

42-
<br>
43-
44-
### Accessiblity Testing
45-
<hr>
46-
47-
To run Accessibility tests generated by spearmint on HTML, install the following in your dev dependencies.
48-
49-
npm i -D axe-core regenerator-runtime jest
50-
51-
To run Accessibility tests generated by spearmint on React Components, install the following in your dev dependencies.
52-
53-
npm i -D axe-core regenerator-runtime jest enzyme enzyme-adapter-react-16
54-
55-
To run Accessibility tests generated by spearmint on URL's with Puppeteer, install the following in your dev dependencies.
56-
57-
npm i -D axe-core puppeteer
58-
59-
60-
<br>
61-
6220
# How it works
6321

6422
1. On the initial screen, enter the URL of your project and load your application to start creating tests.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"dotenv": "^8.2.0",
4141
"electron-is-dev": "^1.1.0",
4242
"fibers": "^5.0.0",
43+
"fix-path": "^3.0.0",
4344
"js-beautify": "^1.10.0",
4445
"monaco-editor": "^0.17.0",
4546
"node-pty": "^0.10.0",
@@ -113,4 +114,4 @@
113114
"spectron": "^5.0.0",
114115
"test-data-bot": "^0.8.0"
115116
}
116-
}
117+
}

public/AccLens_Demo.gif

404 KB
Loading

public/appDemo - Copy.gif

-2 MB
Binary file not shown.

public/electron.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@ const isDev = require('electron-is-dev');
66
const fs = require('fs');
77
const os = require('os');
88
const pty = require('node-pty');
9+
const fixPath = require('fix-path');
910

1011
//Dynamic variable to change terminal type based on os
1112
const shell = os.platform() === 'win32' ? 'powershell.exe' : 'bash';
13+
console.log("process.env.Path1: ", process.env.PATH);
14+
//=> '/usr/bin'
1215

16+
fixPath();
17+
18+
console.log("process.env.Path2: ", process.env.PATH);
19+
//=> '/usr/local/bin:/usr/bin'
1320
let mainWindow;
1421

1522
if (isDev) console.log('electron version', process.versions.electron);
@@ -53,6 +60,7 @@ function createWindow() {
5360
cwd: process.env.HOME,
5461
env: process.env,
5562
};
63+
console.log("process.env.HOME: ", process.env.HOME);
5664

5765
const ptyProcess = pty.spawn(shell, [], ptyArgs);
5866
// with ptyProcess, we want to send incoming data to the channel terminal.incData
@@ -125,7 +133,7 @@ ipcMain.on('OpenFolderButton.dialog', (e) => {
125133
UNIVERSAL IPC CALLS
126134
(The following IPC calls are made from various components in the codebase)
127135
*/
128-
ipcMain.on('Universal.stat' , (e, filePath) => {
136+
ipcMain.on('Universal.stat', (e, filePath) => {
129137
e.returnValue = fs.statSync(filePath).isDirectory();
130138
});
131139

public/generateTest.png

207 KB
Loading
395 KB
Loading

public/mainPage.png

44.7 KB
Loading

public/newReact.png

-146 KB
Binary file not shown.

public/runTest.png

600 KB
Loading

0 commit comments

Comments
 (0)