Skip to content

Commit

Permalink
Prepring npm release
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Apr 26, 2016
1 parent 78dd0fd commit 6342a33
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 36 deletions.
15 changes: 7 additions & 8 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"globals": {
"steal": true,
"can": true,
"Zepto": true,
"QUnit": true,
"System": true,
"SimpleDOM": true,
Expand All @@ -14,22 +13,25 @@
"equal": true,
"notEqual": true,
"deepEqual": true,
"propEqual": true,
"notDeepEqual": true,
"strictEqual": true,
"notStrictEqual": true,
"raises": true,
"start": true,
"stop": true,
"global": true
"global": true,
"Promise": true
},
"strict": false,
"curly": true,
"eqeqeq": true,
"freeze": true,
"indent": 2,
"latedef": true,
"latedef": false,
"noarg": true,
"undef": true,
"unused": true,
"unused": "vars",
"trailing": true,
"maxdepth": 4,
"boss" : true,
Expand All @@ -41,10 +43,7 @@
"jquery": true,
"dojo": true,
"mootools": true,
"yui": true,
"browser": true,
"phantom": true,
"rhino": true,
"node": true,
"esnext": true
"node": true
}
21 changes: 3 additions & 18 deletions can-stache.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

var parser = require('can-view-parser');
var viewCallbacks = require('can-view-callbacks');
var target = require('can-view-target');
var nodeLists = require('can-view-nodelist');

var HTMLSectionBuilder = require('./src/html_section');
var TextSectionBuilder = require('./src/text_section');
Expand All @@ -16,6 +14,9 @@ var assign = require('can-util/js/assign/assign');
var last = require('can-util/js/last/last');
// Make sure that we can also use our modules with Stache as a plugin

require('can-view-target');
require('can-view-nodelist');

var svgNamespace = "http://www.w3.org/2000/svg";
var namespaces = {
"svg": svgNamespace,
Expand Down Expand Up @@ -336,22 +337,6 @@ function stache(template){

return section.compile();
}
var escMap = {
'\n': "\\n",
'\r': "\\r",
'\u2028': "\\u2028",
'\u2029': "\\u2029"
};
var esc = function(string){
return ('' + string).replace(/["'\\\n\r\u2028\u2029]/g, function (character) {
if("'\"\\".indexOf(character) >= 0) {
return "\\"+character;
} else {
return escMap[character];
}
});
};


// At this point, can.stache has been created
assign(stache, mustacheHelpers);
Expand Down
25 changes: 15 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"name": "can-stache",
"version": "0.0.0",
"version": "3.0.0-pre.0",
"description": "Live binding handlebars templates",
"homepage": "http://canjs.com",
"repository": {
"type": "git",
"url": "git://github.com/cajs/can-stache.git"
},
"author": {
"name": "Bitovi",
"email": "contact@bitovi.com",
Expand All @@ -15,6 +19,7 @@
"testee": "testee test/test.html --browsers firefox",
"test": "npm run jshint && npm run testee",
"jshint": "jshint ./*.js --config",
"release:pre": "npm version prerelease && npm publish",
"release:patch": "npm version patch && npm publish",
"release:minor": "npm version minor && npm publish",
"release:major": "npm version major && npm publish",
Expand Down Expand Up @@ -52,15 +57,15 @@
"npmAlgorithm": "flat"
},
"dependencies": {
"can-view-live": "canjs/can-view-live#master",
"can-view-nodelist": "canjs/can-view-nodelist#master",
"can-view-parser": "canjs/can-view-parser#master",
"can-view-scope": "canjs/can-view-scope#master",
"can-view-target": "canjs/can-view-target#master",
"can-view-callbacks": "canjs/can-view-callbacks#master",
"can-compute": "^3.0.0-pre.1",
"can-observe-info": "^3.0.0-pre.4",
"can-util": "^3.0.0-pre.3"
"can-compute": "^3.0.0-pre.1",
"can-observe-info": "^3.0.0-pre.4",
"can-util": "^3.0.0-pre.3",
"can-view-callbacks": "^3.0.0-pre.1",
"can-view-live": "^3.0.0-pre.1",
"can-view-nodelist": "^3.0.0-pre.1",
"can-view-parser": "^3.0.0-pre.1",
"can-view-scope": "^3.0.0-pre.2",
"can-view-target": "^3.0.0-pre.1"
},
"devDependencies": {
"can-map": "^3.0.0-pre.2",
Expand Down

0 comments on commit 6342a33

Please sign in to comment.