1.1.6 • Published 4 years ago

cra-template-iglu v1.1.6

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

cra-template-iglu

Starter template for Create React App.

To use this template, add --template iglu when creating a new app.

For example:

npx create-react-app my-app --template iglu

# or

yarn create react-app my-app --template iglu

Additional changes required (Custom Template limitations)

Copy files from project-folder/src/_PROJECT_ROOT_ to project-folder/ (can't be added with custom template)

Currently template only updates package.json dependencies and scripts object, so we have to add few lines manually:

{
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged && npm run test:coverage"
    }
  },
  "lint-staged": {
    "**/*.{ts, tsx}": [
      "eslint --fix",
      "git add"
    ],
    "**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
      "prettier --write",
      "git add"
    ]
  }
}

Features

Available Scripts

  • yarn - Install dependencies
  • yarn start - Runs the app in the development mode.
  • yarn test - Launches the test runner in the interactive watch mode.
  • yarn test:coverage - Runs the tests once.
  • yarn build - Builds the app for production to the build folder.
  • yarn lint - Look for linting errors
  • yarn lint:fix - Look and fix linting errors
  • yarn storybook - manage UI components
  • yarn eject - will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them.

Guidelines

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago