Last active
January 26, 2016 12:14
-
-
Save sajjadmurtaza/ff0e472b02f8dd7e486f to your computer and use it in GitHub Desktop.
Component is not injecting in index.html file using grunt-wiredep
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#boer.json | |
{ | |
"name": "dc-customer-portal-spa", | |
"authors": [ | |
"Sajjad Murtaza <myemail>" | |
], | |
"description": "", | |
"main": "", | |
"moduleType": [], | |
"license": "MIT", | |
"homepage": "", | |
"ignore": [ | |
"**/.*", | |
"node_modules", | |
"bower_components", | |
"test", | |
"tests" | |
], | |
"dependencies": { | |
} | |
} | |
########################################################################################################### | |
#Gruntfile.js | |
module.exports = function(grunt) { | |
// grunt.loadNpmTasks('grunt-wiredep'); | |
// grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.loadNpmTasks('grunt-bowercopy'); | |
grunt.loadNpmTasks('grunt-wiredep'); | |
grunt.initConfig({ | |
bowercopy: { | |
folders: { | |
options: { | |
destPrefix: '/home/sajjad/Desktop/', | |
srcPrefix: '/var/www/dc-customer-portal-spa/' | |
}, | |
files: { | |
// Note: when copying folders, the destination (key) will be used as the location for the folder | |
'app/projectSourceCode': '/var/www/dc-customer-portal-spa/' | |
} | |
} | |
}, | |
wiredep: { | |
target: { | |
src: 'index.html' // point to your HTML file. | |
} | |
} | |
}); | |
}; | |
########################################################################################### | |
#index.html | |
<!-- bower:css --> | |
<!-- endbower --> | |
<!-- bower:js --> | |
<!-- endbower --> | |
# i have no PACKAGE file. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
am follow this tutorial http://stephenplusplus.github.io/grunt-wiredep/
i just want that grunt-wiredep can finds your components and injects them directly into my HTML.
for this am following http://stephenplusplus.github.io/grunt-wiredep/ tutorial.
am trying but no success as well as no error.