node package manager

cycle-scripts-one-fits-all

one-fits-all flavour

Cycle-app flavor.

Language

ES6 or Typescript 2.1 configured with:

Bundler

Webpack is configured using webpack-blocks

Scripts

  • npm start: Start development server listening on port 8000
  • npm test: Run the default test tool
  • npm run build: Generate a production-ready build content, on the build folder (this folder is gitignored)
  • npm run eject: Copy flavor's dependencies and configurations to the project folder, update package.json and remove the dependency on the flavored cycle-scripts. This is irreversible.

Boilerplate:

The flavor generate the following file structure:

my-awesome-cycle-app/
├── node_modules/
├── public/
│   ├── favicon.png
│   └── favicon.ico
├── src/
│   ├── css
│   │   └── styles.scss
│   ├── app.tsx
│   ├── app.test.js
│   └── index.ts
├── .gitignore
├── package.json
├── tsconfig.json
├── tslint.json
└── index.ejs

Config files

  • .babelrc (Added on the root after running the eject script)
  • webpack.config.js (Added on the root after running the eject script)