Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Component is not injecting in index.html file using grunt-wiredep
#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.
@sajjadmurtaza

This comment has been minimized.

Copy link
Owner Author

sajjadmurtaza commented Jan 26, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.