Comments (4)
Can you post your gruntfile so we can have a look?
from atom-grunt-runner.
Of course!
"use strict";
module.exports = function(grunt) {
require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks);
grunt.initConfig({
watch: {
options: {
livereload: true
},
html: {
files: "**/*.php"
},
sass: {
files: "dev/scss/**/*.scss",
tasks: ["sass", "cmq", "postcss"]
},
js: {
files: ["dev/js/**/*.js", "Gruntfile.js"],
tasks: ["uglify"]
},
images: {
files: "dev/img/**/*.{png,jpg,gif}",
tasks: ["imagemin"]
},
svg: {
files: "dev/svg/**/*.svg",
tasks: ["svgmin"]
}
},
sass: {
options: {
sourceMap: true
},
dist: {
files: {
'style.css': 'dev/scss/style.scss'
}
}
},
postcss: {
options: {
processors: [
require('autoprefixer-core')({
browsers: 'last 1 version'
})
]
},
dist: {
src: 'style.css'
}
},
cmq: {
options: {
log: true
},
dist: {
files: {
'style.css': 'style.css'
}
}
},
cssmin: {
options: {
keepSpecialComments: 1,
noAdvanced: true
},
css: {
files: {
"style.css": "style.css"
}
}
},
uglify: {
options: {
mangle: true
},
production: {
files: {
"js/scripts.js": [
"dev/js/scripts.js"
]
}
}
},
imagemin: {
dynamic: {
options: {
optimizationLevel: 7,
progressive: true
},
files: [{
expand: true,
cwd: 'dev/img/',
src: ['**/*.{png,jpg,gif}'],
dest: 'img/'
}]
}
},
svgmin: {
options: {
plugins: [{
removeViewBox: false
}, {
removeUselessStrokeAndFill: false
}, {
removeEmptyAttrs: false
}]
},
dist: {
expand: true,
cwd: 'dev/svg/',
src: ['*.svg'],
dest: 'includes/svg'
}
},
browserSync: {
files: {
src: [
'style.css',
'js/*.js',
'**/*.php',
]
},
options: {
watchTask: true,
proxy: "dev/mysite",
ghostMode: {
clicks: true,
scroll: true,
links: true,
forms: true
}
}
},
ftpush: {
build: {
auth: {
host: "ftp.mywebsito.com",
port: 21,
authKey: "key1"
},
src: ".",
dest: "/www/wp-content/themes/mytheme/",
exclusions: [
".DS_Store",
"Thumbs.db",
"Gruntfile.js",
"package.json",
"node_modules",
".ftppass",
".gitignore",
".git",
".sass-cache",
"dev"
]
}
},
devUpdate: {
main: {
options: {
updateType: 'force',
reportUpdated: false,
semver: false,
packages: {
devDependencies: true,
dependencies: false
},
packageJson: null,
reportOnlyPkgs: []
}
}
}
});
grunt.registerTask("default", ["browserSync", "watch"]);
grunt.registerTask("css", ["sass", "cmq", "postcss"]);
grunt.registerTask("img", ["imagemin"]);
grunt.registerTask("js", ["uglify"]);
grunt.registerTask("svg", ["svgmin"]);
grunt.registerTask("update", ["devUpdate"]);
grunt.registerTask("deploy", ["sass", "cmq", "postcss", "cssmin", "imagemin", "uglify", "svgmin", "ftpush"]);
};
from atom-grunt-runner.
Could you try this? Don't think it will fix it but it's a start.
"use strict";
module.exports = function(grunt) {
require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks);
grunt.initConfig({
watch: {
options: {
livereload: true
},
html: {
files: "**/*.php"
},
sass: {
files: "dev/scss/**/*.scss",
tasks: ["sass", "cmq", "postcss"]
},
js: {
files: ["dev/js/**/*.js", "Gruntfile.js"],
tasks: ["uglify"]
},
images: {
files: "dev/img/**/*.{png,jpg,gif}",
tasks: ["imagemin"]
},
svg: {
files: "dev/svg/**/*.svg",
tasks: ["svgmin"]
}
},
sass: {
options: {
sourceMap: true
},
dist: {
files: {
'style.css': 'dev/scss/style.scss'
}
}
},
postcss: {
options: {
processors: [
require('autoprefixer-core')({
browsers: 'last 1 version'
})
]
},
dist: {
src: 'style.css'
}
},
cmq: {
options: {
log: true
},
dist: {
files: {
'style.css': 'style.css'
}
}
},
cssmin: {
options: {
keepSpecialComments: 1,
noAdvanced: true
},
css: {
files: {
"style.css": "style.css"
}
}
},
uglify: {
options: {
mangle: true
},
production: {
files: {
"js/scripts.js": [
"dev/js/scripts.js"
]
}
}
},
imagemin: {
dynamic: {
options: {
optimizationLevel: 7,
progressive: true
},
files: [{
expand: true,
cwd: 'dev/img/',
src: ['**/*.{png,jpg,gif}'],
dest: 'img/'
}]
}
},
svgmin: {
options: {
plugins: [{
removeViewBox: false
}, {
removeUselessStrokeAndFill: false
}, {
removeEmptyAttrs: false
}]
},
dist: {
expand: true,
cwd: 'dev/svg/',
src: ['*.svg'],
dest: 'includes/svg'
}
},
browserSync: {
files: {
src: [
'style.css',
'js/*.js',
'**/*.php'
]
},
options: {
watchTask: true,
proxy: "dev/mysite",
ghostMode: {
clicks: true,
scroll: true,
links: true,
forms: true
}
}
},
ftpush: {
build: {
auth: {
host: "ftp.mywebsito.com",
port: 21,
authKey: "key1"
},
src: ".",
dest: "/www/wp-content/themes/mytheme/",
exclusions: [
".DS_Store",
"Thumbs.db",
"Gruntfile.js",
"package.json",
"node_modules",
".ftppass",
".gitignore",
".git",
".sass-cache",
"dev"
]
}
},
devUpdate: {
main: {
options: {
updateType: 'force',
reportUpdated: false,
semver: false,
packages: {
devDependencies: true,
dependencies: false
},
packageJson: null,
reportOnlyPkgs: []
}
}
}
});
grunt.registerTask("default", ["browserSync", "watch"]);
grunt.registerTask("css", ["sass", "cmq", "postcss"]);
grunt.registerTask("img", ["imagemin"]);
grunt.registerTask("js", ["uglify"]);
grunt.registerTask("svg", ["svgmin"]);
grunt.registerTask("update", ["devUpdate"]);
grunt.registerTask("deploy", ["sass", "cmq", "postcss", "cssmin", "imagemin", "uglify", "svgmin", "ftpush"]);
};
from atom-grunt-runner.
Yes! I think it was realy the comma at **/*.php
. Shame on me! 😥
Thanks @kokarn
from atom-grunt-runner.
Related Issues (20)
- Grunt file (Gruntfile.js) fails to be loaded if it uses mocha HOT 22
- Error loading Gruntfile: gruntfile not found HOT 1
- Play sound on warning/errors while running grunt task
- Gruntfile not found (again) HOT 12
- Gruntfile not found HOT 3
- Show error symbol when watch is running HOT 1
- Support multiple Gruntfiles (multiple projects in same window) HOT 2
- Is there a way to pass arguments to a grunt task? HOT 6
- Run specific Grunt task without clicking? HOT 4
- Moving atom-grunt-runner to kokarn HOT 13
- After update to 0.13.0 stopped to run and find tasks HOT 8
- After Disable and Enable cause the package to create a new panel HOT 4
- Uncaught TypeError: this.parseGruntFile is not a function
- Make sure running works as intended with Grunt 1 HOT 2
- Atom Grunt Runner does not load properly when using 'grunt-contrib-requirejs' module HOT 14
- Ctrl + Alt + Shift + T suggestion always on top of the screen
- Doesn't run, nothing in log HOT 1
- Support Multiple Grunt Files HOT 9
- Error loading gruntfile: Gruntfile not found HOT 6
- Error: rsync exited with code 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atom-grunt-runner.