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

edools-theme-cli

v3.1.2

Published

A starter kit to make Edools Themes

Downloads

7

Readme

Edools Theme CLI

The Edools Theme CLI is a command line tool that allows you to manage and edit theme files directly on your computer.

Requirements

  • NodeJs ( < v7 until now, because the lib node-sass not support linux 64bits )

Installation and update

$ npm i -g edools-theme-cli

Changes in 3.0.0

  • Needs NodeJS >= v6 LTS.

  • The 3.0.0 version changes the way that CLI handles your theme.json file. If your theme.json uses development as enviroment, please change it to production enviroment as in the bellow example:

Example of 3.0.0 theme.json

{
  "name": "My Nice Theme",
  "description": "...",
  "author": "Nice Author",
  "production": {
    "url": "http://my-school-url.com",
    "school_id": 123,
    "theme_id": 321,
    "token": "my-nice-token"
  }
}

Theme Structure

.
├── assets
│   ├── images                      # Theme Images (optional).
│   │
│   ├── js                          # Theme Javascript Files (optional).
│   │
│   ├── scss                        # Theme Scss Files (optional).
│   │    │
│   │    └── theme.base.scss        # Main scss file, you can import other scss files
│   │                                 inside scss folder. (required if you want to use scss).
│   │
│   ├── theme.js.liquid             # Use this file if you want to merge liquid params into javascript.
│   │
│   └── theme.scss.liquid           # Use this file if you want to merge liquid params into scss.
│
├── config
│   │
│   ├── settings_data_schema.json   # Theme customization schema.
│   │
│   ├── settings_data.json          # Theme customization data.
│
│
├── layouts                         # Liquid layouts
│
├── locales                         # i18n json files
│
├── mailers                         # Email Templates
│
├── snippets                        # Liquid snippets
│
├── templates                       # Liquid templates
│
├── .csscomb.json                   # CSSComb config (optional) read more at http://csscomb.com.
│
├── bower.json                      # Bower config (optional).
│
├── theme.json                      # Theme config file.

Commands

You can use edools-theme or the alias edt

Ps: All of the following commands needs to be executed in the target theme folder.

-h help

-V version

Start a New Theme:

Creates an empty theme with basic configuration. You can use this command to start editing an existing theme downloaded from your school.

Command: edt init or edt i

Example:

mkdir my-theme

cd my-theme

edt i "My Theme" "Author Name"

Serve

Creates a proxy server for realtime edit. When serve is running all of your local changes will be uploaded to your online theme. The browser will be reloaded automatically when you change a file.

Default url: https://localhost:5000

Command: edt serve [env] or edt s [env]

Params:

  • env: [development, staging, production] (optional) default: production

Example: edt s, edt s staging, edt s development

Build

Builds theme's assets like scss, js and bower js files.

Command: edt build or edt b

Upload Files to School

Uploads a single file or the entire theme if no file path provided.

Command: edt upload [file] [env] or edt u [file] [env]

Params:

  • file: file path (optional)
  • env: [development, staging, production] (optional) default: production

Example: edt u templates/index.liquid, edt u templates/index.liquid staging

Warning: This command replaces the remote file, if you doesn't input a file path, all of the remote files will be overriden by local files.

Download Files to Local Folder

Downloads a single file or the entire theme if no file path provided.

Command: edt download [file] [env] or edt d [file] [env]

Params:

  • file: file path (optional)
  • env: [development, staging, production] (optional) default: production

Example: edt d templates/index.liquid, edt d templates/index.liquid staging

Warning: This command replaces the local file, if you doesn't input a file path, all of the local files will be overriden by remote files.

Development

  • Clone Repository
  • Run $ cd edools-theme-cli && npm i
  • Run $ npm link .
  • Run $ npm run dev