Skip to content

Instantly share code, notes, and snippets.

@makarovas
Created July 8, 2018 07:39
Show Gist options
  • Save makarovas/0793048e06a15795961d00b3ed5f50c6 to your computer and use it in GitHub Desktop.
Save makarovas/0793048e06a15795961d00b3ed5f50c6 to your computer and use it in GitHub Desktop.
The commands are similar to NPM’s:
• Install all packages: npm install or yarn
• Install a certain package: npm install --save <package> or yarn add <package>
• Start the development server: npm start or yarn start
• Run the tests: npm test or yarn test
• Install something globally: yarn global add <package> or npm install -g <package>
yarn global add create-react-app
create:
create-react-app project-name-folder
cd project-name-folder
rm src/App.* src/index.css src/logo.svg
yarn start
build:
npm run build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment