0.2.1 • Published 7 years ago
cycle-scripts-ts-simple v0.2.1
cycle-scripts-ts-simple
A cycle-app flavor to start a project in TypeScript.
Getting started
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
Template
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
Scripts
npm start
: Start development server listening on port 8000npm 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.
Running tests
To the run the tests, you will need in install globally two modules:
Once installed, simply run:
npm run test