diff --git a/.gitignore b/.gitignore index ccd7911..ca7edfb 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ dist .tmp .sass-cache app/components +components diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 8a96469..5f19456 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -15,6 +15,7 @@ module.exports = (grunt) -> src: 'src/' test: 'test/' target: 'dist/' + clean: target: src: ['<%= meta.target %>*js'] coffeelint: src: files: src: ['<%= meta.src %>**/*.coffee'] options: max_line_length: level: 'warn' @@ -24,13 +25,12 @@ module.exports = (grunt) -> '<%= meta.target %>radians.js': [ '<%= meta.src %>**/*.coffee' ] - clean: target: src: ['<%= meta.target %>*js'] mochacli: options: require: ['should'] compilers: ['coffee:coffee-script'] reporter: 'spec' - coffee: ['test/*.coffee'] + test: ['test/*.coffee'] # Task configuration. # concat: @@ -55,15 +55,15 @@ module.exports = (grunt) -> # tasks: ['jshint:lib_test', 'qunit'] # These plugins provide necessary tasks. - grunt.loadNpmTasks('grunt-contrib-clean') - grunt.loadNpmTasks('grunt-contrib-coffee') - grunt.loadNpmTasks('grunt-coffeelint') - grunt.loadNpmTasks('grunt-contrib-watch') - grunt.loadNpmTasks('grunt-mocha-cli') - grunt.loadNpmTasks('grunt-contrib-jshint') + grunt.loadNpmTasks 'grunt-contrib-clean' + grunt.loadNpmTasks 'grunt-contrib-coffee' + grunt.loadNpmTasks 'grunt-coffeelint' + grunt.loadNpmTasks 'grunt-contrib-watch' + grunt.loadNpmTasks 'grunt-mocha-cli' + grunt.loadNpmTasks 'grunt-contrib-jshint' grunt.registerTask 'test', ['mochacli'] grunt.registerTask 'lint', ['coffeelint'] - grunt.registerTask 'build', ['clean', 'lint'] + grunt.registerTask 'build', ['clean', 'lint', 'coffee'] grunt.registerTask 'default', ['lint' , 'test', 'build', 'jshint'] diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..c0b0c20 --- /dev/null +++ b/bower.json @@ -0,0 +1,10 @@ +{ "name": "radians" +, "version": "0.0.0" +, "dependencies": + { "angular": "~1.0.5" + } +, "devDependencies": + { "angular-mocks": "~1.0.5" + , "angular-scenario": "~1.0.5" + } +} diff --git a/examples/.gitignore b/examples/.gitignore new file mode 100644 index 0000000..44be31f --- /dev/null +++ b/examples/.gitignore @@ -0,0 +1 @@ +components diff --git a/examples/simple.html b/examples/simple.html new file mode 100644 index 0000000..5edc073 --- /dev/null +++ b/examples/simple.html @@ -0,0 +1,27 @@ + + + + Simple + + + + + +
+
+
+
+
+ +
{{ model }}
+
+
+ +