Skip to content
Command line tool to group lists of files and directories by name and determine if any are missing.
JavaScript PureScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
src
test
.gitignore
README.md
bower.json
dassets.js
package.json
project-assets.yml
shebang.sh
testfile.txt

README.md

dassets

Projects deployed across multiple channels often require one-off assets for each channel. For example, a game could be distributed on a website, on Android, or as a Facebook app. As the number of distribution channels increases, it becomes difficult to remember which project assets are meant to be copied to which channel. This command line tool is intended to help organize files and determine if any are missing.

Project Goals

  1. Define a configuration file for listing project assets and grouping them by channel name.

  2. Provide a command line interface that will answer these questions.

  • What assets are required by a channel?

    dassets --in [channel name] --in [channel name]

  • Do all of the assets exist? Were some files renamed or deleted?

    dassets --in [channel name] --missing

  1. Enable installation via a global npm package.

Install

npm install -g dassets

You can also checkout the repo and then run npm install -g in the project root.

project-assets.yml

The project-assets.yml file should contain a list of objects that have "name" and "paths" properties. name is a string, and paths is an array. You can generate a new config file using dassets --create or paste the following in project-assets.yml manually:

- name: development
  paths:
    - development.html
- name: production
  paths:
    - production.html
    - credentials/auth.json

Command Line Referrence

dassets [-i name] [-m]

Before using, you should create project-assets.yml file in project root and use
command.js anywhere above it.

Options:
--version      Show version number                                   [boolean]
--help         Show help                                             [boolean]
-i, --in       One or more group names to inspect                     [string]
-m, --missing  Show only missing assets                              [boolean]
-c, --create   Create an example project-assets.yml file if one doesn't
               already exist                                         [boolean]

Examples:
dassets                          list all assets in all channels
dassets -m                       show missing assets in all channels
dassets -i production            list all assets in the 'production' channel
dassets -i production -i dev -m  list all missing assets in the
                                 'production' and 'dev' channels

Screenshot

screenshot

You can’t perform that action at this time.