Grunt and Travis, you\'re late

This commit is contained in:
Nicholas Hubbard 2016-05-03 19:51:07 -04:00
parent 15887994fe
commit 9d0bf6d409
No known key found for this signature in database
GPG Key ID: 732AF7DD9E9C91F5
4 changed files with 46 additions and 2 deletions

View File

@ -4,3 +4,4 @@ vendor/
!/modules/default/**
!/modules/node_helper
!/modules/node_helper/**
!/modules/default/defaultmodules.js

10
.travis.yml Normal file
View File

@ -0,0 +1,10 @@
language: node_js
node_js:
- "6"
- "5.1"
- "4"
- "0.12"
- "0.10"
before_script:
- npm install grunt-cli -g
script: grunt

28
Gruntfile.js Normal file
View File

@ -0,0 +1,28 @@
module.exports = function(grunt) {
require("time-grunt")(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
eslint: {
options: {
configFile: ".eslintrc.json"
},
target: ["js/*.js", "modules/default/*.js", "serveronly/*.js", "*.js"]
},
postcss: {
lint: {
options: {
processors: [
require("stylelint")({"extends": "stylelint-config-standard", "font-family-name-quotes": "double-where-recommended"}),
require("postcss-reporter")({ clearMessages: true })
]
},
dist: {
src: "**/**/**/**/**/**/**/**.css"
}
}
}
});
grunt.loadNpmTasks("grunt-eslint");
grunt.loadNpmTasks("grunt-postcss");
grunt.registerTask("default", ["eslint", "postcss:lint"]);
};

View File

@ -29,8 +29,13 @@
"homepage": "https://github.com/MichMich/MagicMirror#readme",
"devDependencies": {
"electron-prebuilt": "latest",
"grunt": "latest",
"grunt-eslint": "latest",
"grunt-postcss": "latest",
"postcss-reporter": "latest",
"stylelint": "latest",
"stylelint-config-standard": "latest"
"stylelint-config-standard": "latest",
"time-grunt": "latest"
},
"dependencies": {
"express": "latest",
@ -38,7 +43,7 @@
"iconv-lite": "latest",
"moment": "latest",
"request": "latest",
"snyk": "^1.13.2",
"snyk": "latest",
"socket.io": "latest",
"valid-url": "latest",
"walk": "latest",