0.2.1 • Published 7 years ago

cycle-scripts-ts-simple v0.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

cycle-scripts-ts-simple

npm version

A cycle-app flavor to start a project in TypeScript.

Getting started

  1. Install create-cycle-app

    $ npm install -g create-cycle-app

  2. 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 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 the build folder)
  • npm run eject: Ejects cycle-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