Skip to content

Commit

Permalink
Moving content of assets/readme.md to contributing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Feb 27, 2016
1 parent 4f4c67c commit c304cc4
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 45 deletions.
62 changes: 56 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ open to whoever wants to implement it.
Look through the GitHub issues for features. Anything tagged with
"feature" is open to whoever wants to implement it.

We've created the operators, hooks, macros and executors we needed, but we
made sure that this part of Panoramix is extensible. New operators,
hooks and operators are very welcomed!

### Documentation

Panoramix could always use better documentation,
Expand All @@ -55,7 +51,7 @@ If you are proposing a feature:

[API Documentation](http://pythonhosted.com/panoramix)

## Setting up a development environment
## Setting up a Python development environment

# fork the repo on github and then clone it
# alternatively you may want to clone the main repo but that won't work
Expand Down Expand Up @@ -84,7 +80,61 @@ If you are proposing a feature:
# start a dev web server
panoramix runserver -d

For every development session you may have to

## Setting up the node / npm javascript environment

`panoramix/assets` contains all npm-managed, front end assets.
Flask-Appbuilder itself comes bundled with jQuery and bootstrap.
While these may be phased out over time, these packages are currently not
managed with npm.


### Using npm to generate bundled files

#### npm
First, npm must be available in your environment. If it is not you can run the following commands
(taken from [this source](https://gist.github.com/DanHerbert/9520689))
```
brew install node --without-npm
echo prefix=~/.npm-packages >> ~/.npmrc
curl -L https://www.npmjs.com/install.sh | sh
```

The final step is to add
`~/.node/bin` to your `PATH` so commands you install globally are usable.
Add something like this to your `.bashrc` file.
```
export PATH="$HOME/.node/bin:$PATH"
```

#### npm packages
To install third party libraries defined in `package.json`, run the
following within this directory which will install them in a
new `node_modules/` folder within `assets/`.

```
npm install
```

To parse and generate bundled files for panoramix, run either of the
following commands. The `dev` flag will keep the npm script running and
re-run it upon any changes within the assets directory.

```
# Compiles the production / optimized js & css
npm run prod
# Start a web server that manages and updates your assets as you modify them
npm run dev
```

For every development session you will have to start a flask dev server
as well as an npm watcher

```
panoramix runserver -d -p 8081
npm run dev
```

## Testing

Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,10 @@ getting the foundation for free
* The Flask ecosystem - Simply amazing. So much Plug, easy play.
* NVD3 - One of the best charting library out there
* Much more, check out the requirements.txt file!


Contributing
------------

Interested in contributing? Casual hacking? Check out the `CONTRIBUTING.md`
file in the repository to get started!
38 changes: 0 additions & 38 deletions panoramix/assets/readme.md

This file was deleted.

1 change: 0 additions & 1 deletion panoramix/templates/refactor

This file was deleted.

0 comments on commit c304cc4

Please sign in to comment.