Created
July 9, 2015 09:32
-
-
Save barmatz/806f885686d16a028409 to your computer and use it in GitHub Desktop.
Node ES6 Ember Project
This file contains hidden or 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
| { | |
| "name": "gsmai-ump", | |
| "version": "0.0.1", | |
| "description": "GSMAi User Management Portal", | |
| "author": "", | |
| "license": "ISC", | |
| "private": true, | |
| "ignore": [ | |
| "**/.*", | |
| "node_modules", | |
| "bower_components", | |
| "test", | |
| "tests" | |
| ], | |
| "dependencies": { | |
| "ember": "~1.13.2", | |
| "bootswatch": "~3.3.5", | |
| "font-awesome": "~4.3.0", | |
| "handlebars": "~3.0.3", | |
| "ember-data": "~1.13.4" | |
| } | |
| } |
This file contains hidden or 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
| 'use strict'; | |
| module.exports = function (grunt) { | |
| grunt.initConfig({ | |
| clean: { | |
| app: '.tmp/**' | |
| }, | |
| compass: { | |
| app: { | |
| options: { | |
| sassDir: 'src/stylesheets', | |
| cssDir: 'bin/stylesheets' | |
| } | |
| } | |
| }, | |
| browserify: { | |
| options: { | |
| transform: [ [ 'babelify', { 'stage': 0 } ] ] | |
| }, | |
| app: { | |
| files: { | |
| '.tmp/scripts/app.js': 'src/scripts/app.js' | |
| } | |
| } | |
| }, | |
| concat: { | |
| app: { | |
| files: { | |
| 'bin/scripts/app.js': [ | |
| '.tmp/scripts/templates.js', | |
| '.tmp/scripts/app.js' | |
| ] | |
| } | |
| } | |
| }, | |
| cssmin: { | |
| options: { | |
| sourceMap: true | |
| }, | |
| app: { | |
| files: { | |
| 'bin/stylesheets/app.min.css': 'bin/stylesheets/app.css' | |
| } | |
| } | |
| }, | |
| jshint: { | |
| options: { | |
| jshintrc: true | |
| }, | |
| all: [ '**/*.{js,json}', '.jshintrc', '!{.tmp,bin,bower_components,node_modules}/**' ] | |
| }, | |
| scsslint: { | |
| options: { | |
| config: '.scsslintrc' | |
| }, | |
| all: [ 'src/stylesheets/**/*.scss' ] | |
| }, | |
| emberTemplates: { | |
| options: { | |
| templateCompilerPath: 'bower_components/ember/ember-template-compiler.js', | |
| handlebarsPath: 'bower_components/handlebars/handlebars.js' | |
| }, | |
| app: { | |
| options: { | |
| templateBasePath: /src\/templates\// | |
| }, | |
| files: { | |
| '.tmp/scripts/templates.js': 'src/templates/**/*.hbs' | |
| } | |
| } | |
| }, | |
| uglify: { | |
| options: { | |
| sourceMap: true | |
| }, | |
| all: { | |
| files: { | |
| 'bin/scripts/app.min.js': 'bin/scripts/app.js' | |
| } | |
| } | |
| }, | |
| watch: { | |
| grunt: { | |
| files: [ 'Gruntfile.js', 'package.json' ], | |
| tasks: [ 'default' ] | |
| }, | |
| node: { | |
| files: [ '**/*.{js,json}', '**/.jshintrc', '!{.tmp,bin,bower_components,node_modules,src}/{**,}' ], | |
| tasks: [ 'lint-scripts' ] | |
| }, | |
| scripts: { | |
| files: [ 'src/scripts/**/*.js' ], | |
| tasks: [ 'scripts' ] | |
| }, | |
| stylesheets: { | |
| files: [ 'src/stylesheets/**/{*,.*}.scss', '.scsslintrc' ], | |
| tasks: [ 'stylesheets' ] | |
| }, | |
| templates: { | |
| files: [ 'src/templates/**/*.hbs' ], | |
| tasks: [ 'build-scripts' ] | |
| } | |
| } | |
| }); | |
| grunt.loadNpmTasks('grunt-contrib-clean'); | |
| grunt.loadNpmTasks('grunt-contrib-compass'); | |
| grunt.loadNpmTasks('grunt-contrib-cssmin'); | |
| grunt.loadNpmTasks('grunt-contrib-concat'); | |
| grunt.loadNpmTasks('grunt-contrib-jshint'); | |
| grunt.loadNpmTasks('grunt-contrib-uglify'); | |
| grunt.loadNpmTasks('grunt-contrib-watch'); | |
| grunt.loadNpmTasks('grunt-browserify'); | |
| grunt.loadNpmTasks('grunt-ember-templates'); | |
| grunt.loadNpmTasks('grunt-scss-lint'); | |
| grunt.registerTask('default', [ 'lint', 'build' ]); | |
| grunt.registerTask('scripts', [ 'lint-scripts', 'build-scripts' ]); | |
| grunt.registerTask('stylesheets', [ 'lint-stylesheets', 'build-stylesheets' ]); | |
| grunt.registerTask('lint', [ 'lint-scripts', 'lint-stylesheets' ]); | |
| grunt.registerTask('lint-scripts', [ 'jshint' ]); | |
| grunt.registerTask('lint-stylesheets', [ 'scsslint' ]); | |
| grunt.registerTask('build', [ 'build-scripts', 'build-stylesheets' ]); | |
| grunt.registerTask('build-scripts', [ 'emberTemplates', 'browserify', 'concat', 'uglify', 'clean' ]); | |
| grunt.registerTask('build-stylesheets', [ 'compass', 'cssmin' ]); | |
| }; |
This file contains hidden or 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
| { | |
| "name": "m4d-tracker-tool", | |
| "version": "0.0.0", | |
| "description": "Mobile for developers tracker tool", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1", | |
| "install": "bower install && grunt build" | |
| }, | |
| "author": "", | |
| "license": "ISC", | |
| "devDependencies": { | |
| "babelify": "^6.1.2", | |
| "connect-livereload": "^0.5.3", | |
| "ember-template-compiler": "^1.9.0-alpha", | |
| "grunt": "^0.4.5", | |
| "grunt-browserify": "^3.8.0", | |
| "grunt-contrib-clean": "^0.6.0", | |
| "grunt-contrib-compass": "^1.0.3", | |
| "grunt-contrib-concat": "^0.5.1", | |
| "grunt-contrib-cssmin": "^0.12.3", | |
| "grunt-contrib-jshint": "^0.11.2", | |
| "grunt-contrib-uglify": "^0.9.1", | |
| "grunt-contrib-watch": "^0.6.1", | |
| "grunt-ember-templates": "^0.5.0", | |
| "grunt-scss-lint": "^0.3.6", | |
| "handlebars": "^2.0.0", | |
| "livereload": "^0.3.7" | |
| }, | |
| "dependencies": { | |
| "config": "^1.14.0", | |
| "express": "^4.13.0", | |
| "morgan": "^1.6.0" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment