Here is the structure of files in my vsts project:
$/intra
-BuildProcess Tempalates
-intra-DEV
-Project
-Solution-1
-Solution-2
-intra-QA
-intra-PROD
I have defined the build configuration for the infra-DEV branch and then building the solution via MSBuild. And on the xext step i am trying to copy the build'ed files from $(Build.SourcesDirectory) to $(build.artifactstagingdirectory).
Here, when i use "" in the 'contents' section, it will copy the below folders and the files in it
-$/intra
-BuildProcess Tempalates
-intra-DEV
but how can i copy only the -intra-DEV folder and the contents inside it.
Related
I have a series of js files. (i.e. 0.js , 1.js, 2.js, 3.js ... 15.js) along with 0.js.map , 1.js.map ... 15.js.map in a folder that also contains main.js and main.js.map and vendor.js along with vendor.js.map.
These are files that contain Phonegap(Cordova) and Ionic code.
The project is probably using Angular for building. Although in the Chrome Dev Tools in the Sources tab I can only see the ng folder. A webpack folder does not seem to be displayed. According to https://angular.io/cli/build :
The application builder uses the webpack build tool, with default configuration options specified in the workspace configuration file (angular.json) or with a named alternative configuration.
Is there a way to convert the files in their original Typescript format using the source map files (.js.map) in order to alter them?
I have a small question
I need a separate directory for the static files produced by Nuxt Js
By Default Nuxt Js creates one single directory(dist) for all the files
The reason is I am running Django Server as backend and I have to place the static files in a separate directory relative to the template directory
File system
--/templates(HTML Files)
--/static(Static Files)
Suggest me a Nuxt Config to achieve this.
Within the static folder, you can create a new folder where you can put your static files. When you run build, Nuxt simply copies everything that are in the static folder into the dist folder. So now you'll get a separate static folder within dist after a build process completes.
Do the same with your assets folder.
I am using this boilerplate for my workspace. When I compile my workspace into my dist folder, everything from my pages directory is copied except for the folder structure.
This is how the structure of the folder actually looks.
This is how it's supposed to be.
BTDT and I2PTGH is supposed to be inside the 2019-midterm folder but for some reason when it's compiled the directory structure of templates/pages is not retained. How can I make it so it so my folder structure is copied from templates/pages?
My gulpfile.js
What do I have to do to achieve what I want?
I have a project with a certain folder structure and an other project which should be basically the same only some files are different.
I would like to write a gulp-task (or tasks) which are copying the first projects folder structure, but only create symlinks for the files, and don't overwrite files already in the other project.
I found out that I can create symlinks with gulp and vinyl-fs.
I tried to create a two step task. First, I tried to copy the folder structure, but I don't know how can I tell gulp that I only care about the folder structure.
Then second, I wanted to create a symlink task that is creating the symlinks in the correct directory.
Maybe, I could create it with only vinyl-fs's symlinks using a function parameter, but I can't find out how.
It would seem you can do this to copy only folders (exclude *.*):
gulp
.src(['base/path/**/*', '!base/path/**/*.*'])
.pipe(gulp.dest('target'));
Assuming all your files have some kind of extension (e.g. *.jpg).
For the symlinks, doesn't the following work?:
var vfs = require('vinyl-fs');
...
vfs
.src('base/path/**/*', { followSymlinks: false, nodir: true })
.pipe(vfs.symlink('target'));
...
I've been working with the RequireJS optimizer to create multiple optimized JS files for my project and have come across a problem that I’ve found mentioned in other posts but have not found a solution for.
When using r.js to optimized a single file, it pulls all the JS dependency into single file and drops it into the file specified by the “out” property in the build file. However, when trying to create two optimized files (i.e. multipage project using the ‘modules’ property), r.js creates two nicely optimized files but then drops ALL folders and files from the appDir into the output directory. That is, it pulls together and minifies all JS dependencies but then copies the individual files into the output directory.
I realize that r.js is not intended to be a deployment tool so is this by design or is there a way to tell r.js to not copy dependent files and directories into the output directory.
Yes, in your r.js build file, set the removeCombined option to true in order to preserve only the modules you specified to the output location.
{
...
//If set to true, any files that were combined into a build bundle will be
//removed from the output folder.
removeCombined: true,
...
}
See the r.js documentation's example build file.