2.1.0 â€ĸ Published 3 years ago

@pota/react-skeleton v2.1.0

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

react-skeleton downloads extends

Setup 🚀

You can create a new project using the @pota/create package.

npx @pota/create react my-react-app

Standards 📒

This project follows the MediaMonks Frontend Coding Standards

Project Structure â›Šī¸

source

src/components

The components folder follows atomic design guidelines, with a few additions:

FolderDescriptionExample
/atomsThe smallest unit, must be self contained and not dependant on any external modules. (types and configuration being the exception)Icon, Paragraph, Heading
/moleculesMust be restrained to only use atoms and minimal internal state.Toggle
/organismsGenerally reserved for complex state uses and must use atoms or molecules.Form
/layoutComponents whose only function is taking in children and presenting them in a specific layout. Must not use atoms, molecules or organisms.Carousel, Modal, Tabs
/pagesComponents which are used as pages.Home, About
/unlistedComponents which do not fall into any of the above categories.App, global context providers

src/config

The config folder is to be used to define any sort of configuration for styles, components or logic.

hidden TODOs

Features 🔋

Pota Commands

build - builds the source using webpack.

npm run build # or npx pota build
OptionTypeDefaultDescription
analyze{Boolean}falseWhen enabled, will open a bundle report after bundling.
cache{Boolean}trueToggles webpack's caching behavior.
image-compression{Boolean}trueToggles image compression.
mode{development\|production}productionOverride webpack's mode.
output{String}./buildThe build output directory.
source-map{false\|devtool}source-map (production), eval-source-map (development)Sets the style of source-map, for enhanced debugging. Disable or use faster options in you are having out of memory or other performance issues.
public-path{String}/The location of static assets on your production server.
type-check{Boolean}trueWhen disabled, will ignore type related errors.
versioning{Boolean}falseWhen enabled, will copy assets in ./static to a versioned directory in the output (e.g. build/version/v2/static/...).
profile{Boolean}falseToggles support for the React Devtools in production.

dev - starts the development service using webpack-dev-server.

npm run dev # or npx pota dev
OptionTypeDefaultDescription
cache{Boolean}trueToggle webpack's caching behavior.
https{Boolean}falseRun the development server with HTTPS.
image-compression{Boolean}trueToggles image compression.
mode{development\|production}productionOverride webpack's mode.
source-map{false\|devtool}source-map (production), eval-source-map (development)Sets the style of source-map, for enhanced debugging. Disable or use faster options in you are having out of memory or other performance issues.
type-check{Boolean}trueToggles checking for type related errors.

hidden TODOs

Scripts

Non-Pota scripts defined in "scripts" of package.json and are runnable using npm run {script}

ScriptDescription
postinstallRun patch-package to patch faulty packages.
build-storybookBundle stories for deployment.
start-storybookStart storybook's development server.
plopGenerate a new component's source files.
testRun unit tests.
fixExecutes all fix:* and `format commands in sequence.
fix:eslintExecutes eslint:lint and fixes fixable errors.
formatFormats the source files using prettier.
lintExecutes all lint:* commands in sequence.
lint:eslintLints the source files using eslint.
rsyncSynchronizes (uploads) dist/ files to a remote server.
typecheckSynchronously runs typecheck:main and typecheck:tools.
typecheck:mainChecks for type errors and unused variables/types in the source directory.
typecheck:toolsChecks for type errors and unused variables/types of the various local tools.

JavaScript / TypeScript

hidden TODOs

CSS

hidden TODOs

Images

hidden TODOs

Misc. Assets

hidden TODOs

Linting & Formatting

hidden TODOs

Deployment

hidden TODOs

Git

hidden TODOs

Storybook

hidden TODOs

Testing

hidden TODOs

Web Vitals

hidden TODOs

Routing

hidden TODOs

State Management

hidden TODOs

Continuous Integration / Continuous Deployment

Bitbucket

webpack-skeleton comes with bitbucket-pipelines.yml, pre-configured to run check-types, lint and test scripts.

hidden TODOs

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.0-rc.20

3 years ago

2.0.2

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0-rc.9

4 years ago

1.0.0-rc.13

4 years ago

1.0.0-rc.12

4 years ago

1.0.0-rc.11

4 years ago

1.0.0-rc.10

4 years ago

1.0.0-rc.17

4 years ago

1.0.0-rc.16

4 years ago

1.0.0-rc.15

4 years ago

1.0.0-rc.14

4 years ago

1.0.0-rc.19

4 years ago

1.0.0-rc.18

4 years ago

1.0.0-rc.8

4 years ago

1.0.0-rc.7

4 years ago

1.0.0-rc.6

4 years ago

1.0.0-rc.5

4 years ago

1.0.0-rc.4

4 years ago

1.0.0-rc.3

4 years ago

0.1.0

4 years ago

0.1.0-alpha.3

4 years ago

1.0.0-rc.1

4 years ago

1.0.0-rc.2

4 years ago

0.1.0-alpha.2

4 years ago

0.1.0-alpha.1

4 years ago