Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

can-compile

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-compile - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

.jshintrc

49

Gruntfile.js

@@ -5,33 +5,28 @@ 'use strict';

// Project configuration.
grunt.initConfig({
jshint: {
all: {
src: ['grunt.js', 'tasks/**/*.js', 'lib/**/*.js', 'test/**/*.js'],
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
node: true
},
globals: {
exports: true
}
}
},
// Project configuration.
grunt.initConfig({
simplemocha: {
options: {
timeout: 10000
},
app: {
src: ['test/**/*.js']
}
},
jshint: {
options: {
jshintrc: '.jshintrc'
},
lib: ['lib/**/*.js', 'Gruntfile.js'],
test: ['test/**/*.js']
},
release: {}
});
});
// Default task.
grunt.registerTask('default', 'jshint');
grunt.registerTask('default', 'test');
grunt.registerTask('test', [ 'jshint', 'simplemocha' ]);
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-release');
};

@@ -12,3 +12,3 @@ 'use strict';

// Normalize ids to filenames relative to the output file
var normalizer = function (filename) {
var normalizer = configuration.normalizer || function (filename) {
return path.relative(path.dirname(configuration.out), filename);

@@ -15,0 +15,0 @@ };

{
"name": "can-compile",
"description": "Compile CanJS Mustache and EJS views for lightning fast production apps",
"version": "0.4.0",
"version": "0.4.1",
"homepage": "http://daffl.github.com/can-compile",

@@ -13,3 +13,3 @@ "author": {

"scripts": {
"test": "mocha test"
"test": "grunt test"
},

@@ -34,4 +34,6 @@ "engines": {

"grunt": "~ 0.4.0",
"grunt-cli": "~0.1.9",
"grunt-contrib-jshint": ">= 0.1.1",
"grunt-release": "~0.5.1"
"grunt-release": "~0.5.1",
"grunt-simple-mocha": "~0.4.0"
},

@@ -38,0 +40,0 @@ "dependencies": {

# can-compile
[![Build Status](https://travis-ci.org/daffl/can-compile.png?branch=master)](https://travis-ci.org/daffl/can-compile)
NodeJS module that compiles [CanJS](http://canjs.us/) EJS and Mustache views into a single JavaScript file for lightning fast

@@ -122,5 +124,4 @@ production apps.

```javascript
```js
module.exports = function (grunt) {
// Project configuration.

@@ -139,2 +140,19 @@ grunt.initConfig({

To load the generated files only when running the [RequireJS optimizer r.js](http://requirejs.org/docs/optimization.html)
define an empty module in development like:
```js
define('views', function() {});
```
And `require('views');` in your main application file.
When running the optimizer map this module to the production build file:
```js
paths: {
views: 'views.production'
}
```
## Note

@@ -150,2 +168,6 @@

__0.4.1:__
- Merged [#10](https://github.com/daffl/can-compile/pull/10): Allow for setting a custom normalizer
__0.4.0:__

@@ -181,3 +203,1 @@

- Initial release
[![Build Status](https://travis-ci.org/daffl/can-compile.png?branch=master)](https://travis-ci.org/daffl/can-compile)

@@ -42,3 +42,3 @@ /*global describe, it */

expected['latest'] = expected['2.0.0'];
expected.latest = expected['2.0.0'];

@@ -45,0 +45,0 @@ var normalizer = function (filename) {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc