Skip to content

Zoltu/RepoCreator-Client

Repository files navigation

RepoCreator Client

This repository is the client side application for RepoCreator. It is written in HTML5, CSS3, TypeScript and Aurelia.

Join the chat at https://gitter.im/Zoltu/RepoCreator-Client

Build (only required once on checkout)

npm install
node_modules/.bin/jspm registry config github
node_modules/.bin/jspm config registries.bower.handler jspm-bower-endpoint
node_modules/.bin/jspm install

Run

npm start

Alternatively, if port 8080 is in use, you can use (Error: listen EACCESS 127.0.0.1:8080) this command to run on some other port

node_modules/.bin/static dist -p 8081

Develop

Once the application is running you can make changes and see them when you refresh the browser. Be aware, the page is setup to cache locally so you may need to do a hard reload as described here: https://www.getfilecloud.com/blog/2015/03/tech-tip-how-to-do-hard-refresh-in-browsers

Maintain

Install or Update NPM package

npm install --save-dev <package-name>

Install or Update JSPM package

node_modules/.bin/jspm install <package-name>

Update Runtime Transpiler

node_modules/.bin/jspm dl-loader --latest

Update Runtime Transpiler to vnext (until npm tag support is added to JSPM)

TODO: Test if this actually works.

npm dist-tag ls typescript
node_modules/.bin/jspm install --dev typescript@<next-version-from-first-command-result>

Update Aurelia

Note: Verify that this list of dependencies is all that is used by searching through the project for import.*from .aurelia-.*

node_modules/.bin/jspm install aurelia-animator-css aurelia-binding aurelia-bootstrapper aurelia-computed aurelia-dependency-injection aurelia-dialog aurelia-event-aggregator aurelia-http-client