// import '../bower-components/jquery/dist/jquery.js'
// import '../bower-components/bootstrap/my-boostrap-plugn.js'
grunt-includes
which Veams already provides.veams install gm
.
Then add the include
task to your build tasks (server
, build
) in your Gruntfile.js and create a separate watch task for the includes.
When this is too much work for you, then just setup a new project with grunt-includes
checked!
Hi zusammen,
ich habe nun ein Projekt von Uwe übernommen, welches auf Veams basiert und es funktioniert bei mir soweit alles wunderbar.
Ich habe zwei Fragen:
Im Projekt wird bspw. die Komponente c-fieldset-item
genutzt.
{{! @INSERTPOINT :: @ref: component-partial }}
angelegt. * Configuration file
*/
var helperPath = 'helpers';
var srcPath = 'resources';
var partialsPath = srcPath + '/templating/partials';
var config = module.exports;
config.options = {
config: {
// in this directory you can find your grunt config tasks
src: helperPath + '/_grunt/*.js'
},
paths: {
// tasks folder with gulp tasks
// helpers folder with tasks
helpers: helperPath,
// resources folder with working files
src: srcPath,
// partials path for wrapWith hbs helper
partials: partialsPath,
// dev/working folder
dev: '_output',
// dist folder with minified and optimized files
dist: '_dist',
// Veams config paths
page: srcPath + '/templating/pages',
global: partialsPath + '/globals',
block: partialsPath + '/blocks',
component: partialsPath + '/components',
utility: partialsPath + '/utilities',
scss: srcPath + '/scss',
js: srcPath + '/js',
endpoints: [
'resources/templating/layouts',
'resources/templating/pages',
'resources/js/main.js',
'resources/js/utils/events.js',
'resources/scss/styles.scss'
]
},
// define your ports for livereload
ports: {
app: 3000,
test: 3001,
livereload: 35731
}
};