A cycle-app flavor to start a project in TypeScript.
-
Install
create-cycle-app
$ npm install -g create-cycle-app
-
Create your application
$ create-cycle-app my-super-cycle-app --flavor cycle-script-ts-simple
The flavor generates the following structure:
my-super-cycle-app/
├── node_modules/
├── public/
│ ├── favicon.ico
│ └── index.html
├── src/
│ ├── example.test.js
│ └── index.ts
├── .gitignore
├── package.json
└── tsconfig.json
-
npm start
: Start development server listening on port 8000 -
npm test
: Executes the tests in the projects. (Read the Running tests section) -
npm run build
: Bundles the app into static files for production. (Files are generated in thebuild
folder) -
npm run eject
: Ejectscycle-scripts
and gives you control of the workflow implementation. Be aware that this is irreversible.
To the run the tests, you will need in install globally two modules:
Once installed, simply run:
npm run test