mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 10:52:47 +00:00
updated bunch of file paths and changed the way posts are loaded
This commit is contained in:
6
node_modules/css-stringify/.npmignore
generated
vendored
Normal file
6
node_modules/css-stringify/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
support
|
||||
test
|
||||
examples
|
||||
*.sock
|
||||
test.css
|
||||
test.js
|
||||
30
node_modules/css-stringify/History.md
generated
vendored
Normal file
30
node_modules/css-stringify/History.md
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
1.0.5 / 2013-03-15
|
||||
==================
|
||||
|
||||
* fix indentation of multiple selectors in @media. Closes #11
|
||||
|
||||
1.0.4 / 2012-11-15
|
||||
==================
|
||||
|
||||
* fix indentation
|
||||
|
||||
1.0.3 / 2012-09-04
|
||||
==================
|
||||
|
||||
* add __@charset__ support [rstacruz]
|
||||
|
||||
1.0.2 / 2012-09-01
|
||||
==================
|
||||
|
||||
* add component support
|
||||
|
||||
1.0.1 / 2012-07-26
|
||||
==================
|
||||
|
||||
* add "selectors" array support
|
||||
|
||||
0.0.1 / 2010-01-03
|
||||
==================
|
||||
|
||||
* Initial release
|
||||
7
node_modules/css-stringify/Makefile
generated
vendored
Normal file
7
node_modules/css-stringify/Makefile
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
test:
|
||||
@./node_modules/.bin/mocha \
|
||||
--require should \
|
||||
--reporter spec
|
||||
|
||||
.PHONY: test
|
||||
33
node_modules/css-stringify/Readme.md
generated
vendored
Normal file
33
node_modules/css-stringify/Readme.md
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
# css-stringify
|
||||
|
||||
CSS compiler using the AST provided by [css-parse](https://github.com/visionmedia/css-parse).
|
||||
|
||||
## Performance
|
||||
|
||||
Formats 15,000 lines of CSS (2mb) in 23ms on my macbook air.
|
||||
|
||||
## License
|
||||
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2012 TJ Holowaychuk <tj@vision-media.ca>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
8
node_modules/css-stringify/component.json
generated
vendored
Normal file
8
node_modules/css-stringify/component.json
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "css-stringify",
|
||||
"repo": "visionmedia/css-stringify",
|
||||
"version": "1.0.5",
|
||||
"description": "CSS compiler",
|
||||
"keywords": ["css", "stringify", "stylesheet"],
|
||||
"scripts": ["index.js"]
|
||||
}
|
||||
182
node_modules/css-stringify/index.js
generated
vendored
Normal file
182
node_modules/css-stringify/index.js
generated
vendored
Normal file
@@ -0,0 +1,182 @@
|
||||
|
||||
/**
|
||||
* Stringfy the given AST `node`.
|
||||
*
|
||||
* @param {Object} node
|
||||
* @param {Object} options
|
||||
* @return {String}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
module.exports = function(node, options){
|
||||
return new Compiler(options).compile(node);
|
||||
};
|
||||
|
||||
/**
|
||||
* Initialize a new `Compiler`.
|
||||
*/
|
||||
|
||||
function Compiler(options) {
|
||||
options = options || {};
|
||||
this.compress = options.compress;
|
||||
this.indentation = options.indent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Compile `node`.
|
||||
*/
|
||||
|
||||
Compiler.prototype.compile = function(node){
|
||||
return node.stylesheet.rules.map(this.visit, this)
|
||||
.join(this.compress ? '' : '\n\n');
|
||||
};
|
||||
|
||||
/**
|
||||
* Visit `node`.
|
||||
*/
|
||||
|
||||
Compiler.prototype.visit = function(node){
|
||||
if (node.charset) return this.charset(node);
|
||||
if (node.keyframes) return this.keyframes(node);
|
||||
if (node.media) return this.media(node);
|
||||
if (node.import) return this.import(node);
|
||||
return this.rule(node);
|
||||
};
|
||||
|
||||
/**
|
||||
* Visit import node.
|
||||
*/
|
||||
|
||||
Compiler.prototype.import = function(node){
|
||||
return '@import ' + node.import + ';';
|
||||
};
|
||||
|
||||
/**
|
||||
* Visit media node.
|
||||
*/
|
||||
|
||||
Compiler.prototype.media = function(node){
|
||||
if (this.compress) {
|
||||
return '@media '
|
||||
+ node.media
|
||||
+ '{'
|
||||
+ node.rules.map(this.visit, this).join('')
|
||||
+ '}';
|
||||
}
|
||||
|
||||
return '@media '
|
||||
+ node.media
|
||||
+ ' {\n'
|
||||
+ this.indent(1)
|
||||
+ node.rules.map(this.visit, this).join('\n\n')
|
||||
+ this.indent(-1)
|
||||
+ '\n}';
|
||||
};
|
||||
|
||||
/**
|
||||
* Visit charset node.
|
||||
*/
|
||||
|
||||
Compiler.prototype.charset = function(node){
|
||||
if (this.compress) {
|
||||
return '@charset ' + node.charset + ';';
|
||||
}
|
||||
|
||||
return '@charset ' + node.charset + ';\n';
|
||||
};
|
||||
|
||||
/**
|
||||
* Visit keyframes node.
|
||||
*/
|
||||
|
||||
Compiler.prototype.keyframes = function(node){
|
||||
if (this.compress) {
|
||||
return '@'
|
||||
+ (node.vendor || '')
|
||||
+ 'keyframes '
|
||||
+ node.name
|
||||
+ '{'
|
||||
+ node.keyframes.map(this.keyframe, this).join('')
|
||||
+ '}';
|
||||
}
|
||||
|
||||
return '@'
|
||||
+ (node.vendor || '')
|
||||
+ 'keyframes '
|
||||
+ node.name
|
||||
+ ' {\n'
|
||||
+ this.indent(1)
|
||||
+ node.keyframes.map(this.keyframe, this).join('\n')
|
||||
+ this.indent(-1)
|
||||
+ '}';
|
||||
};
|
||||
|
||||
/**
|
||||
* Visit keyframe node.
|
||||
*/
|
||||
|
||||
Compiler.prototype.keyframe = function(node){
|
||||
if (this.compress) {
|
||||
return node.values.join(',')
|
||||
+ '{'
|
||||
+ node.declarations.map(this.declaration, this).join(';')
|
||||
+ '}';
|
||||
}
|
||||
|
||||
return this.indent()
|
||||
+ node.values.join(', ')
|
||||
+ ' {\n'
|
||||
+ this.indent(1)
|
||||
+ node.declarations.map(this.declaration, this).join(';\n')
|
||||
+ this.indent(-1)
|
||||
+ '\n' + this.indent() + '}\n';
|
||||
};
|
||||
|
||||
/**
|
||||
* Visit rule node.
|
||||
*/
|
||||
|
||||
Compiler.prototype.rule = function(node){
|
||||
var indent = this.indent();
|
||||
|
||||
if (this.compress) {
|
||||
return node.selectors.join(',')
|
||||
+ '{'
|
||||
+ node.declarations.map(this.declaration, this).join(';')
|
||||
+ '}';
|
||||
}
|
||||
|
||||
return node.selectors.map(function(s){ return indent + s }).join(',\n')
|
||||
+ ' {\n'
|
||||
+ this.indent(1)
|
||||
+ node.declarations.map(this.declaration, this).join(';\n')
|
||||
+ this.indent(-1)
|
||||
+ '\n' + this.indent() + '}';
|
||||
};
|
||||
|
||||
/**
|
||||
* Visit declaration node.
|
||||
*/
|
||||
|
||||
Compiler.prototype.declaration = function(node){
|
||||
if (this.compress) {
|
||||
return node.property + ':' + node.value;
|
||||
}
|
||||
|
||||
return this.indent() + node.property + ': ' + node.value;
|
||||
};
|
||||
|
||||
/**
|
||||
* Increase, decrease or return current indentation.
|
||||
*/
|
||||
|
||||
Compiler.prototype.indent = function(level) {
|
||||
this.level = this.level || 1;
|
||||
|
||||
if (null != level) {
|
||||
this.level += level;
|
||||
return '';
|
||||
}
|
||||
|
||||
return Array(this.level).join(this.indentation || ' ');
|
||||
};
|
||||
67
node_modules/css-stringify/package.json
generated
vendored
Normal file
67
node_modules/css-stringify/package.json
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"css-stringify@1.0.5",
|
||||
"/home/mitchell/Desktop/test-mywebsite/mywebsite/node_modules/css"
|
||||
]
|
||||
],
|
||||
"_from": "css-stringify@1.0.5",
|
||||
"_id": "css-stringify@1.0.5",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/css-stringify",
|
||||
"_npmUser": {
|
||||
"email": "tj@vision-media.ca",
|
||||
"name": "tjholowaychuk"
|
||||
},
|
||||
"_npmVersion": "1.2.14",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "css-stringify",
|
||||
"raw": "css-stringify@1.0.5",
|
||||
"rawSpec": "1.0.5",
|
||||
"scope": null,
|
||||
"spec": "1.0.5",
|
||||
"type": "version"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/css"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/css-stringify/-/css-stringify-1.0.5.tgz",
|
||||
"_shasum": "b0d042946db2953bb9d292900a6cb5f6d0122031",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "css-stringify@1.0.5",
|
||||
"_where": "/home/mitchell/Desktop/test-mywebsite/mywebsite/node_modules/css",
|
||||
"author": {
|
||||
"email": "tj@vision-media.ca",
|
||||
"name": "TJ Holowaychuk"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "CSS compiler",
|
||||
"devDependencies": {
|
||||
"css-parse": "1.0.3",
|
||||
"mocha": "*",
|
||||
"should": "*"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "b0d042946db2953bb9d292900a6cb5f6d0122031",
|
||||
"tarball": "http://registry.npmjs.org/css-stringify/-/css-stringify-1.0.5.tgz"
|
||||
},
|
||||
"keywords": [
|
||||
"css",
|
||||
"stringify",
|
||||
"stylesheet"
|
||||
],
|
||||
"main": "index",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "tjholowaychuk",
|
||||
"email": "tj@vision-media.ca"
|
||||
}
|
||||
],
|
||||
"name": "css-stringify",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"version": "1.0.5"
|
||||
}
|
||||
Reference in New Issue
Block a user