2014-12-21 09:05:40 +01:00
|
|
|
## CsvEditor based on Flux-Chat example and some parts of FLUX React JS Boilerplate
|
2014-08-17 19:38:01 +02:00
|
|
|
|
2014-12-20 13:31:53 +01:00
|
|
|
Read more about FLUX over at [Facebook Flux Website](http://facebook.github.io/flux/)
|
|
|
|
|
Read more about RejactJS on [React JS Website](http://facebook.github.io/react/)
|
|
|
|
|
Read more about Gulp on [Gulp Website](http://gulpjs.com/)
|
2014-10-27 15:28:16 +01:00
|
|
|
|
2014-12-20 13:31:53 +01:00
|
|
|
### Development - setup
|
2014-08-20 19:50:48 +02:00
|
|
|
|
2014-12-20 13:31:53 +01:00
|
|
|
* Run `sudo npm install -g gulp` to install gulp globally
|
|
|
|
|
* Run `npm install --save-dev gulp` to install gulp locally
|
|
|
|
|
* Run `npm install` to install other packages
|
|
|
|
|
|
|
|
|
|
### Development
|
|
|
|
|
|
|
|
|
|
* Run `gulp` to get watcher running
|
|
|
|
|
* Start a web server with root in the `build` folder, with `gulp webserver`
|
|
|
|
|
* Go to `localhost:31337` to display the app
|
|
|
|
|
* Go to `localhost:31337/testrunner.html` to see your tests
|
2014-11-10 21:15:14 +01:00
|
|
|
* Any changes to `app` or `styles` folder will automatically rebuild to `build` folder
|
|
|
|
|
* Both tests and application changes will refresh automatically in the browser
|
|
|
|
|
* Run `gulp test` to run all tests with phantomJS and produce XML reports
|
2014-08-20 19:50:48 +02:00
|
|
|
|
|
|
|
|
### Minify the code, ready for production
|
2014-11-10 21:15:14 +01:00
|
|
|
* Run `gulp deploy`
|
2014-08-20 19:50:48 +02:00
|
|
|
|
|
|
|
|
### Directory
|
2014-10-27 15:28:16 +01:00
|
|
|
* **build/**: Where your automatically builds to. This is where you launch your app in development
|
2014-08-20 19:50:48 +02:00
|
|
|
* **dist/**: Where the deployed code exists, ready for production
|
2014-11-10 21:15:14 +01:00
|
|
|
* **styles/**: Where you put your css files
|
|
|
|
|
* **specs/**: Where you put your test files
|
2014-08-20 19:50:48 +02:00
|
|
|
* **gulpfile**: Gulp configuration
|