FIX everything

This commit is contained in:
Sara Steiert 2017-03-05 20:30:37 +01:00
parent 2174db4e5c
commit e470e2538f
14 changed files with 86 additions and 130 deletions

View File

@ -1,4 +1,5 @@
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-exec');
require('load-grunt-tasks')(grunt);
grunt.initConfig({
babel: {
@ -12,21 +13,9 @@ module.exports = function(grunt) {
}
}
},
execute: {
less: {
options: {
nodeargs: ['--harmony-async-await'],
args: ['less']
},
src: ['src/app.js']
},
wait: {
options: {
nodeargs: ['--harmony-async-await'],
args: ['wait']
},
src: ['src/app.js']
}
exec: {
less: 'node --harmony-async-await src/app.js less',
wait: 'node --harmony-async-await src/app.js wait'
},
bgShell: {
_defaults: {
@ -44,7 +33,7 @@ module.exports = function(grunt) {
'resumes/**/*.less',
'less/**/*.less'
],
tasks: ['execute', 'babel', 'bgShell:express', 'execute:wait'],
tasks: ['exec:less', 'babel', 'bgShell:express', 'exec:wait'],
options: {
nospawn: false,
livereload: true
@ -53,5 +42,5 @@ module.exports = function(grunt) {
}
});
grunt.registerTask('default', ['babel', 'execute:less', 'bgShell:express', 'execute:wait', 'watch']);
grunt.registerTask('default', ['babel', 'exec:less', 'bgShell:express', 'exec:wait', 'watch']);
};

View File

@ -1,4 +1,5 @@
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-exec');
require('load-grunt-tasks')(grunt);
grunt.initConfig({
babel: {
@ -12,23 +13,11 @@ module.exports = function(grunt) {
}
}
},
execute: {
less: {
options: {
nodeargs: ['--harmony-async-await'],
args: ['less']
},
src: ['src/app.js']
},
pdf: {
options: {
nodeargs: ['--harmony-async-await'],
args: ['pdf']
},
src: ['src/app.js']
}
exec: {
less: 'node --harmony-async-await src/app.js less',
pdf: 'node --harmony-async-await src/app.js pdf'
}
});
grunt.registerTask('default', ['babel', 'execute']);
grunt.registerTask('default', ['babel', 'exec:less', 'exec:pdf']);
};

View File

@ -1,79 +1,76 @@
{
"name": "best-resume-ever",
"version": "1.0.0",
"description": "Collection of multiple resumes build with LESS and Mustache Templates.",
"repository": {
"type": "git",
"url": "git+https://github.com/salomonelli/best-resume-ever"
},
"author": "salomonelli",
"homepage": "https://github.com/salomonelli/best-resume-ever",
"keywords": [
"resume",
"template",
"mustache",
"less",
"cv",
"curriculum",
"vitae",
"electron",
"grunt"
],
"scripts": {
"server": "node --harmony-async-await src/app.js server",
"dev": "grunt --verbose",
"pdf": "concurrently \"npm run server\" \"grunt --gruntfile GruntfilePdf.js --verbose\"",
"lint": "eslint src/",
"test": "nyc mocha --harmony-async-await \"test/*.js\"",
"istanbul": "istanbul cover node_modules/.bin/_mocha -- -- -u exports test/**/* --harmony-async-await"
},
"dependencies": {
"@typopro/web-montserrat": "3.4.9",
"babel-cli": "6.22.2",
"babel-core": "6.22.1",
"babel-preset-es2015": "6.22.0",
"buffer-to-string": "0.1.0",
"clean-css": "4.0.4",
"electroshot": "1.2.0",
"express": "4.14.1",
"font-awesome": "4.7.0",
"fs": "0.0.1-security",
"hogan-express": "0.5.2",
"html-pdf": "2.1.0",
"html-to-pdf": "0.1.11",
"http": "0.0.0",
"jquery": "3.1.1",
"less": "2.7.2",
"less-plugin-clean-css": "1.5.1",
"local-web-server": "1.2.6",
"markdown-to-html": "0.0.13",
"material-design-icons": "3.0.1",
"mustache": "2.3.0",
"mustache-express": "1.2.4",
"normalize.css": "5.0.0",
"npm-font-open-sans-condensed": "1.0.3",
"open-sans-fontface": "1.4.0",
"path": "0.12.7",
"phantomjs-prebuilt": "2.1.14",
"raleway-webfont": "3.0.1",
"request": "2.79.0",
"request-promise": "4.1.1",
"roboto-fontface": "0.7.0",
"showdown": "1.6.3",
"typeface-chivo": "0.0.22",
"write": "0.3.2"
},
"devDependencies": {
"eslint": "3.15.0",
"grunt": "1.0.1",
"grunt-babel": "6.0.0",
"grunt-bg-shell": "^2.3.3",
"grunt-cli": "1.2.0",
"grunt-contrib-watch": "1.0.0",
"grunt-execute": "0.2.2",
"load-grunt-tasks": "3.5.2",
"mocha": "3.2.0",
"nyc": "10.1.2",
"reload": "1.1.1"
}
"name": "best-resume-ever",
"version": "1.0.0",
"description": "Collection of multiple resumes build with LESS and Mustache Templates.",
"repository": {
"type": "git",
"url": "git+https://github.com/salomonelli/best-resume-ever"
},
"author": "salomonelli",
"homepage": "https://github.com/salomonelli/best-resume-ever",
"keywords": [
"resume",
"template",
"mustache",
"less",
"cv",
"curriculum",
"vitae",
"electron",
"grunt"
],
"scripts": {
"server": "node --harmony-async-await src/app.js server",
"dev": "grunt --verbose",
"pdf": "concurrently \"npm run server\" \"grunt --gruntfile GruntfilePdf.js --verbose\"",
"lint": "eslint src/"
},
"dependencies": {
"@typopro/web-montserrat": "3.4.9",
"babel-cli": "6.23.0",
"babel-core": "6.23.1",
"babel-preset-es2015": "6.22.0",
"buffer-to-string": "0.1.0",
"clean-css": "4.0.8",
"electroshot": "1.2.0",
"express": "4.15.0",
"font-awesome": "4.7.0",
"fs": "0.0.2",
"hogan-express": "0.5.2",
"html-pdf": "2.1.0",
"html-to-pdf": "0.1.11",
"http": "0.0.0",
"jquery": "3.1.1",
"less": "2.7.2",
"less-plugin-clean-css": "1.5.1",
"local-web-server": "1.2.6",
"markdown-to-html": "0.0.13",
"material-design-icons": "3.0.1",
"mustache": "2.3.0",
"mustache-express": "1.2.4",
"normalize.css": "5.0.0",
"npm-font-open-sans-condensed": "1.0.3",
"open-sans-fontface": "1.4.0",
"path": "0.12.7",
"phantomjs-prebuilt": "2.1.14",
"raleway-webfont": "3.0.1",
"request": "2.80.0",
"request-promise": "4.1.1",
"roboto-fontface": "0.7.0",
"showdown": "1.6.4",
"typeface-chivo": "0.0.22",
"write": "0.3.2"
},
"devDependencies": {
"concurrently": "3.4.0",
"eslint": "3.17.0",
"grunt": "1.0.1",
"grunt-babel": "6.0.0",
"grunt-bg-shell": "2.3.3",
"grunt-cli": "1.2.0",
"grunt-contrib-watch": "1.0.0",
"grunt-exec": "2.0.0",
"load-grunt-tasks": "3.5.2",
"reload": "1.1.1"
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -1,8 +0,0 @@
/* global it, describe */
const assert = require('assert');
const Config = require('../../src/node/Config');
describe('Config', () => {
it('should contain a valid port number', () => {
assert(Config.port > 0);
});
});

View File

@ -1 +0,0 @@
any content to be read

View File

@ -1 +0,0 @@
alskldjaksldjaklsjdla0.8618659579531889

View File

@ -1,9 +0,0 @@
/* global it, describe */
const assert = require('assert');
describe('Array', () => {
describe('#indexOf()', () => {
it('should return -1 when the value is not present', () => {
assert.equal(-1, [1, 2, 3].indexOf(4));
});
});
});