Skip to content
/ Blitz Public

A CLI to install your favourite npm packages in new projects

Notifications You must be signed in to change notification settings

yonibot/Blitz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blitz

NPM

  • Installation
  • Getting started
  • API
  • Release notes

Blitz keeps named lists of npm "presets" for different types of projects.

So, for instance, if you always install MobX, AntDesign, and certain Babel presets for your React projects, you can create a Blitz file called "React" and include those packages. Running blitz run React will install all packages, dev packages, and shell commands that you defined in the Blitzfile.

Installation

npm install blitz-project-cli

Getting started

Create a new Blitz file for a particular project type and then open it in your editor.

$ blitz new react-native
New config created: config_files/react-native.json

$ blitz list
react-native

$ blitz edit react-native
{ opens your text editor with a skeleton JSON }

Now we'll add our default packages.

{
	"packages":[
		"react-native-vector-icons",
		"mobx",
		"mobx-react",
		"babel-plugin-transform-decorators-legacy"
	],
	"devPackages":[],
	"shellCommands":["echo Done!"]
}

Run the blitz:

$ blitz run react-native

API

Run blitz help to see all available commands.

  Commands:

    new [name]   
    list         
    edit <name>  
    run <name>   
    delete <name>

Release notes

As of 0.0.12-beta.7, config files are stored on the user's machine, where aplication config data is stored.

About

A CLI to install your favourite npm packages in new projects

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published