ember-tools should ignore .svn/ directories
tfga opened this issue · 1 comments
tfga commented
This is what ends up being generated in js/index.js
:
App..svnEntries = require('./components/.svn/entries');
App..svnAllWcprops = require('./components/.svn/all-wcprops');
App..svnEntries = require('./controllers/.svn/entries');
App..svnAllWcprops = require('./controllers/.svn/all-wcprops');
App..svnEntries = require('./models/.svn/entries');
App..svnAllWcprops = require('./models/.svn/all-wcprops');
App..svnEntries = require('./routes/.svn/entries');
App..svnAllWcprops = require('./routes/.svn/all-wcprops');
App..svnEntries = require('./views/.svn/entries');
App..svnAllWcprops = require('./views/.svn/all-wcprops');
App..svnEntries = require('./mixins/.svn/entries');
App..svnAllWcprops = require('./mixins/.svn/all-wcprops');
-- which obviously doesn't work.
Error: Parsing file /host/tfga/dev/Eclipse/workspace/eGab.Ember/src/main/webapp/ember/js/index.js: Line 10: Unexpected token .
/usr/local/lib/node_modules/ember-tools/src/commands/build.js:101
if (error && !env.watch) throw new Error(error);
^
Error: Error: Command failed: Error: Parsing file /host/tfga/dev/Eclipse/workspace/eGab.Ember/src/main/webapp/ember/js/index.js: Line 10: Unexpected token .
at /usr/local/lib/node_modules/ember-tools/src/commands/build.js:101:36
at ChildProcess.exithandler (child_process.js:544:7)
at ChildProcess.EventEmitter.emit (events.js:99:17)
at maybeClose (child_process.js:638:16)
at Process._handle.onexit (child_process.js:680:5)
tfga commented
It affects js/application.js
too:
$ grep .svn js/*
js/application.js:Ember.TEMPLATES['.svn/entries'] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
js/application.js: data.buffer.push("10\n\ndir\n38966\nhttps://svn.mpdft.gov.br/svn/repo/sistemas/ativos/eGab/branches/infra/eGab.Ember/src/main/webapp/ember/js/templates\nhttps://svn.mpdft.gov.br/svn/repo\n\n\n\n2014-05-14T22:10:08.913271Z\n38931\ntfga\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nefc1a043-6ae7-4d3e-b37c-6746b09e9311\n
\nindex.hbs\nfile\n\n\n\n\n2014-05-14T01:04:18.424721Z\ned6f6d29c8d22796aba2cb966c6017e6\n2014-05-14T22:10:08.913271Z\n38931\ntfga\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n16\n
\napplication.hbs\nfile\n\n\n\n\n2014-05-16T00:46:51.085561Z\n860a4d5dd70f42f5b357da8edd570424\n2014-05-14T22:10:08.913271Z\n38931\ntfga\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n109\n
\n");
js/application.js:Ember.TEMPLATES['.svn/all-wcprops'] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
js/application.js: data.buffer.push("K 25\nsvn:wc:ra_dav:version-url\nV 106\n/svn/repo/!svn/ver/38931/sistemas/ativos/eGab/branches/infra/eGab.Ember/src/main/webapp/ember/js/templates\nEND\napplication.hbs\nK 25\nsvn:wc:ra_dav:version-url\nV 122\n/svn/repo/!svn/ver/38931/sistemas/ativos/eGab/branches/infra/eGab.Ember/src/main/webapp/ember/js/templates/application.hbs\nEND\nindex.hbs\nK 25\nsvn:wc:ra_dav:version-url\nV 116\n/svn/repo/!svn/ver/38931/sistemas/ativos/eGab/branches/infra/eGab.Ember/src/main/webapp/ember/js/templates/index.hbs\nEND\n");
js/application.js:Ember.TEMPLATES['.svn/text-base/index.hbs.svn-base'] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
js/application.js:Ember.TEMPLATES['.svn/text-base/application.hbs.svn-base'] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {