Skip to content

Commit

Permalink
Remove paths json; compile in loose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
neersighted committed Jan 16, 2016
1 parent 8e3700a commit 99a3c12
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 27 deletions.
2 changes: 1 addition & 1 deletion tgui/.babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"presets": [
"es2015"
"es2015-loose"
],
"plugins": [
"external-helpers"
Expand Down
2 changes: 1 addition & 1 deletion tgui/assets/tgui.js

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions tgui/gulp/paths.json

This file was deleted.

4 changes: 2 additions & 2 deletions tgui/gulp/tasks/css.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as f from '../flags'
import { gulp as g, postcss as s } from '../plugins'

const dir = 'src'
const dir = 'src'
const entry = 'tgui.styl'
const out = 'assets'
const out = 'assets'

import gulp from 'gulp'
export function css () {
Expand Down
4 changes: 2 additions & 2 deletions tgui/gulp/tasks/js.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as f from '../flags'
import { browserify as b, gulp as g } from '../plugins'

const dir = 'src'
const dir = 'src'
const entry = 'tgui.js'
const out = 'assets'
const out = 'assets'

import { transform as babel } from 'babel-core'
import { readFileSync as read } from 'fs'
Expand Down
4 changes: 2 additions & 2 deletions tgui/gulp/tasks/reload.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as p from '../paths'
const out = 'assets'

import { exec } from 'child_process'
export function reload () {
return exec('reload.bat')
}
import gulp from 'gulp'
export function watch_reload () {
return gulp.watch(p.out + '**', reload)
return gulp.watch(`${out}/**`, reload)
}
5 changes: 3 additions & 2 deletions tgui/gulp/tasks/size.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import * as p from '../paths'
import { gulp as g } from '../plugins'

const out = 'assets'

import gulp from 'gulp'
export function size () {
return gulp.src(p.out + '*')
return gulp.src(`${out}/**`)
.pipe(g.size())
}
1 change: 1 addition & 0 deletions tgui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"babel-plugin-external-helpers": "6.4.0",
"babel-polyfill": "6.3.14",
"babel-preset-es2015": "6.3.13",
"babel-preset-es2015-loose": "7.0.0",
"babel-register": "6.3.13",
"babelify": "7.2.0",
"babelify-external-helpers": "1.1.0",
Expand Down

0 comments on commit 99a3c12

Please sign in to comment.