Socket
Book a DemoInstallSign in
Socket

@abernier/create-sandbox

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abernier/create-sandbox

[![NPM version](https://img.shields.io/npm/v/@abernier/create-sandbox.svg?style=flat)](https://www.npmjs.com/package/@abernier/create-sandbox)

1.0.5
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

NPM version

It's codesandox but as a local command-line!

Command to create a standard CRA, but:

  • with a random project-name (if no-one given)
  • launch VScode automatically on src/App.js
  • choose a random port between [3000..4000] to launch the localhost hot-reload server

Usage

The following command will create a new random-name-2345 project into .

$ npm init @abernier/sandbox

or

$ yarn create @abernier/sandbox

Alternative usage

Specify a existing folder

$ npm init @abernier/sandbox ~/tmp

A random-name-2345 will be created inside ~/tmp and your CRA created into.

Specify a non-existing folder

$ npm init @abernier/sandbox ~/code/rosie

A rosie folder will be created and your CRA created into.

NB: no random name here as you specify a non-existing folder name

npx

Alternatively to you could just:

$ npx @abernier/create-sandbox

but this is less cool

Publish to NPM

Ready to publish a new version to NPM registry?

Manually

  • bump the package.json version
  • npm login if not already
  • npm publish

If successful, you should want to tag the version:

$ git add package.json
$ git commit -m "bump version"
$ git tag v1.0.1
$ git push --tags

Using CI workflow

Pre-requisite:

  • Generate a new NPM access token on npmjs.com (you need a NPM account and be logged-in)
  • Set it as NPM_TOKEN secret (in Settings > Secrets and as referenced into ci.yml file)

Then, to release a new version on npm:

FAQs

Package last updated on 01 Jan 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.