forked from karlisup/component-library-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
57 lines (57 loc) · 2.88 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"name": "component-library-core",
"description": "Flexible component library generator core",
"version": "1.0.9",
"homepage": "https://github.com/karlisup/component-library-core",
"main": "index.js",
"dependencies": {
"better-console": "^0.2.4",
"graceful-fs": "^4.1.3",
"highlight": "^0.2.4",
"marked": "^0.3.5",
"mkdirp": "^0.5.1",
"showdown": "^1.3.0",
"twig": "^0.8.9",
"watch": "^0.17.1"
},
"devDependencies": {
"coveralls": "^2.7.0",
"istanbul": "^0.3.0",
"mocha": "^2.0.1",
"mocha-lcov-reporter": "^0.0.1",
"chai": "^3.5.0",
"util": "^0.10.3",
"jshint": "^2.9.2"
},
"scripts": {
"lint": "jshint . --reporter=./node_modules/jshint-full-path/index.js",
"test": "mocha --reporter spec",
"coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
},
"repository": {
"type": "git",
"url": "git+https://github.com/karlisup/component-library-core.git"
},
"keywords": [
"component",
"pattern",
"library",
"styleguide",
"styletiles",
"css"
],
"author": {
"name": "Karlis Upitis",
"email": "[email protected]"
},
"readme": "# Component Library Generator core\nIt does the dirty job. In `components` folder, for each template file (.twig, .hb, .mustache, .tt2, etc.)\n* description (.md)\n* test data (.json)\nis been added.\nReturns\na) documentation\nb) how does component looks like in iframe (so you can put e.g. 'position: fixed' elements in there)\nc) see raw template / style (.sass, .less) / data \n\n\n## Steps\nSimple things it does:\n* get / set options\n ```javascript\n module.exports = function (options) {\n var opts = options || {}\n \n opts.location = (opts.location) ? opts.location : {}\n opts.extensions = (opts.extensions) ? opts.extensions : {}\n \n opts.location.root = opts.location.root || '/'\n opts.location.src = opts.location.src || '..\\\\..\\\\src\\\\components\\\\'\n opts.location.dest = opts.location.dest || '..\\\\..\\\\dest\\\\components\\\\'\n opts.location.styleguide = opts.location.styleguide || '..\\\\..\\\\src\\\\styleguide\\\\'\n \n opts.extensions.template = opts.extensions.template || '.twig'\n opts.extensions.output = opts.extensions.output || '.html'\n \n return opts\n }\n ```\n* saves components from folder into JSON\n* renders\n * component (documentation, navigation)\n * raw.component\n * dashboard (could be style guidelines or any other components you want to highlight) \n",
"readmeFilename": "README.md",
"gitHead": "65b4616b0689e657fe3cddeec093c880fed71ef7",
"_id": "[email protected]",
"_shasum": "7cfaa9b6ced8ab939ba95c26d7bfbd5d7bc4f066",
"_from": "component-library-core@*",
"license": "MIT",
"bugs": {
"url": "https://github.com/karlisup/component-library-core/issues"
}
}