This repository has been archived by the owner on May 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(copy): Resolve race condition in copy task, move to glob config
fix(copy): Resolve race condition in copy task, move to glob config
- Loading branch information
1 parent
f42c980
commit cc99a73
Showing
10 changed files
with
593 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,21 @@ | ||
|
||
// https://www.npmjs.com/package/fs-extra | ||
|
||
// this is a custom dictionary to make it easy to extend/override | ||
// provide a name for an entry, it can be anything such as 'copyAssets' or 'copyFonts' | ||
// then provide an object with a `src` array of globs and a `dest` string | ||
module.exports = { | ||
include: [ | ||
{ | ||
src: '{{SRC}}/assets/', | ||
dest: '{{WWW}}/assets/' | ||
}, | ||
{ | ||
src: '{{SRC}}/index.html', | ||
dest: '{{WWW}}/index.html' | ||
}, | ||
{ | ||
src: '{{SRC}}/manifest.json', | ||
dest: '{{WWW}}/manifest.json' | ||
}, | ||
{ | ||
src: '{{SRC}}/service-worker.js', | ||
dest: '{{WWW}}/service-worker.js' | ||
}, | ||
{ | ||
src: 'node_modules/ionic-angular/polyfills/polyfills.js', | ||
dest: '{{BUILD}}/polyfills.js' | ||
}, | ||
{ | ||
src: 'node_modules/ionicons/dist/fonts/', | ||
dest: '{{WWW}}/assets/fonts/' | ||
}, | ||
{ | ||
src: 'node_modules/ionic-angular/fonts/', | ||
dest: '{{WWW}}/assets/fonts/' | ||
} | ||
] | ||
}; | ||
copyAssets: { | ||
src: ['{{SRC}}/assets/**/*'], | ||
dest: '{{WWW}}/assets' | ||
}, | ||
copyIndexContent: { | ||
src: ['{{SRC}}/index.html', '{{SRC}}/manifest.json', '{{SRC}}/service-worker.js'], | ||
dest: '{{WWW}}' | ||
}, | ||
copyFonts: { | ||
src: ['{{ROOT}}/node_modules/ionicons/dist/fonts/**/*', '{{ROOT}}/node_modules/ionic-angular/fonts/**/*'], | ||
dest: '{{WWW}}/assets/fonts' | ||
}, | ||
copyPolyfills: { | ||
src: ['{{ROOT}}/node_modules/ionic-angular/polyfills/polyfills.js'], | ||
dest: '{{BUILD}}' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.