Skip to content

Commit

Permalink
Transfer from hg
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyjb committed Sep 2, 2015
1 parent c0d1e12 commit ec1d7f9
Show file tree
Hide file tree
Showing 158 changed files with 26,116 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,3 @@
.sass-cache
jasmine
node_modules
143 changes: 143 additions & 0 deletions Gruntfile.coffee
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,143 @@
module.exports = (grunt) ->

# Project configuration
grunt.initConfig({

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

coffee:
options:
join: true

build:
files:
'src/tmp/content-tools.js': [
'src/scripts/namespace.coffee'

# UI
'src/scripts/ui/ui.coffee'
'src/scripts/ui/dialogs.coffee'
'src/scripts/ui/flashes.coffee'
'src/scripts/ui/ignition.coffee'
'src/scripts/ui/inspector.coffee'
'src/scripts/ui/modal.coffee'
'src/scripts/ui/toolbox.coffee'

# UI - Dialogs
'src/scripts/ui/dialogs/dialogs.coffee'
'src/scripts/ui/dialogs/image.coffee'
'src/scripts/ui/dialogs/link.coffee'
'src/scripts/ui/dialogs/properties.coffee'
'src/scripts/ui/dialogs/table.coffee'
'src/scripts/ui/dialogs/video.coffee'

# Other
'src/scripts/editor.coffee'
'src/scripts/history.coffee'
'src/scripts/styles.coffee'
'src/scripts/tools.coffee'
]

sandbox:
files:
'sandbox/sandbox.js': [
'src/sandbox/image-uploader.coffee'
'src/sandbox/sandbox.coffee'
]

spec:
files:
'spec/spec-helper.js': 'src/spec/spec-helper.coffee'
'spec/content-tools-spec.js': [
'src/spec/history.coffee'
'src/spec/inspector.coffee'
'src/spec/shortcuts.coffee'
'src/spec/tools.coffee'
'src/spec/styles.coffee'
'src/spec/ui.coffee'
]

sass:
options:
banner: '/*! <%= pkg.name %> v<%= pkg.version %> by <%= pkg.author.name %> <<%= pkg.author.email %>> (<%= pkg.author.url %>) */'
sourcemap: 'none'
style: 'compressed'

build:
files:
'build/content-tools.min.css':
'src/styles/content-tools.scss'

sandbox:
files:
'sandbox/sandbox.css': 'src/sandbox/sandbox.scss'

uglify:
options:
banner: '/*! <%= pkg.name %> v<%= pkg.version %> by <%= pkg.author.name %> <<%= pkg.author.email %>> (<%= pkg.author.url %>) */\n'
mangle: false

build:
src: 'build/content-tools.js'
dest: 'build/content-tools.min.js'

concat:
build:
src: [
'external/scripts/content-edit.js'
'src/tmp/content-tools.js'
]
dest: 'build/content-tools.js'

clean:
build: ['src/tmp']

watch:
build:
files: [
'src/scripts/**/*.coffee',
'src/styles/**/*.scss'
]
tasks: ['build']

sandbox:
files: [
'src/sandbox/*.coffee',
'src/sandbox/*.scss'
]
tasks: ['sandbox']

spec:
files: ['src/spec/*.coffee']
tasks: ['spec']
})

# Plug-ins
grunt.loadNpmTasks 'grunt-contrib-clean'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-concat'
grunt.loadNpmTasks 'grunt-contrib-sass'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-watch'

# Tasks
grunt.registerTask 'build', [
'coffee:build'
'sass:build'
'concat:build'
'uglify:build'
'clean:build'
]

grunt.registerTask 'sandbox', [
'coffee:sandbox'
'sass:sandbox'
]

grunt.registerTask 'spec', [
'coffee:spec'
]

grunt.registerTask 'watch-build', ['watch:build']
grunt.registerTask 'watch-sandbox', ['watch:sandbox']
grunt.registerTask 'watch-spec', ['watch:spec']
5 changes: 2 additions & 3 deletions LICENSE
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT) The MIT License (MIT)


Copyright (c) 2015 Anthony Blackshaw Copyright (c) 2014 Getme Limited (http://getme.co.uk)


Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,5 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.

28 changes: 28 additions & 0 deletions SpecRunner.html
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ContentTools spec runner</title>

<!-- Jasmine -->
<link rel="shortcut icon" type="image/png" href="jasmine/lib/jasmine-2.0.3/jasmine_favicon.png">
<link rel="stylesheet" type="text/css" href="jasmine/lib/jasmine-2.0.3/jasmine.css">

<script type="text/javascript" src="jasmine/lib/jasmine-2.0.3/jasmine.js"></script>
<script type="text/javascript" src="jasmine/lib/jasmine-2.0.3/jasmine-html.js"></script>
<script type="text/javascript" src="jasmine/lib/jasmine-2.0.3/boot.js"></script>

<!-- Source -->
<script type="text/javascript" src="build/content-tools.js"></script>

<!-- Spec -->
<script type="text/javascript" src="spec/spec-helper.js"></script>
</head>
<body>
<div id="test"></div>
<script>

</script>
<script type="text/javascript" src="spec/content-tools-spec.js"></script>
</body>
</html>
Loading

0 comments on commit ec1d7f9

Please sign in to comment.