Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@inthepocket/create-itp-react-app

Package Overview
Dependencies
Maintainers
7
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inthepocket/create-itp-react-app

[![version][version-badge]][package] [![MIT License][license-badge]][license]

  • 0.1.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
7
Created
Source

create-itp-react-app

version MIT License

Generates an ITP-ready React App.

Uses create-react-app under the hood. Adds some extra features and example files within our common directory structure.

Typescript is enabled by default.

Getting started

$ npx @inthepocket/create-itp-react-app <your-project-name>
$ cd <your-project-name>
$ npm start

Features

1 should be replaced by eslint in the near future, as pointed out by @thibmaek

2 postcss & postcss-preset-env now come with react-scripts (stage 3 configured). Unfortunately we still need to rewire, because we'll need stage 1 & the custom-media-queries feature.

Generated project structure

├── design-docs
└── src
    ├── __mockdata__
    ├── app
    │   └── screens
    ├── common (import from generated-project-name/common)
    │   ├── assets
        |   ├── fnt
        |   ├── img
    │   ├── components
    │   │   ├── atoms
    │   │   ├── molecules
    │   │   └── organisms
    │   └── primitives
    └── core (import from generated-project-name/core)
        ├── actions
        ├── reducers
        ├── sagas
        ├── schemas
        ├── selectors
        └── services
        └── types

Local packages

  • generated-project-name/common
  • generated-project-name/core
  • generated-project-name/mock

Example files

The generated project comes with some example files that demonstrate:

Development (running the generator locally)

  • run the prepublishOnly script before running the generator (to generate the design-docs template folder)
  • run node index.js <MY_PROJECT_NAME>
  • a generated project is created in the folder <MY_PROJECT_NAME>

Known issues

Error: ENFILE: file table overflow

Stack trace

$ (node:56347) UnhandledPromiseRejectionWarning: Error: ENFILE: file table overflow, open '<LOCAL_PATH>/node_modules/jest-matchers/build/spyMatchers.js'
$ (node:56347) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise whichwas not handled with .catch(). (rejection id: 1)
$ (node:56347) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Workaround

$ echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf
$ echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf
$ sudo sysctl -w kern.maxfiles=65536
$ sudo sysctl -w kern.maxfilesperproc=65536
$ ulimit -n 65536

Jira ref: DESSSYS-26

Keywords

FAQs

Package last updated on 19 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc