Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
57 lines (57 loc) · 5.02 KB
/
Copy pathpackage.json
File metadata and controls
57 lines (57 loc) · 5.02 KB
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": "grunt-jade",
"description": "Compile jade templates with grunt.",
"version": "0.4.0",
"homepage": "https://github.com/phated/grunt-jade",
"author": {
"name": "Blaine Bublitz",
"email": "blaine@iceddev.com",
"url": "iceddev.com"
},
"repository": {
"type": "git",
"url": "git://github.com/phated/grunt-jade.git"
},
"bugs": {
"url": "https://github.com/phated/grunt-jade/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/phated/grunt-jade/blob/master/LICENSE-MIT"
}
],
"main": "grunt.js",
"bin": {
"grunt-jade": "bin/grunt-jade"
},
"engines": {
"node": ">= 0.8.0"
},
"scripts": {
"test": "grunt test"
},
"dependencies": {
"jade": "~0.28.1"
},
"peerDependencies": {
"grunt": "~0.4.0"
},
"devDependencies": {
"grunt": "~0.4.0",
"grunt-contrib-clean": "~0.4.0",
"grunt-contrib-jshint": "~0.1.1",
"grunt-contrib-watch": "~0.2.0",
"grunt-contrib-nodeunit": "~0.1.2",
"grunt-cli": "~0.1.6"
},
"keywords": [
"gruntplugin"
],
"readme": "# grunt-jade [](http://travis-ci.org/phated/grunt-jade)\n\nCompile jade templates with grunt.\n\n## Notices\n\nThis plugin requires Grunt `~0.4.0`\n\nIf you are looking for the version of this that works in Grunt `~0.3.0`, use version `0.3.9`\n\n## Getting Started\nInstall this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with: `npm install grunt-jade`\n\nThen add this line to your project's `grunt.js` gruntfile:\n\n```javascript\ngrunt.loadNpmTasks('grunt-jade');\n```\n\n[grunt]: https://github.com/cowboy/grunt\n[getting_started]: https://github.com/cowboy/grunt/blob/master/docs/getting_started.md\n\n## Documentation\nTo your [grunt.js gruntfile][getting_started], add:\n\n```javascript\njade: {\n no_options: {\n src: ['path/to/src/*.jade'],\n dest: 'dest/path'\n }\n}\n```\n\nFor AMD compilation, add:\n(`dependencies` is what you want the runtime to be named)\n\n```javascript\njade: {\n amd: {\n src: ['path/to/src/*.jade'],\n dest: 'dest/path',\n wrapper: {\n amd: true,\n dependencies: 'jade'\n }\n }\n}\n```\n\nFor node-style (Modules/1.0) compilation, add:\n(`dependencies` is what you want the runtime to be named)\n\n```javascript\njade: {\n node: {\n src: ['path/to/src/*.jade'],\n dest: 'dest/path',\n wrapper: {\n node: true,\n dependencies: 'runtime'\n }\n }\n}\n```\n\nFor debug compilation, add:\n\n```javascript\njade: {\n debug: {\n src: ['path/to/src/*.jade'],\n dest: 'dest/path',\n options: {\n compileDebug: true\n }\n }\n}\n```\n\nFor HTML compilation (instead of JS), add:\n\n```javascript\njade: {\n html: {\n src: ['path/to/src/*.jade'],\n dest: 'dest/path',\n options: {\n client: false\n }\n }\n}\n```\n\nFor unwrapped functions, add:\n\n```javascript\njade: {\n unwrapped: {\n src: ['path/to/src/*.jade'],\n dest: 'dest/path/',\n wrapper: {\n wrap: false\n }\n }\n}\n```\n\nTo keep directory structure, use basePath:\n\n```javascript\njade: {\n base_path: {\n files: {\n 'dest/path/': ['path/to/src/*.jade'],\n },\n options: {\n basePath: 'path/to/'\n }\n }\n}\n```\n\nFor no runtime file, add:\n\n```javascript\njade: {\n no_runtime: {\n src: ['path/to/src/*.jade'],\n dest: 'dest/path/',\n options: {\n runtime: false,\n }\n }\n}\n```\n\nFor locals, add:\n\n```javascript\njade: {\n locals: {\n src: ['path/to/src/*.jade'],\n dest: 'dest/path/',\n options: {\n client: false,\n locals: {\n title: 'Welcome to my website!'\n }\n }\n }\n}\n```\n\nOr alternatively, use a function:\n\n```javascript\njade: {\n locals: {\n src: ['path/to/src/*.jade'],\n dest: 'dest/path/',\n options: {\n client: false,\n locals: function() {\n return {compiledAt: new Date()};\n }\n }\n }\n}\n```\nThis is useful when you are also using the watch task, since the function will\nbe called on each reload.\n\nFor custom extension, add:\n\n```javascript\njade: {\n custom_extension: {\n src: ['path/to/src/*.jade'],\n dest: 'dest/path/',\n options: {\n extension: '.xml',\n }\n }\n}\n```\n\n## Defaults\n\n```javascript\noptions: {\n client: true,\n runtime: true,\n compileDebug: false,\n locals: {},\n extension: null,\n basePath: null\n}\n\nwrapper: {\n wrap: true,\n amd: false,\n dependencies: ''\n}\n```\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt][grunt].\n\n## Release History\n_(Nothing yet)_\n\n## License\nCopyright (c) 2013 Blaine Bublitz\nLicensed under the MIT license.\n",
"readmeFilename": "README.md",
"_id": "grunt-jade@0.4.0",
"_shasum": "fcedadb245afa974b5f97da0c23c20402c05923f",
"_from": "grunt-jade@~0.4.0",
"_resolved": "http://registry.npmjs.org/grunt-jade/-/grunt-jade-0.4.0.tgz"
}