Skip to content

Instantly share code, notes, and snippets.

@Stubbs Stubbs/Gruntfile.js
Created Apr 26, 2015

Embed
What would you like to do?
 36% 21/47 build modules
/Users/stu/Projects/fluxible/node_modules/babel/lib/babel/helpers/parse.js:60
    throw err;
          ^
SyntaxError: /Users/stu/Projects/fluxible/css/style.css: Unexpected token (9:0)
   7 |  */
   8 |
>  9 | .button-success {
     | ^
  10 |     background-color: #3C9788;
  11 | }
    at raise (/Users/stu/Projects/fluxible/node_modules/babel/node_modules/acorn-babel/acorn_csp.js:343:15)
    at unexpected (/Users/stu/Projects/fluxible/node_modules/babel/node_modules/acorn-babel/acorn_csp.js:2278:5)
    at parseExprAtom (/Users/stu/Projects/fluxible/node_modules/babel/node_modules/acorn-babel/acorn_csp.js:3281:7)
    at parseExprSubscripts (/Users/stu/Projects/fluxible/node_modules/babel/node_modules/acorn-babel/acorn_csp.js:3117:16)
    at parseMaybeUnary (/Users/stu/Projects/fluxible/node_modules/babel/node_modules/acorn-babel/acorn_csp.js:3099:16)
    at parseExprOps (/Users/stu/Projects/fluxible/node_modules/babel/node_modules/acorn-babel/acorn_csp.js:3053:16)
    at parseMaybeConditional (/Users/stu/Projects/fluxible/node_modules/babel/node_modules/acorn-babel/acorn_csp.js:3029:16)
    at parseMaybeAssign (/Users/stu/Projects/fluxible/node_modules/babel/node_modules/acorn-babel/acorn_csp.js:3008:16)
    at parseExpression (/Users/stu/Projects/fluxible/node_modules/babel/node_modules/acorn-babel/acorn_csp.js:2986:16)
    at parseStatement (/Users/stu/Projects/fluxible/node_modules/babel/node_modules/acorn-babel/acorn_csp.js:2645:38)
 
 35% 21/49 build modules[nodemon] app crashed - waiting for file changes before starting...
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
clean: ['build'],
concurrent: {
dev: ['nodemon:app', 'webpack:dev'],
options: {
logConcurrentOutput: true
}
},
jshint: {
all: [
'*.js',
'{actions,configs,components,services,stores}/**/*.js'
],
options: {
jshintrc: true
}
},
nodemon: {
app: {
script: './server.js',
options: {
ignore: ['build/**'],
ext: 'js,jsx'
}
}
},
webpack: {
dev: {
resolve: {
extensions: ['', '.js', '.jsx']
},
entry: './client.js',
output: {
path: './build/js',
publicPath: '/public/js/',
filename: '[name].js'
},
module: {
loaders: [
{ test: /\.(js|jsx)$/, exclude: /node_modules/, loader: require.resolve('babel-loader') },
{ test: /\.json$/, loader: 'json-loader'},
{ test: /\.css$/, loader: 'style!css' },
]
},
stats: {
colors: true
},
devtool: 'source-map',
watch: true,
keepalive: true
}
}
});
// libs
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-concurrent');
grunt.loadNpmTasks('grunt-nodemon');
grunt.loadNpmTasks('grunt-webpack');
// tasks
grunt.registerTask('default', ['clean', 'jshint', 'concurrent:dev']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.