Permalink
Browse files

Add `grunt import-pure` task to Pure Base and Grids modules into YUI

The Pure modules are imported into YUI's src/ tree until we ditch the
build/, then it will become a build thing only.
  • Loading branch information...
ericf committed Sep 26, 2013
1 parent 0e2607a commit ccf6ac511ad30980c8d4b18c0acc12e7e3c559be
Showing with 40 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +31 −0 Gruntfile.js
  3. +7 −0 bower.json
  4. +1 −0 package.json
View
@@ -1,5 +1,6 @@
build-npm/
release/
bower_components/
build_docs/
build_rollup_tmp*/
build_tmp*/
View
@@ -81,11 +81,42 @@ module.exports = function(grunt) {
}
}
}
},
css_selectors: {
'pure': {
options: {
mutations: [
{search: /pure-/g, replace: 'yui3-'},
{search: /^\.pure/, replace: '.yui3-normalized'}
]
},
files: [
{src : 'bower_components/pure/base.css',
dest: 'src/cssnormalize/css/normalize.css'},
{src : 'bower_components/pure/base-context.css',
dest: 'src/cssnormalize/css/normalize-context.css'},
{src : 'bower_components/pure/grids-core.css',
dest: 'src/cssgrids/css/cssgrids-base.css'},
{src : 'bower_components/pure/grids-units.css',
dest: 'src/cssgrids/css/cssgrids-units.css'},
{src : 'bower_components/pure/grids.css',
dest: 'src/cssgrids/css/cssgrids-responsive.css'}
]
}
}
});
grunt.loadNpmTasks('grunt-yui-contrib');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-css-selectors');
grunt.registerTask('default', ['boot']);
grunt.registerTask('import-pure', ['bower-install', 'css_selectors:pure']);
};
View
@@ -0,0 +1,7 @@
{
"name": "yui",
"version": "3.13.0-beta-1",
"devDependencies": {
"pure": "0.3.0"
}
}
View
@@ -22,6 +22,7 @@
"grunt-yui-contrib": "~0.0.4",
"grunt-lib-contrib": "~0.5.3",
"grunt-contrib-compress": "0.4.10",
"grunt-css-selectors": "~0.1.1",
"archiver": "0.4.5"
},
"scripts": {

0 comments on commit ccf6ac5

Please sign in to comment.