Skip to content

Commit 46bb272

Browse files
authored
Merge pull request #113 from SDOS2020/dev
Beta Release
2 parents 7fd3304 + b071316 commit 46bb272

Some content is hidden

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

48 files changed

+2440
-299
lines changed

.github/workflows/python-linter.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Python Linter
55

66
on:
77
push:
8-
branches: [beta]
8+
branches: [dev]
99
pull_request:
10-
branches: [beta, master]
10+
branches: [dev, master]
1111

1212
jobs:
1313
build:
@@ -24,8 +24,7 @@ jobs:
2424
- name: Install dependencies ✔️
2525
run: |
2626
python -m pip install --upgrade pip
27-
pip install flake8 pytest
28-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
27+
if [ -f requirements-test.txt ]; then pip install -r requirements-test.txt; fi
2928
- name: Lint with flake8 ✨
3029
run: |
3130
# stop the build if there are Python syntax errors or undefined names

.github/workflows/python-test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will installs Python dependencies, and tests the codebase
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python Tests
5+
6+
on:
7+
push:
8+
branches: [dev]
9+
pull_request:
10+
branches: [dev, master]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: [3.6, 3.7, 3.8, 3.9]
18+
node-version: [12.x]
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Set up Python ${{ matrix.python-version }} 🛎️
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
node-version: ${{ matrix.node-version }}
26+
- name: Install dependencies ✔️
27+
run: |
28+
python -m pip install --upgrade pip
29+
if [ -f requirements-test.txt ]; then pip install -r requirements-test.txt; fi
30+
python setup.py install
31+
- name: Test with pytest ✨
32+
run: |
33+
pytest tests/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Reactonite
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<h3 align="center">Reactonite</h3>
44

55
<p align="center"><img src="https://github.com/SDOS2020/Team_3_Reactonite/workflows/Python%20Linter/badge.svg?branch=beta" />
6-
<a onclick="window.open(this.href,'_blank');return false;" href="https://reactonite.github.io/reactonite/"><img src="https://img.shields.io/website?label=documentation&up_message=up&url=https%3A%2F%2Freactonite.github.io%2Freactonite%2F"/></p></a>
6+
<a onclick="window.open(this.href,'_blank');return false;" href="https://reactonite.github.io/"><img src="https://img.shields.io/website?label=documentation&up_message=up&url=https%3A%2F%2Freactonite.github.io%2F"/></p></a>
77

88
<p align="center">
99
A transpiler to convert HTML to React code and PWAs ✨
1010
</br>
11-
<a href="https://reactonite.github.io/reactonite/"><strong>Explore the Docs »</strong></a>
11+
<a href="https://reactonite.github.io/"><strong>Explore the Docs »</strong></a>
1212
<br/>
1313
<a href="https://github.com/SDOS2020/Team_3_Reactonite/#table-of-contents">Table of Contents</a> . <a href="https://github.com/SDOS2020/Team_3_Reactonite/issues">Report Bug</a> . <a href="https://github.com/SDOS2020/Team_3_Reactonite/projects">View Project</a>
1414
</p>
@@ -24,6 +24,7 @@
2424
- [Getting Started](#getting-started)
2525
- [Prerequisites](#prerequisites)
2626
- [Installation](#installation)
27+
- [Development Setup](#development-setup)
2728
- [Usage](#usage)
2829
- [Roadmap](#roadmap)
2930
- [Contributing](#contributing)
@@ -43,7 +44,7 @@ Here's the key features added to Reactonite:
4344
- Act as a wrapper to NPM
4445
- Allow importing of already created HTML file components
4546
- Hot Reloading
46-
- Support custom scss, styled-components, material icons etc. :smile:
47+
- Support custom scss, js, css etc. :smile:
4748

4849
### Built With
4950

@@ -59,13 +60,21 @@ To get this repo up and running on your local machine follow these simple steps.
5960

6061
Here's a list of things you'll need to have prior to installing the software.
6162

62-
- python
63-
- npm
64-
- nodejs
65-
- any modern web browser
63+
- Python
64+
- NPM
65+
- NodeJs
66+
- Any modern web browser
6667

6768
### Installation
6869

70+
1. Use pip to install Reactonite
71+
72+
```sh
73+
$ pip install reactonite
74+
```
75+
76+
### Development Setup
77+
6978
1. Setup virtual environment?
7079

7180
```sh
@@ -81,7 +90,7 @@ $ virtualenv venv
8190
$ git clone https://github.com/SDOS2020/Team_3_Reactonite.git
8291
```
8392

84-
2. Install the package either using pip or python setup tools
93+
3. Install the package either using pip or python setup tools
8594

8695
```sh
8796
$ python setup.py install
@@ -97,7 +106,7 @@ $ pip install .
97106

98107
## Usage
99108

100-
Once installed refer to the [documentation](https://reactonite.github.io/reactonite/) for the set of commands available with Reactonite cli or you can begin by typing `reactonite --help` which opens the help page for `reactonite` command line tool.
109+
Once installed refer to the [documentation](https://reactonite.github.io/) for the set of commands available with Reactonite cli or you can begin by typing `reactonite --help` which opens the help page for `reactonite` command line tool.
101110

102111
```sh
103112
$ reactonite --help
@@ -128,7 +137,7 @@ Contributions are what make the open source community such an amazing place to b
128137

129138
## License
130139

131-
License yet to be decided. See `LICENSE` for more information once complete.
140+
MIT License. See `LICENSE` for more information once complete.
132141

133142
<!-- CONTACT -->
134143

docs/source/_static/js/custom.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
function is_valid(li) {
2+
if (li.className.indexOf("toctree-l1") != -1) return true;
3+
if (li.className.indexOf("toctree-l2") != -1) return true;
4+
return false;
5+
}
6+
7+
window.onload = function () {
8+
var lis = document.getElementsByTagName("li"),
9+
len = lis !== null ? lis.length : 0,
10+
i = 0;
11+
for (i; i < len; i++) {
12+
if (is_valid(lis[i])) lis[i].className += " current";
13+
}
14+
fetch(
15+
"https://raw.githubusercontent.com/reactonite/reactonite.github.io/master/versions.json"
16+
)
17+
.then((response) => response.json())
18+
.then((json) => {
19+
var sideNav = document.getElementsByClassName("wy-menu-vertical")[0];
20+
var versionTitle = document.createElement("p");
21+
versionTitle.className = "caption";
22+
versionTitle.innerHTML =
23+
"<span class='caption-text'>Docs Versions:</span>";
24+
sideNav.appendChild(versionTitle);
25+
var listUl = document.createElement("ul");
26+
listUl.style =
27+
"background: #c9c9c9; padding: 10px 0; font-weight: 400; font-size: 90%";
28+
var listElements = "";
29+
json.forEach((element) => {
30+
listElements +=
31+
'<li><a style="color: #404040; background: #c9c9c9;" href="/' +
32+
element +
33+
'/index.html">' +
34+
element +
35+
"</a></li>";
36+
});
37+
listUl.innerHTML = listElements;
38+
sideNav.appendChild(listUl);
39+
});
40+
};

docs/source/_static/js/expand_li.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
copyright = '2020, Reactonite'
2323
author = 'Reactonite'
2424

25-
version = '0.0.1-alpha'
25+
version = '0.1.0'
2626

2727
# The full version, including alpha/beta/rc tags
2828
release = version
@@ -72,5 +72,5 @@
7272
html_favicon = './_static/favicon.ico'
7373

7474
html_js_files = [
75-
'js/expand_li.js',
75+
'js/custom.js'
7676
]

docs/source/index.rst

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ Here's the key features added to Reactonite:
1818
- Transpile HTML code to React website
1919
- Create PWAs and React applications as quickly as possible
2020
- Act as a wrapper to NPM
21-
- Allow importing of already created HTML file components
2221
- Hot Reloading
23-
- Support custom scss, styled-components, material icons etc.
22+
- Support custom scss, js, css etc.
2423

2524

2625
Getting Started
@@ -43,34 +42,13 @@ software.
4342
Installation
4443
------------
4544

46-
1. Clone the reactonite repository to local machine.
45+
0. Install the package using pip
4746

4847
.. code:: sh
4948
50-
$ git clone https://github.com/SDOS2020/Team_3_Reactonite.git
49+
$ pip install reactonite
5150
52-
1. Setup virtual environment?
53-
54-
.. code:: sh
55-
56-
$ cd Team_3_Reactonite
57-
$ python -m venv env
58-
$ env\Scripts\activate # For Windows
59-
$ source env/bin/activate # For Linux
60-
61-
> Not necessary but recommended to keep your environment clean.
62-
63-
3. Install the package either using pip or python setup tools
64-
65-
.. code:: sh
66-
67-
$ python setup.py install
68-
# Use `develop` instead of `install` to get an editable build
69-
70-
# Alternatively run
71-
$ pip install .
72-
73-
4. You are good to go... 🎉
51+
1. You are good to go, yes it's that simple... 🎉
7452

7553

7654
Usage
@@ -86,19 +64,23 @@ Opens the help page for ``reactonite`` commandline.
8664

8765
.. code:: sh
8866
89-
$ reactonite
67+
$ reactonite --help
9068
Usage: reactonite [OPTIONS] COMMAND [ARGS]...
9169
9270
Entry point for Reactonite cli.
9371
9472
Options:
95-
--help Show this message and exit.
73+
--version Show the version and exit.
74+
--help Show this message and exit.
9675
9776
Commands:
77+
build Command to get a static build of your app after...
9878
create-project Command for creating new Reactonite project from...
79+
gui Command to start realtime development transpiler and...
9980
start Command to start realtime development transpiler for...
10081
transpile-project Command for transpiling a Reactonite project built...
10182
83+
10284
``reactonite create-project PROJECT_NAME``
10385
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10486

@@ -108,6 +90,16 @@ Creates a Reactonite project with required directory structure. Change ``PROJECT
10890
10991
$ reactonite create-project my-new-project
11092
93+
94+
``reactonite gui PROJECT_NAME``
95+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
96+
97+
Creates a Reactonite project for GUI based development with required directory structure. Change ``PROJECT_NAME`` to your app name.
98+
99+
.. code:: sh
100+
101+
$ reactonite gui my-new-project
102+
111103
112104
``reactonite start``
113105
~~~~~~~~~~~~~~~~~~~~
@@ -119,6 +111,16 @@ Starts watching for changes in Reactonite project ``src`` directory and builds t
119111
$ reactonite start
120112
121113
114+
``reactonite build``
115+
~~~~~~~~~~~~~~~~~~~~
116+
117+
Generates a static build of your transpiled React app to be deployed to server. Requires config.json to be configured properly.
118+
119+
.. code:: sh
120+
121+
$ reactonite build
122+
123+
122124
``reactonite transpile-project``
123125
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
124126

docs/source/reactonite.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ reactonite package
44
Submodules
55
----------
66

7+
reactonite.Config module
8+
------------------------
9+
10+
.. automodule:: reactonite.Config
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
715
reactonite.Constants module
816
---------------------------
917

@@ -12,6 +20,14 @@ reactonite.Constants module
1220
:undoc-members:
1321
:show-inheritance:
1422

23+
reactonite.CreateHtmlCss module
24+
-------------------------------
25+
26+
.. automodule:: reactonite.CreateHtmlCss
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:
30+
1531
reactonite.Helpers module
1632
-------------------------
1733

gui/README.md

Whitespace-only changes.

0 commit comments

Comments
 (0)