forked from 1deos/deosorg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update: Vagrantfile * update-style: .gitignore * init: vbox.mk * update: yarn from vm * add-cmd: rm, ssh, vm * update: Makefile * init: gulp * add: pug support * add: gulp clean * prep: gulp build * update: Gulpfile * add: gulp build * add: gulp lint * fix: eslint rules * rm: eslintignore * rm: eslintrc & babelrc * init: webpack support * fix: client/index.jsx * init: actions, components, containers, reducers * add: immutable.js * init: test * swap: gitkeep -> gitignore * add: test * fix: pug * flow: working on mac * update: Makefile * reset: vbox * update: README.md * update: README.md * fixed: flow * update: travis * update: travis * update: flow * update: vagrant * update: node.sh * update: README.md * update: README.md * update: README.md * update: README.md * add: yarn.sh and common.sh * add: nvm.sh * add: docker.sh * add: compose.sh * add: compose.sh * clean: namespace * update: nginx/docker/python * init: dejs * run: build * mv: common -> shared
- Loading branch information
DeSantis
authored
Dec 1, 2016
1 parent
a4c853e
commit 95b32b2
Showing
54 changed files
with
6,240 additions
and
447 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[ignore] | ||
|
||
.*/node_modules/gulp-flowtype/.* |
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,12 +1,21 @@ | ||
*.o | ||
*.pyc | ||
|
||
#[dotfiles] | ||
.DS_Store | ||
|
||
#[dotfolders] | ||
.nvm/ | ||
.vagrant/ | ||
|
||
app/node_modules/ | ||
node_modules/ | ||
#[files] | ||
app/bundle.min.js* | ||
app/index.min.html | ||
bin/logic | ||
npm-debug.log | ||
yarn-error.log | ||
bin/logic | ||
|
||
#[folders] | ||
app/node_modules/ | ||
node_modules/ | ||
|
||
#[wildcards] | ||
*.o | ||
*.pyc |
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
|
||
import gulp from 'gulp'; | ||
import babel from 'gulp-babel'; | ||
import eslint from 'gulp-eslint'; | ||
import flow from 'gulp-flowtype'; | ||
import mocha from 'gulp-mocha'; | ||
import pug from 'gulp-pug'; | ||
import rename from 'gulp-rename'; | ||
|
||
import del from 'del'; | ||
import webpack from 'webpack-stream'; | ||
|
||
import webpackConfig from './src/dejs/webpack.config.babel'; | ||
import { paths, toClean, toLint } from './src/dejs/config.paths'; | ||
|
||
gulp.task('clean', () => del(toClean)); | ||
|
||
// .pipe(eslint.failAfterError()) | ||
gulp.task('lint', ['clean'], () => gulp.src(toLint) | ||
.pipe(eslint()) | ||
.pipe(eslint.format()) | ||
.pipe(flow({ abort: false }))); | ||
|
||
gulp.task('build', ['lint'], () => { | ||
gulp.src(paths.files.client.js.all) | ||
.pipe(babel()) | ||
.pipe(gulp.dest(paths.dirs.es5.client)); | ||
gulp.src(paths.files.shared.js.all) | ||
.pipe(babel()) | ||
.pipe(gulp.dest(paths.dirs.es5.shared)); | ||
gulp.src(paths.files.render.js.all) | ||
.pipe(babel()) | ||
.pipe(gulp.dest(paths.dirs.es5.render)); | ||
gulp.src(paths.files.server.js.all) | ||
.pipe(babel()) | ||
.pipe(gulp.dest(paths.dirs.es5.server)); | ||
gulp.src(paths.files.test.js.all) | ||
.pipe(babel()) | ||
.pipe(gulp.dest(paths.dirs.es5.test)); | ||
}); | ||
|
||
gulp.task('pug', () => gulp.src(paths.files.client.pug.in) | ||
.pipe(pug({})) | ||
.pipe(rename(paths.files.client.pug.out)) | ||
.pipe(gulp.dest(paths.dirs.dist))); | ||
|
||
gulp.task('main', ['build', 'pug'], () => { | ||
gulp.src(paths.files.client.js.entry) | ||
.pipe(webpack(webpackConfig)) | ||
.pipe(gulp.dest(paths.dirs.dist)); | ||
}); | ||
|
||
gulp.task('test', () => gulp.src(paths.files.test.js.out).pipe(mocha())); | ||
|
||
gulp.task('watch', () => gulp.watch(toLint, ['main'])); | ||
|
||
gulp.task('default', ['watch', 'main']); |
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,21 +1,21 @@ | ||
include .deosrc | ||
|
||
all: build; @($(DEOS) && echo) | ||
all: vm ssh #build; @($(DEOS) && echo) | ||
|
||
app:; electron ./app/ | ||
|
||
build: chmod check | ||
|
||
check: deos.check; @(echo) | ||
|
||
chmod:; @(chmod +x $(PRINT) $(DEOS)) | ||
chmod:; (chmod +x $(PRINT) $(DEOS)) | ||
|
||
clean:; -@(rm -rf node_modules/) | ||
install:; (yarn global add electron) | ||
|
||
down:; @(vagrant destroy DeVM) | ||
gulp:; (yarn run gulp && yarn run test) | ||
|
||
install:; @(yarn global add electron) | ||
rm: vm.uninstall | ||
|
||
vm:; @(vagrant up) | ||
ssh: vm.ssh | ||
|
||
yarn:; @(yarn all) | ||
vm: vm.install |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.