Permalink
Browse files

feat(core): rename task from `inline` to `assets_inline`

  • Loading branch information...
sparanoid committed Aug 12, 2015
1 parent 3ac1b9c commit 0b36f9910a01db101099337220139cf22d95a6eb
Showing with 13 additions and 13 deletions.
  1. +2 −2 Gruntfile.js
  2. +10 −10 README.md
  3. +1 −1 tasks/assets_inline.js
@@ -29,7 +29,7 @@ module.exports = function(grunt) {
},
// Configuration to be run (and then tested).
inline: {
assets_inline: {
default_options: {
files: {
'tmp/default_options': 'test/fixtures/index.html',
@@ -54,7 +54,7 @@ module.exports = function(grunt) {
// Whenever the "test" task is run, first clean the "tmp" dir, then run this
// plugin's task(s), then test the result.
grunt.registerTask('test', ['clean', 'inline', 'nodeunit']);
grunt.registerTask('test', ['clean', 'assets_inline', 'nodeunit']);
// By default, lint and run all tests.
grunt.registerTask('default', ['jshint', 'test']);
@@ -19,15 +19,15 @@ One the plugin has been installed, it may be enabled inside your Gruntfile with
grunt.loadNpmTasks('grunt-assets-inline');
```
## The "inline" task
## The "assets_inline" task
### Overview
In your project's Gruntfile, add a section named `inline` to the data object passed into `grunt.initConfig()`.
In your project's Gruntfile, add a section named `assets_inline` to the data object passed into `grunt.initConfig()`.
```js
grunt.initConfig({
inline: {
assets_inline: {
options: {
jsTags: { // optional
start: '<script type="text/javascript">', // default: <script>
@@ -54,7 +54,7 @@ Minify scripts with UglifyJS.
```js
grunt.initConfig({
inline: {
assets_inline: {
all: {
options: {
minify: true
@@ -75,7 +75,7 @@ When you have absolute paths for your external assets, it helps to add the local
```js
grunt.initConfig({
inline: {
assets_inline: {
all: {
options: {
jsDir: "../",
@@ -108,7 +108,7 @@ If you want to smoosh `img` sources to Base64 in HTML, you can set `inlineImg` t
```js
grunt.initConfig({
inline: {
assets_inline: {
all: {
options: {
inlineImg: true
@@ -129,7 +129,7 @@ If you want to smoosh SVGs in `img` tags in HTML, you can set `inlineSvg` to tru
```js
grunt.initConfig({
inline: {
assets_inline: {
all: {
options: {
inlineSvg: true
@@ -150,7 +150,7 @@ Defaults to `false`.
```js
grunt.initConfig({
inline: {
assets_inline: {
all: {
options: {
inlineSvg: true,
@@ -178,7 +178,7 @@ This option only searchs for URLs begin with `../`.
```js
grunt.initConfig({
inline: {
assets_inline: {
all: {
options: {
assetsUrlPrefix: '<%= config.base %>/assets/'
@@ -197,7 +197,7 @@ Defaults to `""`.
```js
grunt.initConfig({
inline: {
assets_inline: {
all: {
options: {
includeTag: "?assets-inline"
@@ -23,7 +23,7 @@ module.exports = function(grunt) {
var url = require('url');
var uglify = require('uglify-js');
grunt.registerMultiTask('inline', 'Turn your distribution into something pastable.', function() {
grunt.registerMultiTask('assets_inline', 'Turn your distribution into something pastable.', function() {
var options = this.options({
jsDir: "",

0 comments on commit 0b36f99

Please sign in to comment.