Skip to content

Commit

Permalink
Added in dist and remove .js and .css from .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
glentakahashi committed Apr 3, 2016
1 parent 076b6f0 commit e905fde
Show file tree
Hide file tree
Showing 5 changed files with 2,619 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ coverage
.tscache

# Build
dist
dev

# Should I remove these?
*.css
*.map
node_modules
*.js
48 changes: 48 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
module.exports = function(grunt) {

grunt.initConfig({
targethtml: {
dist: {
files: {
'dist/index.html': 'src/index.html'
}
}
},
ts: {
default: {
tsconfig: true,
options: {
additionalFlags: '--outFile dist/app/main.js'
}
}
},
compass: {
default: {
options: {
config: 'compass.rb',
environment: 'production'
}
}
},
clean: {
dist: ["dist"],
dev: ["dev"],
},
uglify: {
dist: {
mangle: false,
files: {
'dist/app/main.min.js': ['dev/app/main.js']
}
}
}
});

grunt.loadNpmTasks("grunt-ts");
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-targethtml');
grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.registerTask('default', ['clean', 'targethtml:dist', 'ts', 'compass']);
};
Loading

0 comments on commit e905fde

Please sign in to comment.