Skip to content

Commit

Permalink
ES6 rewrite.
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonmoeller committed Apr 30, 2015
1 parent 2991965 commit 15c0d13
Show file tree
Hide file tree
Showing 32 changed files with 1,054 additions and 1,291 deletions.
239 changes: 239 additions & 0 deletions .eslintrc

Large diffs are not rendered by default.

85 changes: 0 additions & 85 deletions .jscsrc

This file was deleted.

74 changes: 0 additions & 74 deletions .jshintrc

This file was deleted.

20 changes: 0 additions & 20 deletions LICENSE

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
@@ -1,3 +1,5 @@
**NOTE: This project is under active development. APIs subject to change.**

# `toga-css`

[![NPM version][npm-img]][npm-url] [![Downloads][downloads-img]][npm-url] [![Build Status][travis-img]][travis-url] [![Coverage Status][coveralls-img]][coveralls-url] [![Chat][gitter-img]][gitter-url]
Expand Down Expand Up @@ -41,7 +43,7 @@ Standards for this project, including tests, code coverage, and semantics are en

----

© 2014 Shannon Moeller <me@shannonmoeller.com>
© 2015 Shannon Moeller <me@shannonmoeller.com>

Licensed under [MIT](http://shannonmoeller.com/mit.txt)

Expand Down
40 changes: 0 additions & 40 deletions gulpfile.js

This file was deleted.

29 changes: 13 additions & 16 deletions index.js
@@ -1,5 +1,3 @@
'use strict';

/**
* # Toga CSS Parser
*
Expand All @@ -14,20 +12,19 @@
* - scss
*/

var tunic = require('tunic'),
mixin = require('mtil/object/mixin'),
import Tunic from 'tunic';
import mixin from 'mtil/object/mixin';

/** Default options. */
defaults = {
extension: /.(css|less|scss)$/,
namedTags: [
'module',
'extends'
]
};
var parserDefaults = {
extension: /.(css|less|scss)$/,
namedTags: [
'module',
'extends'
]
};

exports.parser = function (options) {
options = mixin({}, defaults, options);
export function parser(options) {
options = mixin({}, parserDefaults, options);

return tunic(options);
};
return new Tunic(options);
}
26 changes: 15 additions & 11 deletions package.json
Expand Up @@ -29,18 +29,22 @@
"tunic": "^0.3.0"
},
"devDependencies": {
"babel": "^5.1.13",
"coveralls": "^2.11.2",
"event-stream": "^3.1.7",
"expect.js": "^0.3.1",
"gulp": "^3.8.10",
"gulp-istanbul": "^0.5.0",
"gulp-jscs": "^1.3.1",
"gulp-jshint": "^1.9.0",
"gulp-mocha": "^2.0.0",
"jshint-stylish": "^1.0.0",
"toga": "^0.3.2"
"eslint": "^0.20.0",
"expect": "^1.6.0",
"isparta": "^3.0.3",
"mocha": "^2.2.4",
"nodemon": "^1.3.7",
"stream-array": "^1.1.0",
"vinyl-fs": "^1.0.0"
},
"engines": {
"node": ">= 0.10"
"scripts": {
"build": "babel index.js --out-file dist/index.js",
"cover": "babel-node ./node_modules/.bin/isparta cover --include index.js --reporter text --reporter lcov ./node_modules/.bin/_mocha -- test/*.js",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"lint": "eslint index.js test/*.js",
"test": "npm run lint && npm run cover",
"watch": "nodemon --exec 'npm run test' --watch index.js --watch test"
}
}

0 comments on commit 15c0d13

Please sign in to comment.