-
Notifications
You must be signed in to change notification settings - Fork 28
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
0 parents
commit 0dc71a0
Showing
6 changed files
with
109 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 @@ | ||
* text=auto |
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 @@ | ||
node_modules | ||
dist | ||
.tmp |
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,22 @@ | ||
{ | ||
"node": true, | ||
"es5": true, | ||
"esnext": true, | ||
"bitwise": true, | ||
"camelcase": true, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"immed": true, | ||
"indent": 2, | ||
"latedef": true, | ||
"newcap": true, | ||
"noarg": true, | ||
"quotmark": "single", | ||
"regexp": true, | ||
"undef": true, | ||
"unused": true, | ||
"strict": true, | ||
"trailing": true, | ||
"smarttabs": true, | ||
"white": true | ||
} |
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,62 @@ | ||
'use strict'; | ||
|
||
module.exports = function (grunt) { | ||
// load all grunt tasks | ||
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | ||
|
||
// configurable paths | ||
var yeomanConfig = { | ||
app: 'app', | ||
dist: 'dist' | ||
}; | ||
|
||
grunt.initConfig({ | ||
yeoman: yeomanConfig, | ||
|
||
clean: { | ||
dist: ['<%= yeoman.dist %>/*', '.tmp/'] | ||
}, | ||
|
||
jshint: { | ||
options: { | ||
jshintrc: '.jshintrc' | ||
}, | ||
all: [ | ||
'Gruntfile.js', | ||
'<%= yeoman.app %>/{,*/}*.js' | ||
] | ||
}, | ||
|
||
watch: { | ||
dist: { | ||
files: '<%= yeoman.app %>/{,*/}*.js', | ||
tasks: ['traceur'] | ||
} | ||
}, | ||
|
||
traceur: { | ||
dist: { | ||
files: [{ | ||
expand: true, | ||
cwd: '<%= yeoman.app %>', | ||
src: '{,*/}*.js', | ||
dest: '.tmp/' | ||
}] | ||
} | ||
} | ||
}); | ||
|
||
grunt.registerTask('build', [ | ||
'clean', | ||
'traceur' | ||
]); | ||
|
||
// Create an alias familiar to those using webapp/angular. | ||
grunt.registerTask('server', [ | ||
'watch' | ||
]); | ||
|
||
grunt.registerTask('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,5 @@ | ||
class HellWorld { | ||
constructor(word) { | ||
console.log('Hello ' + world); | ||
} | ||
} |
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,16 @@ | ||
{ | ||
"name": "hyperagent", | ||
"version": "0.0.0", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"grunt": "~0.4.0", | ||
"grunt-contrib-clean": "~0.4.0", | ||
"grunt-contrib-watch": "~0.3.1", | ||
"grunt-contrib-jshint": "~0.1.1", | ||
"matchdep": "~0.1.1", | ||
"grunt-traceur": "0.0.1" | ||
}, | ||
"engines": { | ||
"node": ">=0.8.0" | ||
} | ||
} |