Comparing version 0.0.3 to 0.0.4
License (MIT) | ||
------------- | ||
Copyright (c) 2013 Jeff Escalante | ||
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: | ||
@@ -5,0 +7,0 @@ |
{ | ||
"name": "accord", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": "Jeff Escalante <hello@jenius.me>", | ||
@@ -17,3 +17,4 @@ "description": "A unified interface for compiled languages and templates in javascript", | ||
"lodash": "2.x.x", | ||
"glob": "3.x.x" | ||
"glob": "3.x.x", | ||
"uglify-js": "2.x.x" | ||
}, | ||
@@ -32,11 +33,7 @@ "devDependencies": { | ||
"clean-css": "*", | ||
"html-minifier": "*", | ||
"gulp": "3.x.x", | ||
"gulp-coffee": "1.x.x" | ||
"html-minifier": "*" | ||
}, | ||
"scripts": { | ||
"test": "mocha", | ||
"prepublish": "mv lib/ src; gulp build", | ||
"postpublish": "rm -rf lib; mv src/ lib" | ||
"test": "mocha" | ||
} | ||
} |
@@ -39,5 +39,5 @@ accord | ||
# or precompile a string | ||
# (only a few compilers support precompile right now, see below) | ||
jade.precompile('body\n .test') | ||
# or compile a string to a function | ||
# (only some to-html compilers support this, see below) | ||
jade.compile('body\n .test') | ||
.catch(console.error.bind(console)) | ||
@@ -47,6 +47,16 @@ .done (res) -> console.log(res.toString()) | ||
# or a file | ||
jade.precompileFile('./example.jade') | ||
jade.compileFile('./example.jade') | ||
.catch(console.error.bind(console)) | ||
.done (res) -> console.log(res.toString()) | ||
# compile a client-side js template | ||
jade.compileClient('body\n .test') | ||
.catch(console.error.bind(console)) | ||
.done (res) -> console.log(res.toString()) | ||
# or a file | ||
jade.compileFileClient('./example.jade') | ||
.catch(console.error.bind(console)) | ||
.done (res) -> console.log(res.toString()) | ||
``` | ||
@@ -64,6 +74,8 @@ | ||
- `adapter.render(string, options)` - render a string | ||
- `adapter.renderFile(path, options)` - render a file | ||
- `adapter.precompile(string, options)` - precompile a string if the adapter has precompile support | ||
- `adapter.precompileFile(path, options)` - precompile a file if the adapter has precompile support | ||
- `adapter.render(string, options)` - render a string to a compiled string | ||
- `adapter.renderFile(path, options)` - render a file to a compiled string | ||
- `adapter.compile(string, options)` - compile a string to a function | ||
- `adapter.precompileFile(path, options)` - compile a file to a function | ||
- `adapter.compileClient(string, options)` - compile a string to a client-side-ready function | ||
- `adapter.compileFileClient(string, options)` - compile a file to a client-side-ready function | ||
- `adapter.extensions` - array of all file extensions the compiler should match | ||
@@ -70,0 +82,0 @@ - `adapter.output` - string, expected output extension |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
12
135
0
39500
6
90
49
+ Addeduglify-js@2.x.x
+ Addedalign-text@0.1.4(transitive)
+ Addedcamelcase@1.2.1(transitive)
+ Addedcenter-align@0.1.3(transitive)
+ Addedcliui@2.1.0(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedkind-of@3.2.2(transitive)
+ Addedlazy-cache@1.0.4(transitive)
+ Addedlongest@1.0.1(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedright-align@0.1.3(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addeduglify-js@2.8.29(transitive)
+ Addeduglify-to-browserify@1.0.2(transitive)
+ Addedwindow-size@0.1.0(transitive)
+ Addedwordwrap@0.0.2(transitive)
+ Addedyargs@3.10.0(transitive)