npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ec-scripts-cli

v1.0.1

Published

Start building modern front end projects in seconds.

Downloads

22

Readme

eCentral Scripts CLI

Start building modern front end projects in seconds.

Quick Overview

eC Scripts CLI is a command-line tool that you can use to set up eC Scripts projects with only one command.

Learn more about eC Scripts.

Installation

Requirements: You need at least Node.js 8.x and NPM 5.x installed.

npm install -g ec-scripts-cli

Usage

ec-cli init [...presets]

Note that the package name is ec-scripts-cli whereas the CLI command is ec-cli.

Examples

Set up a new project in the current directory:

ec-cli init

Set up a new project in the current directory with official eC Scripts React preset and some custom preset from GitHub:

ec-cli init react git://github.com/user/some-preset.git

Notes

Using npm presets: Preset names get resolved internally by prefixing ec-scripts-preset-. Therefore a preset name like react is resolved and npm installed as ec-scripts-preset-react. If you want to publish an eC Scripts preset, make sure to prefix it correctly.

Using git presets: When using a preset from git directly, the repository name needs to match the name in the preset's package.json. According to above that is some-preset.

Presets

A preset source must contain a valid package.json in order to be installable by NPM.

It can contain an extended configuration for eC Scripts by providing a root ecconf.js file.

You can also use a preset for project boilerplating. If your preset contains a root folder /boilerplate, then all the content inside will be copied to your project root upon initialization. Sub directory structures included.

Boilerplate presets can be helpful if you want to start out with some basic features like router setup or default page layouts or you name it.

Example

Here's a basic file structure of how a preset can look:

/
  boilerplate/
    src/
      index.js
  ecconf.js
  package.json

Acknowledgements

We are grateful to the authors of existing related projects for their ideas and inspiration:

Preact CLI

License

MIT