Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
chore: repo maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Jul 27, 2018
1 parent b709f57 commit fec093f
Show file tree
Hide file tree
Showing 9 changed files with 1,133 additions and 1,040 deletions.
15 changes: 15 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
language: node_js
dist: trusty
sudo: required

language: node_js
node_js:
- 8

branches:
only:
- master
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
".sass-cache": true,
"node_modules/": true
},
"files.insertFinalNewline": true
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true
}
18 changes: 11 additions & 7 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ module.exports = (grunt) ->
require('load-grunt-tasks')(grunt)

grunt.initConfig
pkg: grunt.file.readJSON("package.json")
pkg: grunt.file.readJSON('package.json')

coffeelint:
coffeelintr:
options:
configFile: 'coffeelint.json'
source: ['src/ui-router-breadcrumbs.coffee']
source: ['src/ui-router-breadcrumbs.coffee', 'Gruntfile.coffee']

eslint:
target: ['docs/**/*.js', 'scripts/**/*.js']

coffee:
compileJoined:
Expand Down Expand Up @@ -99,9 +102,10 @@ module.exports = (grunt) ->
livereload: true

# Grunt task(s).
grunt.registerTask "default", ["coffeelint", "coffee"]
grunt.registerTask "serve", ["connect"]
grunt.registerTask "develop", ["default", "watch"]
grunt.registerTask "build", ["default", "ngAnnotate", "sass", "concat", "uglify", "cssmin"]
grunt.registerTask 'default', ['coffeelintr', 'coffee']
grunt.registerTask 'serve', ['connect']
grunt.registerTask 'lint', ['coffeelintr', 'eslint']
grunt.registerTask 'develop', ['default', 'watch']
grunt.registerTask 'build', ['default', 'ngAnnotate', 'sass', 'concat', 'uglify', 'cssmin']

return
14 changes: 8 additions & 6 deletions docs/app.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
'use strict';

var app = angular.module('myApp', ['ui.router', 'ngSanitize', 'uiBreadcrumbs']);

app.config(['$stateProvider', '$urlRouterProvider',
function($stateProvider, $urlRouterProvider) {
function ($stateProvider, $urlRouterProvider) {

$urlRouterProvider.otherwise('/home');

$urlRouterProvider.when('/', '/home');

$stateProvider.state('app', {
abstract: true,
data: {
label: 'App',
}
})
abstract: true,
data: {
label: 'App',
}
})

.state('app.home', {
url: '/home',
Expand Down
Loading

0 comments on commit fec093f

Please sign in to comment.