GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Compile CoffeeScript to JavaScript · msgflo/msgflo@fcab0a8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .gitignore
  • Gruntfile.coffee
  • package.json
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.gitignore‎

Copy file name to clipboardExpand all lines: .gitignore
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ mosquitto*
44
spec/protocoltemp/
55
Gemfile.lock
66
dist/
7+
lib/
78
*.pem
89

Collapse file

‎Gruntfile.coffee‎

Copy file name to clipboardExpand all lines: Gruntfile.coffee
+21Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@ module.exports = ->
44
@initConfig
55
pkg: pkg
66

7+
# CoffeeScript compilation
8+
coffee:
9+
library:
10+
options:
11+
bare: true
12+
expand: true
13+
cwd: 'src'
14+
src: ['**.coffee']
15+
dest: 'lib'
16+
ext: '.js'
17+
utils:
18+
options:
19+
bare: true
20+
expand: true
21+
cwd: 'src/utils'
22+
src: ['**.coffee']
23+
dest: 'lib/utils'
24+
ext: '.js'
25+
726
# BDD tests on Node.js
827
mochaTest:
928
nodejs:
@@ -48,6 +67,7 @@ module.exports = ->
4867
src: '**/*'
4968

5069
# Grunt plugins used for building
70+
@loadNpmTasks 'grunt-contrib-coffee'
5171
@loadNpmTasks 'grunt-jekyll'
5272

5373
# Grunt plugins used for testing
@@ -65,6 +85,7 @@ module.exports = ->
6585
]
6686

6787
@registerTask 'test', 'Build and run automated tests', (target = 'all') =>
88+
@task.run 'coffee'
6889
@task.run 'mochaTest'
6990
# @task.run 'fbp-test'
7091

Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"fbp-protocol": "^0.8.0",
3333
"fbp-spec": "^0.2.0",
3434
"grunt": "~1.0.1",
35+
"grunt-contrib-coffee": "^2.0.0",
3536
"grunt-gh-pages": "^2.0.0",
3637
"grunt-jekyll": "^0.4.6",
3738
"grunt-mocha-test": "^0.13.2",

0 commit comments

Comments
0 (0)
You are visitor 01402605 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.