├── .eslintrc.json
├── .gitignore
├── .travis.yml
├── README.md
├── docs
├── cli
│ ├── author.md
│ ├── compile.md
│ ├── index.md
│ ├── init.md
│ ├── install.md
│ ├── login.md
│ ├── publish.md
│ ├── tag.md
│ ├── uninstall.md
│ └── unpublish.md
├── getting-started
│ └── index.md
└── index.yml
├── package-lock.json
├── package.json
├── sierra-github.css
├── sierra-npm.css
├── sierra.css
├── src
├── cli
│ ├── diamond-author.js
│ ├── diamond-compile.js
│ ├── diamond-config.js
│ ├── diamond-init.js
│ ├── diamond-install.js
│ ├── diamond-login.js
│ ├── diamond-publish.js
│ ├── diamond-tag.js
│ ├── diamond-uninstall.js
│ ├── diamond-unpublish.js
│ └── diamond.js
├── exports.js
├── functions
│ ├── autoload.js
│ ├── compile
│ │ ├── index.js
│ │ ├── less.js
│ │ ├── sass.js
│ │ └── stylus.js
│ ├── error.js
│ ├── install
│ │ ├── diamond.js
│ │ ├── github.js
│ │ ├── gitlab.js
│ │ ├── index.js
│ │ └── npm.js
│ ├── loadConfig.js
│ ├── parsePackageObject.js
│ └── parsePackageString.js
├── importers
│ └── index.js
├── misc
│ └── userAgent.js
└── views
│ ├── error.html
│ └── success.html
└── test
├── npm.sh
├── sierra-github
├── test.css
├── test.less
├── test.less.css
├── test.sass
├── test.sass.css
├── test.styl
└── test.styl.css
├── sierra-npm
├── test.css
├── test.less
├── test.less.css
├── test.sass
├── test.sass.css
├── test.styl
└── test.styl.css
├── sierra
├── test.css
├── test.less
├── test.less.css
├── test.sass
├── test.sass.css
├── test.styl
└── test.styl.css
├── test.js
└── test.sh
/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "airbnb-base",
3 | "plugins": [
4 | "import"
5 | ],
6 | "parserOptions": {
7 | "emcaVersion": 6
8 | },
9 | "env": {
10 | "es6": true,
11 | "node": true
12 | },
13 | "rules": {
14 | "strict": 0,
15 | "no-restricted-syntax": 0,
16 | "no-loop-func": 0,
17 | "no-continue": 0,
18 | "global-require": 0,
19 | "import/no-dynamic-require": 0,
20 | "no-console": 2,
21 | "no-param-reassign": 0,
22 | "class-methods-use-this": 0,
23 | "guard-for-in": 0,
24 | "no-return-assign": 0,
25 | "comma-dangle": ["error", {
26 | "arrays": "always-multiline",
27 | "objects": "always-multiline",
28 | "imports": "always-multiline",
29 | "exports": "always-multiline",
30 | "functions": "ignore"
31 | }]
32 | }
33 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | diamond
2 | node_modules
3 | npm-debug.log*
4 | .diaignore
5 | diamond-config.yml
6 | diamond.json
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "4"
4 | - "5"
5 | - "6"
6 | - "7"
7 | before_install: bash test/npm.sh
8 | install:
9 | - npm i
10 | - npm link
11 | cache:
12 | directories:
13 | - node_modules
14 | - /home/travis/.diamond
15 | matrix:
16 | include:
17 | - node_js: "8"
18 | env:
19 | - CXX=g++-4.8
20 | addons:
21 | apt:
22 | sources:
23 | - ubuntu-toolchain-r-test
24 | packages:
25 | - g++-4.8
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
Logo by @aemino
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | ## Supported Environments
22 | diamond supports node 4, 5, 6, 7 and 8 **with npm 3, 4, or 5** (Note: node 4 comes with npm **2**)
23 |
24 | ## Introduction
25 | diamond is a package manager for Sass and Less. diamond allows you to mix and match (most of the time) Sass and
26 | Less packages. You can also ship custom functions to be run after compiling, or even Less plugins and Sass importers
27 | and functions.
28 |
29 | ## Usage
30 | Read the [Getting Started Docs](https://diamondpkg.org/#/docs/getting-started) and [CLI Docs](https://diamondpkg.org/#/docs/cli).
31 |
32 | ## Prior Art
33 | diamond was inspired by
34 | * [yarn](https://yarnpkg.org)
35 | * [npm](https://npmjs.com)
--------------------------------------------------------------------------------
/docs/cli/author.md:
--------------------------------------------------------------------------------
1 | ## Synopsis
2 | ```
3 | diamond author ls
4 | diamond author add
5 | diamond author rm
6 | ```
7 |
8 | ## Description
9 | Add, remove, or list authors of a package.
10 |
11 |
12 | ## Commands
13 | ### `diamond author ls `
14 |
15 | Lists a package's authors.
16 |
17 | ```
18 | diamond author ls caramel
19 | ```
20 |
21 | ```
22 | hackzzila
23 | ```
24 |
25 | ### `diamond author add `
26 |
27 | Adds a package author.
28 |
29 | ```
30 | diamond author add caramel kurisubrooks
31 | ```
32 |
33 | ```
34 | diamond author ls caramel
35 | ```
36 |
37 | ```
38 | hackzzila
39 | kurisubrooks
40 | ```
41 |
42 | ### `diamond author rm `
43 |
44 | Removes an author.
45 |
46 |
47 | ```
48 | diamond author rm kurisubrooks
49 | ```
50 |
51 | ```
52 | diamond author ls caramel
53 | ```
54 |
55 | ```
56 | hackzzila
57 | ```
--------------------------------------------------------------------------------
/docs/cli/compile.md:
--------------------------------------------------------------------------------
1 | ## Synopsis
2 | ```
3 | diamond compile
4 | diamond compile --output