For now the framework is still in heavy developement and isn’t published as an npm package.
However, if you want to use it, you can still get it from the source repository and compile it yourself.
To unleash the power of TS framework, we are going to create two folders to hold our projet. One will contain the framework source and build. The other will contain your project created from a base application.
All followings commands will be executed in a bash like environment with typescript and git installed
Clone the ts-framework repository
git clone https://github.com/tsframework/ts-framework.git
Load dependencies and build the framework itself
cd ts-framework
npm install -g typings
npm install
typings install
npm run-script build
If you get errors at this step, please check the troubleshoot guide
Run the automatic tests (Skip if you havn’t modifyed the base ts-framework)
npm run-script test
Create a local npm package link
npm link
This will publish ts-framework locally.
Create the example app
cd ..
git clone https://github.com/tsframework/ts-framework-app.git
Link to the local framework and load dependencies
npm link ts-framework
npm install
Start the default app in dev mode (auto rebuild server/client code and clients assets on change)
$(npm bin)/gulp watch
That’s it, a default application must be available at http://localhost:3000.