Permalink
Browse files

Update CI configs from the latest grunt-contrib-internal.

  • Loading branch information...
1 parent 6a982da commit 84e9d9e533cb600828998e93de30cf40e157a595 @XhmikosR XhmikosR committed Apr 7, 2016
Showing with 50 additions and 25 deletions.
  1. +12 −3 .travis.yml
  2. +12 −12 README.md
  3. +26 −10 appveyor.yml
View
@@ -1,6 +1,15 @@
sudo: false
language: node_js
node_js:
- - '5'
- - '4'
- - '0.10'
+ - "0.10"
+ - "0.12"
+ - "4"
+ - "5"
+ - "iojs"
+before_install:
+ - if [ "$TRAVIS_NODE_VERSION" = "0.10" ]; then npm install -g npm@2; fi
+matrix:
+ fast_finish: true
+cache:
+ directories:
+ - node_modules
View
@@ -38,7 +38,7 @@ Concatenated files will be joined on this string.
Type: `String` or `false` or `function`
Default: `'JST'`
-The namespace in which the precompiled templates will be assigned. *Use dot notation (e.g. App.Templates) for nested namespaces or false for no namespace wrapping.* When false with `amd` or `commonjs` option set `true`, templates will be returned directly from the AMD/CommonJS wrapper.
+The namespace in which the precompiled templates will be assigned. *Use dot notation (e.g. App.Templates) for nested namespaces or false for no namespace wrapping.* When false with `amd` or `commonjs` option set `true`, templates will be returned directly from the AMD/CommonJS wrapper.
Example:
```js
@@ -47,7 +47,7 @@ options: {
}
```
-You can generate nested namespaces based on the file system paths of your templates by providing a function. The function will be called with one argument (the template filepath). *The function must return a dot notation based on the filepath*.
+You can generate nested namespaces based on the file system paths of your templates by providing a function. The function will be called with one argument (the template filepath). *The function must return a dot notation based on the filepath*.
Example:
```js
@@ -125,7 +125,7 @@ var templates = require('./templates')(Handlebars);
#### processContent
Type: `Function`
-This option accepts a function which takes two arguments (the template file content, and the filepath) and returns a string which will be used as the source for the precompiled template object. The example below removes leading and trailing spaces to shorten templates.
+This option accepts a function which takes two arguments (the template file content, and the filepath) and returns a string which will be used as the source for the precompiled template object. The example below removes leading and trailing spaces to shorten templates.
```js
options: {
@@ -140,7 +140,7 @@ options: {
#### processAST
Type: `Function`
-This option accepts a function which takes one argument (the parsed Abstract Syntax Tree) and returns a modified version which will be used as the source for the precompiled template object. The example below removes any partial and replaces it with the text `foo`.
+This option accepts a function which takes one argument (the parsed Abstract Syntax Tree) and returns a modified version which will be used as the source for the precompiled template object. The example below removes any partial and replaces it with the text `foo`.
```js
options: {
@@ -158,7 +158,7 @@ options: {
#### processName
Type: `Function`
-This option accepts a function which takes one argument (the template filepath) and returns a string which will be used as the key for the precompiled template object. The example below stores all templates on the default JST namespace in capital letters.
+This option accepts a function which takes one argument (the template filepath) and returns a string which will be used as the key for the precompiled template object. The example below stores all templates on the default JST namespace in capital letters.
```js
options: {
@@ -176,7 +176,7 @@ This option accepts a function which takes one argument (the partial filepath) a
```js
options: {
processPartialName: function(filePath) { // input: templates/_header.hbs
- var pieces = filePath.split("/");
+ var pieces = filePath.split('/');
return pieces[pieces.length - 1]; // output: _header.hbs
}
}
@@ -220,8 +220,8 @@ This option allows you to specify a hash of options which will be passed directl
options: {
compilerOptions: {
knownHelpers: {
- "my-helper": true,
- "another-helper": true
+ 'my-helper': true,
+ 'another-helper': true
},
knownHelpersOnly: true
}
@@ -234,11 +234,11 @@ options: {
handlebars: {
compile: {
options: {
- namespace: "JST"
+ namespace: 'JST'
},
files: {
- "path/to/result.js": "path/to/source.hbs",
- "path/to/another.js": ["path/to/sources/*.hbs", "path/to/more/*.hbs"]
+ 'path/to/result.js': 'path/to/source.hbs',
+ 'path/to/another.js': ['path/to/sources/*.hbs', 'path/to/more/*.hbs']
}
}
}
@@ -287,4 +287,4 @@ handlebars: {
Task submitted by [Tim Branyen](http://tbranyen.com)
-*This file was generated on Fri Mar 18 2016 18:55:47.*
+*This file was generated on Thu Apr 07 2016 15:13:50.*
View
@@ -1,28 +1,44 @@
-# AppVeyor file
# http://www.appveyor.com/docs/appveyor-yml
-version: "{build}"
-
clone_depth: 10
+version: "{build}"
+
+# What combinations to test
environment:
matrix:
- - nodejs_version: "5"
- - nodejs_version: "4"
- nodejs_version: "0.10"
+ platform: x86
+ - nodejs_version: "0.12"
+ platform: x86
+ - nodejs_version: "4"
+ platform: x64
+ - nodejs_version: "4"
+ platform: x86
+ - nodejs_version: "5"
+ platform: x86
install:
- - ps: Install-Product node $env:nodejs_version
+ - ps: Install-Product node $env:nodejs_version $env:platform
+ - ps: >-
+ if ($env:nodejs_version -eq "0.10") {
+ npm -g install npm@2
+ $env:PATH="$env:APPDATA\npm;$env:PATH"
+ }
- npm install
-build: off
-
test_script:
+ # Output useful info for debugging
- node --version && npm --version
- - npm test
+ # We test multiple Windows shells because of prior stdout buffering issues
+ # filed against Grunt. https://github.com/joyent/node/issues/3584
+ - ps: "npm test # PowerShell" # Pass comment to PS for easier debugging
+ - cmd: npm test
+
+build: off
matrix:
fast_finish: true
cache:
- - 'node_modules -> package.json' # local npm modules
+ - node_modules -> package.json

0 comments on commit 84e9d9e

Please sign in to comment.