Permalink
Browse files

Moved static to src/assets

  • Loading branch information...
1 parent ae7f495 commit fdc25a4f5c817bfefef000c61fed5fe49c87107f Terkel Gjervig committed Jan 16, 2017
File renamed without changes
File renamed without changes.
View
@@ -15,11 +15,10 @@ const createTray = win => {
}
// Set tray icon
- const trayIconDefault = path.join(__dirname, '../static/icon-18x18.png')
- const trayIconWindows = path.join(__dirname, '../static/icon.ico')
+ const trayIconDefault = path.join(__dirname, 'assets/icon-18x18.png')
+ const trayIconWindows = path.join(__dirname, 'assets/icon.ico')
let icon = isPlatform('windows') ? trayIconWindows : trayIconDefault
- // TODO: Remove from here, and use evennts instead
const toggleWin = () => {
if (isPlatform('windows')) {
if (win.isMinimized()) {
View
@@ -10,6 +10,7 @@ const DIST_DIR = 'app/dist'
// Source files
const JS_GLOB = `${SRC_DIR}/**/*.js`
const CSS_GLOB = `${SRC_DIR}/**/*.scss`
+const ASSETS_GLOB = `app/src/assets/*.*`
// Clean DIST directory
export function clean () {
@@ -29,12 +30,18 @@ export function styles () {
.pipe(dest(DIST_DIR))
}
+export function assets () {
+ return src(ASSETS_GLOB, {base: SRC_DIR})
+ .pipe(dest(DIST_DIR))
+}
+
export function watch () {
watchSrc(JS_GLOB, scripts)
watchSrc(CSS_GLOB, styles)
+ watchSrc(ASSETS_GLOB, assets)
}
-const mainTasks = parallel(scripts, styles)
+const mainTasks = parallel(scripts, styles, assets)
export const build = series(clean, mainTasks)
export const dev = series(clean, mainTasks, watch)

0 comments on commit fdc25a4

Please sign in to comment.