Skip to content

Commit

Permalink
Merge pull request #133 from edgarmueller/topic/rename-apps-dir
Browse files Browse the repository at this point in the history
Rename apps dir to examples
  • Loading branch information
edgarmueller committed Nov 6, 2015
2 parents 196af21 + d1d1b64 commit 71c80a0
Show file tree
Hide file tree
Showing 29 changed files with 34 additions and 267 deletions.
2 changes: 1 addition & 1 deletion .bowerrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"directory": "app/bower_components"
"directory": "examples/bower_components"
}
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ tests/**/*.js
# logs
*.log

# test app
app/bower_components/
app/css/jsonforms.css
app/js/jsonforms.js
app/js/jsonforms.min.js
# examples
examples/bower_components/
examples/css/jsonforms.css
examples/js/jsonforms.js
examples/js/jsonforms.min.js

# webstorm
.idea
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ before_script:
- npm run update-webdriver

script:
- grunt app
- grunt examples
- grunt test
- grunt coveralls:karma_tests
36 changes: 18 additions & 18 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = function(grunt) {
mainModule: 'jsonforms',
externalModules: ['ui.bootstrap', 'ui.validate', 'ui.grid', 'ui.grid.edit', 'ui.grid.pagination', 'ui.grid.autoResize']
},
app: {
examples: {
src: 'components/**/*.js',
dest: 'temp/jsonforms.js'
}
Expand All @@ -88,10 +88,10 @@ module.exports = function(grunt) {
},

copy: {
app: {
examples: {
files: [
// dist to app
{expand:true, cwd: 'dist/', src: ['**'], dest: 'app'}
// dist to examples
{expand:true, cwd: 'dist/', src: ['**'], dest: 'examples'}
]
}
},
Expand Down Expand Up @@ -151,7 +151,7 @@ module.exports = function(grunt) {
server: {
options: {
port: 8000,
base: 'app'
base: 'examples'
}
}
},
Expand All @@ -177,9 +177,9 @@ module.exports = function(grunt) {
files: 'templates/**',
tasks: ['ngtemplates:dist', "concat:dist", 'uglify:dist']
},
app: {
examples: {
files: ['dist/**'],
tasks: ['copy:app']
tasks: ['copy:examples']
}
},

Expand All @@ -188,9 +188,9 @@ module.exports = function(grunt) {
'dist/**',
'temp/**'
],
app: [
'app/js/jsonforms*',
'app/css/jsonforms*'
examples: [
'examples/js/jsonforms*',
'examples/css/jsonforms*'
],
dev: [
'components/references.ts',
Expand All @@ -202,7 +202,7 @@ module.exports = function(grunt) {
'tests/**/*.js.map'
],
downloads: [
'app/bower_components',
'examples/bower_components',
'node_modules'
],
coverage: [
Expand All @@ -214,16 +214,16 @@ module.exports = function(grunt) {
all: [
'dist',
'temp',
'app/js/jsonforms*',
'app/css/jsonforms*',
'examples/js/jsonforms*',
'examples/css/jsonforms*',
'components/references.ts',
'components/**/*.js',
'components/**/*.js.map',
'tests/references.ts',
'tests/**/*.js',
'!tests/**/*.conf.js',
'tests/**/*.js.map',
'app/bower_components',
'examples/bower_components',
'node_modules',
'coverage',
'.tscache'
Expand Down Expand Up @@ -301,16 +301,16 @@ module.exports = function(grunt) {
'uglify:dist'
]);

// Build example application
grunt.registerTask('app', [
// Build example applications
grunt.registerTask('examples', [
'dist',
'copy:app'
'copy:examples'
]);

// Test unit and e2e tests
grunt.registerTask('test', [
'clean:coverage',
'app',
'examples',
'ts:test',
'karma',
'connect',
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ create forms by leveraging the capabilities of JSON and JSON schema.
JSONForms uses [Grunt](http://gruntjs.com/) to build and test.

* Run ```grunt``` or ```grunt dist``` to build the distribution
* Run ```grunt app``` to build the application
* Run ```grunt examples``` to build the application
* Run ```grunt test``` to test the framework and the application
* Run ```grunt watch``` during development to automatically rebuild the distribution and application when any of the development files are touched.
* Run ```grunt clean:all``` if you want to clean the whole project.
Expand Down
233 changes: 0 additions & 233 deletions app/css/main.css

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 71c80a0

Please sign in to comment.