Я установил редактор Atom и попытался запустить задание grunt через плагин grunt-runner. Но безуспешно. ОС: виндовс 8.1
Мои шаги были:
1) установить node.js с npm
2) хрюкать
npm install -g grunt-cli
3) установить sass-плагин
npm install grunt-contrib-sass --save-dev
4) создать файл package.json, содержащий
{
"name": "test-app",
"version": "0.1.0",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-sass": "^0.9.2"
}
}
5) добавляем Gruntfile.js:
module.exports = function(grunt) {
grunt.initConfig({
sass: { // Task
dist: { // Target
options: { // Target options
style: 'expanded'
},
files: { // Dictionary of files
'styles/main.css': 'styles/main.scss' // 'destination': 'source'
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.registerTask('default', ['sass']);
};
В результате при попытке запустить grunt через плагин Atom grunt-runner:
Grunt exited: code 1.
Но если я запускаю его через терминал с помощью команды "grunt", он работает отлично.