Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil committed Apr 5, 2019
0 parents commit 1dd0846
Show file tree
Hide file tree
Showing 23 changed files with 8,214 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "entry",
"corejs": 2
}
]
]
}
2 changes: 2 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
> 0.25%
not dead
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[*]
root = true
end_of_line = lf
indent_style = tab
trim_trailing_whitespace = true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
usr/
37 changes: 37 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['Gruntfile.js', 'public/js/**/*.js'],
options: {
esversion: 6
}
},
browserify: {
dist: {
files: {
// destination for transpiled js : source js
'dist/js/app.js': 'public/js/app.js'
},
options: {
transform: [['babelify']],
browserifyOptions: {
debug: true
}
}
}
},
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n'
},
dist: {
files: {
'dist/js/app.min.js': 'dist/js/app.js'
}
}
},
});
grunt.registerTask('default', ['jshint', 'browserify:dist', 'uglify']);
};
Loading

0 comments on commit 1dd0846

Please sign in to comment.