PyReact dependency has been removed because it is no longer being maintained. Instead, I've
added npm and webpack modules. These modules are simple wrappers for npm install and webpack.
A command line utility has been created to simplify starting a new project. In your project folder, simply type
pyxapp --init .
to create a package.json file and automatically call npm install.
Webpack handles the transpilation and bundling. The user provides the file to transpile and where the output should live.
# Create a webpack file and bundle our javascript
from pyxley.utils import Webpack
wp = Webpack(".")
wp.create_webpack_config(
"layout.js",
"./demo/static/",
"bundle",
"./demo/static/"
)
wp.run()
JSX transformation no longer occurs in ui.render_layout.
ReactRouter
Addition of the ReactRouter class. Simple template for pulling together multiple pages.
Simple example below:
Pyxley 0.0.8
Changes:
utils
modulePyReact
dependency has been removed because it is no longer being maintained. Instead, I've addednpm
andwebpack
modules. These modules are simple wrappers fornpm install
andwebpack
.A command line utility has been created to simplify starting a new project. In your project folder, simply type
to create a
package.json
file and automatically callnpm install
.Webpack handles the transpilation and bundling. The user provides the file to transpile and where the output should live.
JSX
transformation no longer occurs inui.render_layout
.ReactRouter
Addition of the
ReactRouter
class. Simple template for pulling together multiple pages.Simple example below:
Updates to examples.
project
folder.