Basic
Steps to work with basebuild-angular
after installation:
1 - Declare the options which you want to use or modify
In your gulpfile
you can declare the options which you want to use or modify in basebuild.
// Basic options
// =========================
var options = {
mainAngularModule : 'BaseBuildSample'
};
// Base build modules
// ==========================
options.modulesData = {
proxy: {
target: 'http://docker:49000'
}
};
2 - Require basebuild-angular
Still in you gulpfile you require
basebuild-angular
passing the parameter options.
// Init basebuild
// ==========================
require('basebuild-angular')(options);
Resulting in something like this:
// Basic options
// =========================
var options = {
mainAngularModule : 'BaseBuildSample'
};
// Base build modules
// ==========================
options.modulesData = {
proxy: {
target: 'http://docker:49000'
}
};
// Init basebuild
// ==========================
require('basebuild-angular')(options);
3 - Run a gulp task to see working
On shell, you can use Gulp tasks to work, for instance:
gulp serve # this task will launch a browser sync server on your source files
You can see all available tasks here.
Updated less than a minute ago