Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Manifest auto-updating

  • Loading branch information...
commit 7fac0d3342680746995e45e365bc7e0ead90d172 1 parent 553da10
Henri Bergius bergie authored
Showing with 49 additions and 30 deletions.
  1. +15 −2 Gruntfile.coffee
  2. +15 −11 component.json
  3. +19 −17 package.json
17 Gruntfile.coffee
View
@@ -3,6 +3,13 @@ module.exports = ->
@initConfig
pkg: @file.readJSON 'package.json'
+ # Updating the package manifest files
+ noflo_manifest:
+ update:
+ files:
+ 'component.json': ['graphs/*', 'components/*']
+ 'package.json': ['graphs/*', 'components/*']
+
# CoffeeScript compilation
coffee:
spec:
@@ -38,8 +45,11 @@ module.exports = ->
input: 'browser/groups.js'
output: 'browser/groups.js'
tokens: [
- token: '.coffee'
- string: '.js'
+ token: '.coffee"'
+ string: '.js"'
+ ,
+ token: ".coffee'"
+ string: ".js'"
]
# JavaScript minification for the browser
@@ -79,6 +89,7 @@ module.exports = ->
command: './node_modules/.bin/noflo-test --spec test/*.coffee'
# Grunt plugins used for building
+ @loadNpmTasks 'grunt-noflo-manifest'
@loadNpmTasks 'grunt-contrib-coffee'
@loadNpmTasks 'grunt-component'
@loadNpmTasks 'grunt-component-build'
@@ -95,6 +106,7 @@ module.exports = ->
# Our local tasks
@registerTask 'build', 'Build NoFlo for the chosen target platform', (target = 'all') =>
@task.run 'coffee'
+ @task.run 'noflo_manifest'
if target is 'all' or target is 'browser'
@task.run 'component'
@task.run 'component_build'
@@ -103,6 +115,7 @@ module.exports = ->
@registerTask 'test', 'Build NoFlo and run automated tests', (target = 'all') =>
@task.run 'coffeelint'
+ @task.run 'noflo_manifest'
@task.run 'exec:test'
@task.run 'coffee'
if target is 'all' or target is 'nodejs'
26 component.json
View
@@ -38,22 +38,26 @@
"noflo": {
"icon": "tags",
"components": {
- "ReadGroups": "components/ReadGroups.coffee",
- "RemoveGroups": "components/RemoveGroups.coffee",
- "Regroup": "components/Regroup.coffee",
- "Group": "components/Group.coffee",
- "GroupZip": "components/GroupZip.coffee",
- "FilterByGroup": "components/FilterByGroup.coffee",
- "Objectify": "components/Objectify.coffee",
- "ReadGroup": "components/ReadGroup.coffee",
- "SendByGroup": "components/SendByGroup.coffee",
"CollectGroups": "components/CollectGroups.coffee",
"CollectObject": "components/CollectObject.coffee",
"CollectTree": "components/CollectTree.coffee",
+ "FilterByGroup": "components/FilterByGroup.coffee",
"FirstGroup": "components/FirstGroup.coffee",
+ "Group": "components/Group.coffee",
+ "GroupByObjectKey": "components/GroupByObjectKey.coffee",
+ "GroupZip": "components/GroupZip.coffee",
"MapGroup": "components/MapGroup.coffee",
"MergeGroups": "components/MergeGroups.coffee",
- "GroupByObjectKey": "components/GroupByObjectKey.coffee"
+ "Objectify": "components/Objectify.coffee",
+ "ReadGroup": "components/ReadGroup.coffee",
+ "ReadGroups": "components/ReadGroups.coffee",
+ "Regroup": "components/Regroup.coffee",
+ "RemoveGroups": "components/RemoveGroups.coffee",
+ "SendByGroup": "components/SendByGroup.coffee"
+ },
+ "graphs": {
+ "ExtractHashValue": "graphs/ExtractHashValue.fbp",
+ "ObjectifyByGroup": "graphs/ObjectifyByGroup.fbp"
}
}
-}
+}
36 package.json
View
@@ -47,33 +47,35 @@
"grunt-contrib-watch": "~0.3.1",
"component-json": "~0.1.4",
"grunt-combine": "~0.8.3",
- "grunt-component": "~0.1.2"
+ "grunt-component": "~0.1.2",
+ "grunt-noflo-manifest": "^0.1.2"
},
"noflo": {
"icon": "tags",
"components": {
- "ReadGroups": "./components/ReadGroups.coffee",
- "RemoveGroups": "./components/RemoveGroups.coffee",
- "Regroup": "./components/Regroup.coffee",
- "Group": "./components/Group.coffee",
- "GroupZip": "./components/GroupZip.coffee",
- "FilterByGroup": "./components/FilterByGroup.coffee",
- "Objectify": "./components/Objectify.coffee",
- "ReadGroup": "./components/ReadGroup.coffee",
- "SendByGroup": "components/SendByGroup.coffee",
- "CollectGroups": "./components/CollectGroups.coffee",
+ "CollectGroups": "components/CollectGroups.coffee",
"CollectObject": "components/CollectObject.coffee",
"CollectTree": "components/CollectTree.coffee",
- "FirstGroup": "./components/FirstGroup.coffee",
- "MapGroup": "./components/MapGroup.coffee",
- "MergeGroups": "./components/MergeGroups.coffee",
- "GroupByObjectKey": "./components/GroupByObjectKey.coffee"
+ "FilterByGroup": "components/FilterByGroup.coffee",
+ "FirstGroup": "components/FirstGroup.coffee",
+ "Group": "components/Group.coffee",
+ "GroupByObjectKey": "components/GroupByObjectKey.coffee",
+ "GroupZip": "components/GroupZip.coffee",
+ "MapGroup": "components/MapGroup.coffee",
+ "MergeGroups": "components/MergeGroups.coffee",
+ "Objectify": "components/Objectify.coffee",
+ "ReadGroup": "components/ReadGroup.coffee",
+ "ReadGroups": "components/ReadGroups.coffee",
+ "Regroup": "components/Regroup.coffee",
+ "RemoveGroups": "components/RemoveGroups.coffee",
+ "SendByGroup": "components/SendByGroup.coffee"
},
"graphs": {
- "ObjectifyByGroup": "./graphs/ObjectifyByGroup.fbp"
+ "ExtractHashValue": "graphs/ExtractHashValue.fbp",
+ "ObjectifyByGroup": "graphs/ObjectifyByGroup.fbp"
}
},
"scripts": {
"test": "grunt test"
}
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.