lemonde / angular-ckeditor

CKEditor directive for Angular.
137 stars 133 forks source link

ckeditor not found when processing wiredep #39

Open salimchami opened 8 years ago

salimchami commented 8 years ago

I'm using wiredep to include ckeditor to my index template. I have to include two files, ckeditor.js and ckeditor-angularjs.js, but wiredep won't copy this files... and finally, i don't have these files into my index.html and my karma.conf.js.

in my bower.json, i have this declaration (after doing bower install ckeditor-angularjs --save):

 "dependencies": {
    "ckeditor-angularjs": "*"
 }

My Gruntfile.js :

wiredep: {
        app: {
            src: ['src/main/webapp/index.html'],
            exclude: [
                /angular-i18n/  // localizations are loaded dynamically
            ]
        },
        test: {
            src: 'src/test/javascript/karma.conf.js',
            exclude: [/angular-i18n/, /angular-scenario/],
            ignorePath: /\.\.\/\.\.\//, // remove ../../ from paths of injected javascripts
            devDependencies: true,
            fileTypes: {
                js: {
                    block: /(([\s\t]*)\/\/\s*bower:*(\S*))(\n|\r|.)*?(\/\/\s*endbower)/gi,
                    detect: {
                        js: /'(.*\.js)'/gi
                    },
                    replace: {
                        js: '\'{{filePath}}\','
                    }
                }
            }
        }
    }

i tested with overrides option in bower.json but it wont work... :

"overrides": {
"bootstrap": {
  "main": [
    "dist/js/bootstrap.js",
    "dist/css/bootstrap.css",
    "less/bootstrap.less"
  ]
},
"ckeditor-angularjs": {
  "main": [
    "./src/main/webapp/bower_components/ckeditor/ckeditor.js",
    "build/ckeditor-angularjs.min.js"
  ]
},
"ng-file-upload": {
  "main": "ng-file-upload-all.js"
}

}

Do you know how can solve this problem ? Thanks.

salimchami commented 8 years ago

i added more details in stack question : http://stackoverflow.com/questions/34997041/packages-not-found-in-index-html-and-karma-conf-js-after-doing-wiredep

salimchami commented 8 years ago

while installing the component (bower install --save ckeditor-angularjs) i have this warning : "invalid-meta ckeditor-angularjs is missing "ignore" entry in bower.json"