Skip to content

Commit

Permalink
Initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
passy committed May 1, 2013
0 parents commit 0dc71a0
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
.tmp
22 changes: 22 additions & 0 deletions .jshintrc
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
}
62 changes: 62 additions & 0 deletions Gruntfile.js
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'
]);
};
5 changes: 5 additions & 0 deletions app/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class HellWorld {
constructor(word) {
console.log('Hello ' + world);
}
}
16 changes: 16 additions & 0 deletions package.json
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"
}
}

0 comments on commit 0dc71a0

Please sign in to comment.