periscope-tools
v0.0.3
Published
Tools and utility functions used to develop Periscope libraries. Based on aurelia tools
Readme
tools
Tools and utility functions used to build and develop Periscope libraries.
To create a dev environment:
- Create an periscope directory to hold all of the projects.
mkdir periscope- Change to the new directory
cd periscope- Clone this repository into the
toolsdirectory. This repo contains the helper tools for creating the dev environment.
git clone https://github.com/privosoft/periscope-tools.git- Clone the periscope-demo-app also which is the base app for testing -
git clone https://github.com/privosoft/periscope-demo-app.git- Change directory into periscope-demo-app
cd periscope-demo-app
- Install the periscope-demo-app application's dependencies:
npm install
jspm install- Build the dev environment. This will create all of the directories inside of
periscopeunder the proper name,git clonethem all and then perform agulp build. If the directories were created previouslybuild-dev-envcommand will just rebuild them.
gulp build-dev-envAlternatively, run gulp pull-dev-env to only pull down each periscope dependency and not perform builds.
Sometimes 'gulp build-dev-env' doesn't work properly with some versions of npm. If you was failed to create the dev environment using this command you can make it manually. Firstly, you have to create subfolders for each dependent package.
Each subfolder's name should be the same as repo name excluding the word 'periscope-'. So, your directory structure should look as follows:
+-- periscope
| +-- demo-app
| +-- framework (for periscope-framework)
| +-- ui (for periscope-ui)
| +-- etc.Then you should run 'git clone', 'npm install' and 'jspm install' for each dependent package.
- Now you have the ability to update the repos locally, make changes, and use those in the periscope-demo-app in the
periscopedirectory by using thegulp update-own-depscommand. Note: before runupdate-own-depscommand please make sure that the changed repos were properly built othervise runbuild-dev-envone more time.
