Skip to content

Instantly share code, notes, and snippets.

@sajjadmurtaza
Last active January 26, 2016 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sajjadmurtaza/ff0e472b02f8dd7e486f to your computer and use it in GitHub Desktop.
Save sajjadmurtaza/ff0e472b02f8dd7e486f to your computer and use it in GitHub Desktop.
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
Copy link
Author

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