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:
4
node_modules/css/.npmignore
generated
vendored
Normal file
4
node_modules/css/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
support
|
||||
test
|
||||
examples
|
||||
*.sock
|
||||
20
node_modules/css/History.md
generated
vendored
Normal file
20
node_modules/css/History.md
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
1.0.7 / 2012-11-21
|
||||
==================
|
||||
|
||||
* fix component.json
|
||||
|
||||
1.0.4 / 2012-11-15
|
||||
==================
|
||||
|
||||
* update css-stringify
|
||||
|
||||
1.0.3 / 2012-09-01
|
||||
==================
|
||||
|
||||
* add component support
|
||||
|
||||
0.0.1 / 2010-01-03
|
||||
==================
|
||||
|
||||
* Initial release
|
||||
8
node_modules/css/Makefile
generated
vendored
Normal file
8
node_modules/css/Makefile
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
test:
|
||||
@node test
|
||||
|
||||
benchmark:
|
||||
@node benchmark
|
||||
|
||||
.PHONY: test benchmark
|
||||
77
node_modules/css/Readme.md
generated
vendored
Normal file
77
node_modules/css/Readme.md
generated
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
|
||||
# css
|
||||
|
||||
CSS parser / stringifier using [css-parse](https://github.com/visionmedia/css-parse) and [css-stringify](https://github.com/visionmedia/css-stringify).
|
||||
|
||||
## Installation
|
||||
|
||||
$ npm install css
|
||||
|
||||
## Example
|
||||
|
||||
js:
|
||||
|
||||
```js
|
||||
var css = require('css')
|
||||
var obj = css.parse('tobi { name: "tobi" }')
|
||||
css.stringify(obj);
|
||||
```
|
||||
|
||||
object returned by `.parse()`:
|
||||
|
||||
```json
|
||||
{
|
||||
"stylesheet": {
|
||||
"rules": [
|
||||
{
|
||||
"selector": "tobi",
|
||||
"declarations": [
|
||||
{
|
||||
"property": "name",
|
||||
"value": "tobi"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
string returned by `.stringify(ast)`:
|
||||
|
||||
```css
|
||||
tobi {
|
||||
name: tobi;
|
||||
}
|
||||
```
|
||||
|
||||
string returned by `.stringify(ast, { compress: true })`:
|
||||
|
||||
```css
|
||||
tobi{name:tobi}
|
||||
```
|
||||
|
||||
## 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.
|
||||
36
node_modules/css/benchmark.js
generated
vendored
Normal file
36
node_modules/css/benchmark.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
var css = require('./')
|
||||
, fs = require('fs')
|
||||
, read = fs.readFileSync
|
||||
, str = read('examples/ui.css', 'utf8');
|
||||
|
||||
var n = 5000;
|
||||
var ops = 200;
|
||||
var t = process.hrtime(t);
|
||||
var results = [];
|
||||
|
||||
while (n--) {
|
||||
css.stringify(css.parse(str));
|
||||
if (n % ops == 0) {
|
||||
t = process.hrtime(t);
|
||||
var ms = t[1] / 1000 / 1000;
|
||||
var persec = (ops * (1000 / ms) | 0);
|
||||
results.push(persec);
|
||||
process.stdout.write('\r [' + persec + ' ops/s] [' + n + ']');
|
||||
t = process.hrtime();
|
||||
}
|
||||
}
|
||||
|
||||
function sum(arr) {
|
||||
return arr.reduce(function(sum, n){
|
||||
return sum + n;
|
||||
});
|
||||
}
|
||||
|
||||
function mean(arr) {
|
||||
return sum(arr) / arr.length | 0;
|
||||
}
|
||||
|
||||
console.log();
|
||||
console.log(' avg: %d ops/s', mean(results));
|
||||
console.log(' size: %d kb', (str.length / 1024).toFixed(2));
|
||||
13
node_modules/css/component.json
generated
vendored
Normal file
13
node_modules/css/component.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "css",
|
||||
"version": "1.0.8",
|
||||
"description": "CSS parser / stringifier using css-parse and css-stringify",
|
||||
"keywords": ["css", "parser", "stylesheet"],
|
||||
"dependencies": {
|
||||
"visionmedia/css-parse": "*",
|
||||
"visionmedia/css-stringify": "*"
|
||||
},
|
||||
"scripts": [
|
||||
"index.js"
|
||||
]
|
||||
}
|
||||
3
node_modules/css/index.js
generated
vendored
Normal file
3
node_modules/css/index.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
exports.parse = require('css-parse');
|
||||
exports.stringify = require('css-stringify');
|
||||
66
node_modules/css/package.json
generated
vendored
Normal file
66
node_modules/css/package.json
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"css@~1.0.8",
|
||||
"/home/mitchell/Desktop/test-mywebsite/mywebsite/node_modules/transformers"
|
||||
]
|
||||
],
|
||||
"_from": "css@>=1.0.8 <1.1.0",
|
||||
"_id": "css@1.0.8",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/css",
|
||||
"_npmUser": {
|
||||
"email": "tj@vision-media.ca",
|
||||
"name": "tjholowaychuk"
|
||||
},
|
||||
"_npmVersion": "1.2.14",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "css",
|
||||
"raw": "css@~1.0.8",
|
||||
"rawSpec": "~1.0.8",
|
||||
"scope": null,
|
||||
"spec": ">=1.0.8 <1.1.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/transformers"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/css/-/css-1.0.8.tgz",
|
||||
"_shasum": "9386811ca82bccc9ee7fb5a732b1e2a317c8a3e7",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "css@~1.0.8",
|
||||
"_where": "/home/mitchell/Desktop/test-mywebsite/mywebsite/node_modules/transformers",
|
||||
"author": {
|
||||
"email": "tj@vision-media.ca",
|
||||
"name": "TJ Holowaychuk"
|
||||
},
|
||||
"dependencies": {
|
||||
"css-parse": "1.0.4",
|
||||
"css-stringify": "1.0.5"
|
||||
},
|
||||
"description": "CSS parser / stringifier using css-parse and css-stringify",
|
||||
"devDependencies": {},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "9386811ca82bccc9ee7fb5a732b1e2a317c8a3e7",
|
||||
"tarball": "http://registry.npmjs.org/css/-/css-1.0.8.tgz"
|
||||
},
|
||||
"keywords": [
|
||||
"css",
|
||||
"parser",
|
||||
"stylesheet"
|
||||
],
|
||||
"main": "index",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "tjholowaychuk",
|
||||
"email": "tj@vision-media.ca"
|
||||
}
|
||||
],
|
||||
"name": "css",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"version": "1.0.8"
|
||||
}
|
||||
6
node_modules/css/test.js
generated
vendored
Normal file
6
node_modules/css/test.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
var css = require('./')
|
||||
, assert = require('assert');
|
||||
|
||||
assert(css.parse);
|
||||
assert(css.stringify);
|
||||
Reference in New Issue
Block a user