diff --git a/Gruntfile.js b/Gruntfile.js index 52d1df3..63cc542 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -7,6 +7,9 @@ module.exports = grunt => { default: ["dist/"], }, copy: { + css: { + files: [{expand: true, cwd: "src/main/", src: "**/*.css", dest: "dist/", flatten: true}] + }, html: { files: [{expand: true, cwd: "src/main/", src: "**/*.html", dest: "dist/", flatten: true}] }, @@ -16,7 +19,7 @@ module.exports = grunt => { }, focus: { dev: { - include: ["html", "js"], + include: ["css", "html", "js"], }, }, replace: { @@ -69,6 +72,10 @@ module.exports = grunt => { }, }, watch: { + css: { + files: ["src/main/**/*.css"], + tasks: ["copy:css"], + }, html: { files: ["src/main/**/*.html"], tasks: ["copy:html"], @@ -91,6 +98,7 @@ module.exports = grunt => { // Pre "clean", // Copy files + "copy:css", "copy:html", "copy:txt", // Compile @@ -103,6 +111,7 @@ module.exports = grunt => { // Pre "clean", // Copy files + "copy:css", "copy:html", "copy:txt", // Compile JS diff --git a/package.json b/package.json index cbea670..5e63c7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "debreviator", - "version": "0.0.1", + "version": "0.0.2", "description": "Creates meaning by undoing your abbreviation.", "author": "F.W. Dekker", "browser": "dist/bundle.js", diff --git a/src/main/css/main.css b/src/main/css/main.css new file mode 100644 index 0000000..15b57f0 --- /dev/null +++ b/src/main/css/main.css @@ -0,0 +1,3 @@ +#debreviations { + height: 20em; +} diff --git a/src/main/index.html b/src/main/index.html index 32c15a3..19d2153 100644 --- a/src/main/index.html +++ b/src/main/index.html @@ -12,6 +12,8 @@ + +