Skip to content

Commit 2c179e5

Browse files
development notes enhance, version bump, missed dependency fix
1 parent b443cd0 commit 2c179e5

File tree

3 files changed

+30
-15
lines changed

3 files changed

+30
-15
lines changed

DEVELOPMENT.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,20 @@ Contributing
33

44
## Any fixes or propositions are welcome, just a couple of guidelines:
55
* Use spaces instead of tabs;
6-
* Comment well every new contribution.
6+
* Comment well every new contribution;
7+
* Feel free to create a discussion or a new issue for every new contribution.
78

89
## Building tips
9-
0. Ensure that you have NodeJS (npm) installed, and executed the following:
10-
1. <code>npm install</code> (to install all required dependencies).
11-
1. To test your changes in sources without exporting:
12-
1. Comment/replace <code>$$$ISOK(..RequireAuthorization())</code> in %WebTerminal.Engine studio class;
13-
2. Open <code>index.html</code> file from local server (execute `node localServer/run.js`). You may also need to change the debug port 57772 in TerminalController.js.
14-
3. OR, just build & import terminal application into Cach? each time you make change.
15-
2. After changes tested, export the project to studio:
16-
1. Run <code>gulp</code> command to build the project;
17-
3. Find build/CacheWebTerminal-v*.xml file and import it to the studio.
18-
3. By making changes in studio files (*.cls, *.mac) just export the code into appropriate files in repository. (insert changes by copying them into `export/template.xml` file)
19-
4. If you commented line as the first step says, fo not forget to uncomment it.
10+
0. Ensure that you have NodeJS (npm as well) installed, and executed the following:
11+
1. `npm install` (to install all required dependencies).
12+
1. Having changes made, export the project:
13+
1. Run `gulp` command to build the project;
14+
3. Find `build/CacheWebTerminal-v*.xml` file and import it to the studio.
15+
2. By making changes in studio files (*.cls, *.mac) just export the code into appropriate files in repository. (insert changes by copying them into `export/template.xml` file)
2016

2117
## Applications Integration
2218
If you want to integrate WebTerminal with your application, follow the next tips & tricks:
23-
* An <code>NS</code> parameter of GET request can set default namespace. For example, URL `../terminal/?NS=USER` will open terminal in USER namespace.
24-
* In order to use IFrame to insert terminal on page, you may need to add <code>sandbox="allow-same-origin allow-scripts"</code> attribute to IFrame tag to enable storage and scripts which are required.
19+
* A `NS` parameter of GET request can set default namespace. For example, URL `../terminal/?NS=USER` will open terminal in USER namespace.
20+
* In order to use IFrame to insert terminal on page, you may need to add `sandbox="allow-same-origin allow-scripts"` attribute to IFrame tag to enable storage and scripts which are required.
2521
* To get latest version of terminal, you can parse [latestVersion](http://intersystems-ru.github.io/webterminal/latestVersion) file which is always available on WEB and then request XML to import from `http://intersystems-ru.github.io/webterminal/files/WebTerminal-<b>{FILE PART}</b>.xml`.
2622
* Web Terminal is able to auto-update itself, just execute `/update` command in the terminal.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Cache WEB Terminal",
44
"description": "Web-based terminal emulator for Caché administering.",
55
"author": "ZitRo",
6-
"version": "3.1.0",
6+
"version": "3.1.1",
77
"releaseNumber": 13,
88
"repository": {
99
"type": "git",
@@ -14,6 +14,7 @@
1414
},
1515
"devDependencies": {
1616
"express": "^4.13.3",
17+
"gulp": "^3.9.0",
1718
"gulp-concat": "^2.6.0",
1819
"gulp-html-replace": "^1.5.5",
1920
"gulp-minify-css": "^1.2.2",

readme.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,21 @@ Type "/help" there to get more information.
5757
<td>Hope you will find this useful.</td>
5858
</tr>
5959
</table>
60+
61+
### Development
62+
We are glad to see anyone who want to contribute to Caché WEB Terminal development! Check the
63+
[developer's](https://github.com/intersystems-ru/webterminal/blob/master/DEVELOPMENT.md) guide.
64+
65+
In short, the "hot start" is extremely easy. Having latest [NodeJS](https://nodejs.org/en/) installed,
66+
execute the following:
67+
68+
```sh
69+
git clone <this repository URL>
70+
cd <cloned repository name>
71+
npm install -g gulp
72+
npm install
73+
gulp
74+
```
75+
76+
Now, in `build` folder you will find `CacheWebTerminal-v*.xml` file ready to import. Every time you
77+
changes is ready to be tested, just run `gulp` command again and import XML again.

0 commit comments

Comments
 (0)