-
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.
- Loading branch information
kaskar2008
committed
May 14, 2017
1 parent
ac1f177
commit 70b071a
Showing
13 changed files
with
141 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": [ "es2015" ] | ||
} |
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,20 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# Matches multiple files with brace expansion notation | ||
# Set default charset | ||
[*.{js,py}] | ||
charset = utf-8 | ||
|
||
# Tab indentation (no size specified) | ||
[Makefile] | ||
indent_style = space |
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,6 @@ | ||
# Mac. | ||
.DS_STORE | ||
|
||
# Node. | ||
node_modules | ||
npm-debug.log |
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,11 @@ | ||
export class Step { | ||
constructor (parent, params) { | ||
this.parent = parent | ||
this.params = params | ||
this._lo = 'lol' | ||
} | ||
|
||
get lol () { | ||
return this._lo | ||
} | ||
} |
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,15 @@ | ||
import { Step } from 'Step' | ||
|
||
export class StepSystem { | ||
constructor () { | ||
this._steps = [] | ||
} | ||
|
||
addStep (params) { | ||
this._steps.push(new Step (this, params)) | ||
} | ||
|
||
get steps () { | ||
return this._steps | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { Step } from './classes/Step' | ||
import { StepSystem } from './classes/StepSystem' | ||
|
||
const app = new StepSystem() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<script src="app.js"></script> | ||
</body> | ||
</html> |
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,36 @@ | ||
import gulp from 'gulp' | ||
import babel from 'gulp-babel' | ||
import concat from 'gulp-concat' | ||
import plumber from 'gulp-plumber' | ||
import uglify from 'gulp-uglify' | ||
import browserify from 'gulp-browserify' | ||
|
||
export function js_build(){ | ||
return gulp.src('classes/**/*.js') | ||
.pipe(babel({ | ||
presets: ['es2015'] | ||
})) | ||
.pipe(uglify()) | ||
.pipe(gulp.dest('./dest')) | ||
} | ||
|
||
export function app_build(){ | ||
return gulp.src('example/app.js') | ||
.pipe(babel({ | ||
presets: ['es2015'] | ||
})) | ||
.pipe(browserify({ | ||
insertGlobals : true | ||
})) | ||
.pipe(uglify()) | ||
.pipe(gulp.dest('./example/dist')) | ||
} | ||
|
||
const build = gulp.series( | ||
js_build, | ||
app_build | ||
) | ||
|
||
export { build } | ||
|
||
export default 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"name": "js-step-system", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"directories": { | ||
"example": "example" | ||
}, | ||
"devDependencies": { | ||
"babel-preset-es2015": "^6.22.0", | ||
"babel-register": "^6.22.0", | ||
"gulp": "github:gulpjs/gulp#4.0", | ||
"gulp-babel": "^6.1.2", | ||
"gulp-browserify": "^0.5.1", | ||
"gulp-concat": "^2.6.1", | ||
"gulp-plumber": "^1.1.0", | ||
"gulp-uglify": "^2.0.1" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"gulp": "gulp" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/kaskar2008/js-step-system.git" | ||
}, | ||
"author": "kaskar2008", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/kaskar2008/js-step-system/issues" | ||
}, | ||
"homepage": "https://github.com/kaskar2008/js-step-system#readme" | ||
} |