Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Grunt 4.0 and steal (grunt-steal)

$
0
0
Could you explain how to make steal task work:

I have the following structure of folders:

  1. /app
  2.     /app.js
  3.     /build.html
  4.     /build.js
  5. /build
  6. /steal
  7.     /js.bat
  8. Gruntfile.js

to build app without grunt-steal on windows I use the following command from root folder:
  1. steal/js app/build.js

build.js:

  1. load('steal/rhino/rhino.js');

  2. steal('steal/build','steal/build/scripts', function() {
  3.     steal.build('app/build.js', {
  4.         to: 'build',
  5.         compressor: 'uglify'
  6.     });
  7. });


I created grunt task:

  1.        steal: {
  2.             js: 'steal',
  3.             build: [{
  4.                 src: 'app/build.js',
  5.                 to: 'build'
  6.                 compressor: 'uglify'
  7.             }]
  8.         }

On task run (just a second):
  1. Running: js.bat composer/composer.js -to composer
  2. OK

  3. Done, without errors.
But no result can be found in build directory.

Viewing all articles
Browse latest Browse all 3491

Trending Articles