Commits

carkraus committed 6205ec2

initial ci

Comments (0)

Files changed (8)

+node_modules/
+src/css/style.css

_project_name_.sublime-project

+{
+	"folders":
+	[
+		{
+			"path": "."
+		}
+	],
+	"build_systems":
+	[
+		{
+			"linux":
+			{
+				"cmd":["/usr/bin/google-chrome", "$project_path/index.html"]
+			},
+			
+			"osx":
+			{
+				"cmd":
+				[
+					"open",
+					"-a",
+					"/Applications/Safari.app/Contents/MacOS/Safari",
+					"$project_path/index.html"
+				]
+			},
+			"windows":
+			{
+				"cmd":["cmd", "/c", "start", "index.html"]
+			},
+			"name": "Launch"
+		},
+		{
+			"cmd":
+			[
+				"open",
+				"-a",
+				"/Applications/Safari.app/Contents/MacOS/Safari",
+				"$project_path/test/index.html"
+			],
+			"name": "Test"
+		},
+		{
+			"selector": "source.js",
+			"cmd": 
+			[
+			  	"jshint", 
+			  	"$file", 
+			  	"--reporter", 
+			  	"$packages/JSHint/reporter.js"
+			],
+			"file_regex": "file:\\s(.+)\\]",
+			"line_regex": "(\\d+),(\\d+)",
+			"osx": {
+				"path": "/usr/local/bin"
+			},
+			"windows": {
+			    "cmd": ["jshint.cmd", "$file", "--reporter", "$packages\\JSHint\\reporter.js"]
+			},
+			"name": "JSLint"
+		}
+	]
+}
Empty file added.
+module.exports = function(grunt) {
+  // Project config
+  grunt.initConfig({
+    less: {
+      all: {
+        src: 'src/css/*.less',
+        dest: 'src/css/style.css',
+        options: {
+          compress: true
+        }
+      }
+    },
+    watch: {
+      files: '<config:less.all.src>',
+      tasks: 'less'
+    },
+    server: {}
+  });
+
+  // 3rd party
+  grunt.loadNpmTasks('grunt-less');
+  grunt.loadNpmTasks('grunt-glue');
+
+  // Default task
+  grunt.registerTask('default', 'server watch');
+};
+{
+  "name": "$(project_name)",
+  "description": "Description for $(project_name).",
+  "version": "0.0.1",
+  "author": {
+    "name": "Carsten Kraus",
+    "email": "carsten.kraus@gmail.com"
+  },
+  "engines": {
+    "node": "*"
+  },
+  "dependencies": {
+    "grunt": "~0.3.9",
+    "grunt-less": "*",
+    "grunt-glue": "*"
+  }
+}
+<!DOCTYPE html>
+<html lang="en">
+<head>
+	<title>${project_name}</title>
+  <link rel="stylesheet" type="text/css" href="css/style.css">
+</head>
+<body>
+	<h1>${project_name}</h1>
+	<div>...</div>
+
+  <!-- Script -->
+  <script type="text/javascript" src="js/app.js"></script>
+
+</body>
+</html>

src/css/style.less

+* {
+  font-family: Helvetica, Arial;
+  color: #444;
+}
+console.log('APP INIT');