Skip to content

Commit b1a675c

Browse files
committed
🔖 v3.0.0-rc.1
Release new version
2 parents f794d08 + a402e3f commit b1a675c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+24291
-14004
lines changed

.editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
max_line_length = 233
11+
12+
[*.{yml,yaml,json}]
13+
indent_style = space
14+
indent_size = 2
15+
16+
[*.md]
17+
trim_trailing_whitespace = false

.nycrc

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"extension": [
3+
".ts"
4+
],
5+
"include": [
6+
"src/js/*.ts"
7+
],
8+
"exclude": [
9+
"src/**/index.ts",
10+
"**/*.d.ts",
11+
"node_modules/*",
12+
"test/*"
13+
],
14+
"require": [
15+
"ts-node/register"
16+
],
17+
"reporter": [
18+
"lcov",
19+
"html",
20+
"text"
21+
],
22+
"all": true,
23+
"check-coverage": false
24+
}

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
Quickly create a terminal window.
44

55
[![npm](https://img.shields.io/npm/v/shell.js.svg)](https://www.npmjs.com/package/shell.js)
6-
![bower](https://img.shields.io/bower/v/shell.js.svg)
7-
![version](https://badge.fury.io/gh/davidecaruso%2Fshell.js.svg)
6+
[![npm](https://img.shields.io/npm/dm/shell.js.svg)](https://www.npmjs.com/package/shell.js)
87
[![snyk](https://snyk.io/test/github/davidecaruso/shell.js/badge.svg)](https://snyk.io/test/github/davidecaruso/shell.js)
98
[![travis](https://travis-ci.org/davidecaruso/shell.js.svg?branch=master)](https://travis-ci.org/davidecaruso/shell.js)
109
[![coveralls](https://coveralls.io/repos/github/davidecaruso/shell.js/badge.svg?branch=master)](https://coveralls.io/github/davidecaruso/shell.js?branch=master)
10+
![license](https://img.shields.io/github/license/davidecaruso/shell.js.svg)
1111

1212
## Install
1313

bower.json

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "shell.js",
3-
"version": "2.0.9",
4-
"description": "A JavaScript and CSS library to create terminals",
3+
"version": "3.0.0-rc.1",
4+
"description": "A JavaScript library to create HTML terminals in web pages.",
55
"author": "Davide Caruso <davide.caruso93@gmail.com>",
66
"license": "MIT",
77
"repository": {
@@ -10,13 +10,10 @@
1010
},
1111
"keywords": [
1212
"shell",
13-
"shelljs",
14-
"javascript",
13+
"shell.js",
1514
"terminal-emulators",
1615
"terminal",
17-
"ecmascript2015",
18-
"command-line",
19-
"es2015",
16+
"typescript",
2017
"javascript-library",
2118
"javascript-plugin"
2219
],

demo/index.html

-64
This file was deleted.

index.html

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Shell.js</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css" />
8+
<style type="text/css">
9+
.shell {
10+
margin: 0 auto 40px;
11+
}
12+
</style>
13+
</head>
14+
<body>
15+
<div class="text-center">
16+
<h1 class="pt-4">Shell.js</h1>
17+
<h2 class="lead">Here a bit of example of <strong>Shell.js</strong>' instances:</h2>
18+
<div id="default"></div>
19+
<div id="default-light"></div>
20+
<div id="osx"></div>
21+
<div id="osx-light"></div>
22+
<div id="ubuntu"></div>
23+
<div id="ubuntu-light"></div>
24+
<div id="windows"></div>
25+
</div>
26+
<script src="//cdnjs.cloudflare.com/ajax/libs/typed.js/2.0.6/typed.min.js"></script>
27+
<script src="/shell.js"></script>
28+
<script>
29+
document.addEventListener('DOMContentLoaded', function () {
30+
new Shell('#default', {
31+
user: 'guest',
32+
typed: Typed,
33+
responsive: false,
34+
commands: ['sudo -i', 'rm -rf /', 'exit']
35+
});
36+
new Shell('#default-light', {
37+
user: 'guest',
38+
theme: 'light',
39+
responsive: false,
40+
commands: ['sudo -i', 'rm -rf /', 'exit']
41+
});
42+
new Shell('#osx', {
43+
user: 'guest',
44+
host: 'MacBook-Pro',
45+
style: 'osx',
46+
responsive: false,
47+
commands: ['sudo -i', 'rm -rf /', 'exit']
48+
});
49+
new Shell('#osx-light', {
50+
user: 'guest',
51+
host: 'MacBook-Pro',
52+
style: 'osx',
53+
theme: 'light',
54+
responsive: false,
55+
commands: ['sudo -i', 'rm -rf /', 'exit']
56+
});
57+
new Shell('#ubuntu', {
58+
user: 'guest',
59+
host: 'localhost',
60+
style: 'ubuntu',
61+
responsive: false,
62+
commands: ['sudo -i', 'rm -rf /', 'exit']
63+
});
64+
new Shell('#ubuntu-light', {
65+
user: 'guest',
66+
host: 'localhost',
67+
style: 'ubuntu',
68+
theme: 'light',
69+
responsive: false,
70+
commands: ['sudo -i', 'rm -rf /', 'exit']
71+
});
72+
new Shell('#windows', {
73+
style: 'windows',
74+
responsive: false,
75+
commands: ['sudo -i', 'rm -rf /', 'exit']
76+
});
77+
});
78+
</script>
79+
</body>
80+
</html>

0 commit comments

Comments
 (0)