Skip to main content
deleted 1544 characters in body
Source Link
Himanshu
  • 33.7k
  • 10
  • 91
  • 152

You just need to adduse additional 4 more space (total 8 space) to write code inside bullets like this one. (Edit to see it)

Code with 4 space outside bullet.
Code with 4 space outside bullet.
  1. Install NPM: curl http://npmjs.org/install.sh | sh on a *nix system. I'll assume it's available from the command line.

  2. npm install -g spine will make spine available as a global command

  3. spine app folder will make a Spine project called app in folder.

  4. cd to folder and edit dependencies.json for the libraries you need. hem is actually good to install locally instead Example of globally, I find that it usually gets folders right that way.

  5. npm install . to download all the dependencies you just entered in, including hembullet.

  6. If you take a look at the default spine config, there is a app/lib/setup.coffee where you require all the libraries you need from your dependenciesExample of bullet. Examples:

     # Spine.app had these as dependencies by default
     require('json2ify')
     require('es5-shimify')
     require('jqueryify')
    
    Code require('spine')
    inside require('spine/lib/local')
    bullet require('spine/lib/ajax')
    with require('spine/lib/manager')
    8 require('spine/lib/route')
    space.
     # d3 wasCode installedinside viabullet dependencies.json
    with require8 'd3/d3space.v2'
    
  7. In index.coffee, you just require lib/setup and load the main controller for your app. In addition, you need to require any other classes in those other controllers.

  8. The default generated index.html will usually be fine for loading your app, but modify as necessary.

  9. From folder, run node_modules/hem/bin/hem server to start a hem server, and navigate to localhost:9294 to see your app. If you installed hem globally (npm install -g hem), then hem server by itself may work, but sometimes it gets confused about the path.

  10. Build the restExample of your app using proper MVC techniques, and use stylus for CSS and eco for viewsbullet.

You just need to add 4 more space to write code inside bullets like this one. (Edit to see it)

  1. Install NPM: curl http://npmjs.org/install.sh | sh on a *nix system. I'll assume it's available from the command line.

  2. npm install -g spine will make spine available as a global command

  3. spine app folder will make a Spine project called app in folder.

  4. cd to folder and edit dependencies.json for the libraries you need. hem is actually good to install locally instead of globally, I find that it usually gets folders right that way.

  5. npm install . to download all the dependencies you just entered in, including hem.

  6. If you take a look at the default spine config, there is a app/lib/setup.coffee where you require all the libraries you need from your dependencies. Examples:

     # Spine.app had these as dependencies by default
     require('json2ify')
     require('es5-shimify')
     require('jqueryify')
    
     require('spine')
     require('spine/lib/local')
     require('spine/lib/ajax')
     require('spine/lib/manager')
     require('spine/lib/route')
    
     # d3 was installed via dependencies.json
     require 'd3/d3.v2'
    
  7. In index.coffee, you just require lib/setup and load the main controller for your app. In addition, you need to require any other classes in those other controllers.

  8. The default generated index.html will usually be fine for loading your app, but modify as necessary.

  9. From folder, run node_modules/hem/bin/hem server to start a hem server, and navigate to localhost:9294 to see your app. If you installed hem globally (npm install -g hem), then hem server by itself may work, but sometimes it gets confused about the path.

  10. Build the rest of your app using proper MVC techniques, and use stylus for CSS and eco for views.

You just need to use additional 4 more space (total 8 space) to write code inside bullets like this one.

Code with 4 space outside bullet.
Code with 4 space outside bullet.
  1. Example of bullet.

  2. Example of bullet.

    Code inside bullet with 8 space.
    Code inside bullet with 8 space.
    
  3. Example of bullet.

Source Link
Himanshu
  • 33.7k
  • 10
  • 91
  • 152

You just need to add 4 more space to write code inside bullets like this one. (Edit to see it)

  1. Install NPM: curl http://npmjs.org/install.sh | sh on a *nix system. I'll assume it's available from the command line.

  2. npm install -g spine will make spine available as a global command

  3. spine app folder will make a Spine project called app in folder.

  4. cd to folder and edit dependencies.json for the libraries you need. hem is actually good to install locally instead of globally, I find that it usually gets folders right that way.

  5. npm install . to download all the dependencies you just entered in, including hem.

  6. If you take a look at the default spine config, there is a app/lib/setup.coffee where you require all the libraries you need from your dependencies. Examples:

     # Spine.app had these as dependencies by default
     require('json2ify')
     require('es5-shimify')
     require('jqueryify')
    
     require('spine')
     require('spine/lib/local')
     require('spine/lib/ajax')
     require('spine/lib/manager')
     require('spine/lib/route')
    
     # d3 was installed via dependencies.json
     require 'd3/d3.v2'
    
  7. In index.coffee, you just require lib/setup and load the main controller for your app. In addition, you need to require any other classes in those other controllers.

  8. The default generated index.html will usually be fine for loading your app, but modify as necessary.

  9. From folder, run node_modules/hem/bin/hem server to start a hem server, and navigate to localhost:9294 to see your app. If you installed hem globally (npm install -g hem), then hem server by itself may work, but sometimes it gets confused about the path.

  10. Build the rest of your app using proper MVC techniques, and use stylus for CSS and eco for views.