bones-cli 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -232,7 +232,7 @@ var bfpage = function() {
232
232
  fs.writeFileSync(dest, updatedContent);
233
233
 
234
234
  src = 'page-template/page.js.tmpl';
235
- dest = `pages/${fileName}/${fileName}.js`;
235
+ dest = `pages/${fileName}/client/${fileName}-route.js`;
236
236
  var templateContent = fs.readFileSync(`${__dirname}/${src}`);
237
237
  var updatedContent = templateContent.toString().replace(/TEMPLATE_NAME_GOES_HERE/g, componentName);
238
238
  updatedContent = updatedContent.replace(/PAGE_PATH_GOES_HERE/g, pagePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bones-cli",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Command line tools for Bones - a rapid development framework for web apps with MeteorJS & Blaze templates",
5
5
  "keywords": [
6
6
  "cli",
@@ -5,7 +5,7 @@ import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
5
5
  FlowRouter.decodeQueryParamsOnce = true;
6
6
 
7
7
  FlowRouter.route('PAGE_PATH_GOES_HERE', {
8
- name: 'page1',
8
+ name: 'TEMPLATE_NAME_GOES_HERE',
9
9
  action() {
10
10
  // Render a template using Blaze
11
11
  this.render('layout', 'TEMPLATE_NAME_GOES_HERE');