Skip to content

Commit

Permalink
add "./" to beginning of all files in Gruntfile.js and scripts.json
Browse files Browse the repository at this point in the history
  • Loading branch information
edoparearyee committed Mar 24, 2015
1 parent 2bbc913 commit e90f851
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
74 changes: 37 additions & 37 deletions Gruntfile.js
Expand Up @@ -6,17 +6,17 @@ module.exports = function (grunt) {

var base = grunt.option("base-dir") || "",
protractorConf = grunt.option("ci") ?
"tests/e2e/protractor.saucelabs.conf.js" :
"tests/e2e/protractor.conf.js" ;
"./tests/e2e/protractor.saucelabs.conf.js" :
"./tests/e2e/protractor.conf.js" ;

grunt.initConfig({

pkg: grunt.file.readJSON("package.json"),

config: {
outputDir: "dist/",
applicationFiles: grunt.file.readJSON("scripts.json").application,
vendorFiles: grunt.file.readJSON("scripts.json").vendor
outputDir: "./dist/",
applicationFiles: grunt.file.readJSON("./scripts.json").application,
vendorFiles: grunt.file.readJSON("./scripts.json").vendor
},

connect: {
Expand All @@ -41,7 +41,7 @@ module.exports = function (grunt) {
options: {
keepalive: false,
livereload: false,
base: "dist",
base: "<%= config.outputDir %>",
middleware: function ( connect, options, middlewares ) {
var rules = [ "^/[^\.]*$ /index.html" ];
middlewares.unshift( modRewrite( rules ) );
Expand All @@ -58,45 +58,45 @@ module.exports = function (grunt) {
},
css: {
files: [
"app/index.html",
"./app/index.html",

"app/less/*.less",
"app/less/**/*.less",
"app/less/**/**/*.less",
"./app/less/*.less",
"./app/less/**/*.less",
"./app/less/**/**/*.less",

"app/partials/*.html",
"app/partials/**/*.html",
"app/partials/**/**/*.html",
"./app/partials/*.html",
"./app/partials/**/*.html",
"./app/partials/**/**/*.html",

"modules/*.html",
"modules/**/*.html",
"modules/**/**/*.html"
"./modules/*.html",
"./modules/**/*.html",
"./modules/**/**/*.html"
],
tasks: ["less:development"]
},
javascript: {
files: [
"app/js/*.js",
"app/js/**/*.js",
"app/js/**/**/*.js",
"./app/js/*.js",
"./app/js/**/*.js",
"./app/js/**/**/*.js",

"tests/unit/*.js",
"tests/unit/**/*.js",
"tests/unit/**/**/*.js"
"./tests/unit/*.js",
"./tests/unit/**/*.js",
"./tests/unit/**/**/*.js"
],
tasks: ["test:development"]
}
},

less: {
options: {
paths: ["app/less/"],
paths: ["./app/less/"],
cleancss: false,
banner: "/*! <%= pkg.name %> - v<%= pkg.version %> - " +
"<%= grunt.template.today(\"yyyy-mm-dd\") %> */\n"
},
development: {
files: { "app/css/all.css": "app/less/main.less" },
files: { "./app/css/all.css": "./app/less/main.less" },
options: {
sourceMap: true,
sourceMapFilename: "app/css/all.css.map",
Expand All @@ -123,22 +123,22 @@ module.exports = function (grunt) {

jasmine: {
options: {
specs: ["tests/unit/**/*.js"],
specs: ["./tests/unit/**/*.js"],
keepRunner: true,
},
development: {
src: ["<%= config.applicationFiles %>"],
options: {
vendor: ["<%= config.vendorFiles %>"],
helpers:["app/components/angular-mocks/angular-mocks.js"],
helpers:["./app/components/angular-mocks/angular-mocks.js"],
template: require("grunt-template-jasmine-istanbul"),
templateOptions: {
coverage: "coverage/coverage.json",
coverage: "./coverage/coverage.json",
report: [
{
type: "lcov",
options: {
dir: "coverage"
dir: "./coverage"
}
},
{
Expand All @@ -149,7 +149,7 @@ module.exports = function (grunt) {
}
},
production: {
src: ["<%= config.outputDir %>js/app.min.js", "app/components/angular-mocks/angular-mocks.js"]
src: ["<%= config.outputDir %>js/app.min.js", "./app/components/angular-mocks/angular-mocks.js"]
}
},

Expand Down Expand Up @@ -212,15 +212,15 @@ module.exports = function (grunt) {
images: {
files: [{
expand: true,
cwd: "app/img",
cwd: "./app/img",
src: ["**/*", "!test/**"],
dest: "<%= config.outputDir %>img/"
}]
},
partials: {
files: [{
expand: true,
cwd: "app/partials",
cwd: "./app/partials",
src: ["*.html"],
dest: "<%= config.outputDir %>partials/"
}]
Expand All @@ -229,7 +229,7 @@ module.exports = function (grunt) {

clean: {
beforeBuild: {
src: ["<%= config.outputDir %>", "docs"]
src: ["<%= config.outputDir %>", "./docs"]
},
afterTest: {
src: ["<%= config.outputDir %>"]
Expand All @@ -242,12 +242,12 @@ module.exports = function (grunt) {
},
production: {
files: {
"<%= config.outputDir %>index.html": ["app/index.html"]
"<%= config.outputDir %>index.html": ["./app/index.html"]
}
},
e2e: {
files: {
"<%= config.outputDir %>index.html": ["app/index.html"]
"<%= config.outputDir %>index.html": ["./app/index.html"]
}
}
},
Expand All @@ -259,17 +259,17 @@ module.exports = function (grunt) {
version: "<%= pkg.version %>",
url: "<%= pkg.homepage %>",
options: {
paths: "app/js/",
paths: "./app/js/",
themedir: "node_modules/yuidoc-bootstrap-theme",
helpers: ["node_modules/yuidoc-bootstrap-theme/helpers/helpers.js"],
outdir: "docs/"
outdir: "./docs/"
}
}
},

bump: {
options: {
files: ["package.json", "bower.json"],
files: ["./package.json", "./bower.json"],
updateConfigs: ["pkg"],
commit: true,
commitFiles: ["-a"],
Expand Down
12 changes: 6 additions & 6 deletions scripts.json
@@ -1,12 +1,12 @@
{
"vendor": [
"app/components/angular/angular.js",
"app/components/angular-route/angular-route.js"
"./app/components/angular/angular.js",
"./app/components/angular-route/angular-route.js"
],
"application": [
"app/js/soon-example/app.js",
"app/js/soon-example/config.js",
"app/js/soon-example/controllers/SearchCtrl.js",
"app/js/soon-example/controllers/ResultsCtrl.js"
"./app/js/soon-example/app.js",
"./app/js/soon-example/config.js",
"./app/js/soon-example/controllers/SearchCtrl.js",
"./app/js/soon-example/controllers/ResultsCtrl.js"
]
}

0 comments on commit e90f851

Please sign in to comment.