Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Commit 211b233

Browse files
committed
moved builder/*.js files and fixed all references
passing unit tests and building frontend #133
1 parent 717e139 commit 211b233

25 files changed

Lines changed: 64 additions & 64 deletions

Gruntfile.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,52 +15,52 @@ module.exports = function (grunt) {
1515
banner: '/* \n * <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy") %> \n * \n * <%= pkg.author %>, and the web community.\n * Licensed under the <%= pkg.license %> license. \n * \n * Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice. \n *\n */\n\n',
1616
},
1717
patternlab: {
18-
src: './builder/patternlab.js',
19-
dest: './builder/patternlab.js'
18+
src: './core/lib/patternlab.js',
19+
dest: './core/lib/patternlab.js'
2020
},
2121
object_factory: {
22-
src: './builder/object_factory.js',
23-
dest: './builder/object_factory.js'
22+
src: './core/lib/object_factory.js',
23+
dest: './core/lib/object_factory.js'
2424
},
2525
lineage: {
26-
src: './builder/lineage_hunter.js',
27-
dest: './builder/lineage_hunter.js'
26+
src: './core/lib/lineage_hunter.js',
27+
dest: './core/lib/lineage_hunter.js'
2828
},
2929
media_hunter: {
30-
src: './builder/media_hunter.js',
31-
dest: './builder/media_hunter.js'
30+
src: './core/lib/media_hunter.js',
31+
dest: './core/lib/media_hunter.js'
3232
},
3333
patternlab_grunt: {
34-
src: './builder/patternlab_grunt.js',
35-
dest: './builder/patternlab_grunt.js'
34+
src: './core/lib/patternlab_grunt.js',
35+
dest: './core/lib/patternlab_grunt.js'
3636
},
3737
patternlab_gulp: {
38-
src: './builder/patternlab_gulp.js',
39-
dest: './builder/patternlab_gulp.js'
38+
src: './core/lib/patternlab_gulp.js',
39+
dest: './core/lib/patternlab_gulp.js'
4040
},
4141
parameter_hunter: {
42-
src: './builder/parameter_hunter.js',
43-
dest: './builder/parameter_hunter.js'
42+
src: './core/lib/parameter_hunter.js',
43+
dest: './core/lib/parameter_hunter.js'
4444
},
4545
pattern_exporter: {
46-
src: './builder/pattern_exporter.js',
47-
dest: './builder/pattern_exporter.js'
46+
src: './core/lib/pattern_exporter.js',
47+
dest: './core/lib/pattern_exporter.js'
4848
},
4949
pattern_assembler: {
50-
src: './builder/pattern_assembler.js',
51-
dest: './builder/pattern_assembler.js'
50+
src: './core/lib/pattern_assembler.js',
51+
dest: './core/lib/pattern_assembler.js'
5252
},
5353
pseudopattern_hunter: {
54-
src: './builder/pseudopattern_hunter.js',
55-
dest: './builder/pseudopattern_hunter.js'
54+
src: './core/lib/pseudopattern_hunter.js',
55+
dest: './core/lib/pseudopattern_hunter.js'
5656
},
5757
list_item_hunter: {
58-
src: './builder/list_item_hunter.js',
59-
dest: './builder/list_item_hunter.js'
58+
src: './core/lib/list_item_hunter.js',
59+
dest: './core/lib/list_item_hunter.js'
6060
},
6161
style_modifier_hunter: {
62-
src: './builder/style_modifier_hunter.js',
63-
dest: './builder/style_modifier_hunter.js'
62+
src: './core/lib/style_modifier_hunter.js',
63+
dest: './core/lib/style_modifier_hunter.js'
6464
}
6565
},
6666
copy: {
@@ -142,7 +142,7 @@ module.exports = function (grunt) {
142142
options: {
143143
configFile: './.eslintrc'
144144
},
145-
target: ['./builder/*']
145+
target: ['./core/lib/*']
146146
},
147147
bsReload: {
148148
css: path.resolve(paths().public.root + '**/*.css')
@@ -153,7 +153,7 @@ module.exports = function (grunt) {
153153
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
154154

155155
//load the patternlab task
156-
grunt.task.loadTasks('./builder/');
156+
grunt.task.loadTasks('./core/lib/');
157157

158158
grunt.registerTask('default', ['patternlab', 'copy:main', 'copy:styleguide']);
159159

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ This repository ships with two `package.json` files, a `Gruntfile.js`, and a `gu
3434
To run patternlab-node using grunt, do the following in the directory you downloaded and extracted the zipped release:
3535

3636
1. Run `npm install` from the command line
37-
2. Optionally, delete `package.gulp.json`, `gulpfile.js`, and `builder/patternlab_gulp.js` files if you are certain you don't need it.
38-
* Not deleting `builder/patternlab_gulp.js` may cause a harmless error when running grunt. Delete it.
37+
2. Optionally, delete `package.gulp.json`, `gulpfile.js`, and `core/lib/patternlab_gulp.js` files if you are certain you don't need it.
38+
* Not deleting `core/lib/patternlab_gulp.js` may cause a harmless error when running grunt. Delete it.
3939
3. Run `grunt` or `grunt serve` from the command line
4040

4141
This creates all patterns, the styleguide, and the pattern lab site. It's strongly recommended to run `grunt serve` to have BrowserSync spin up and serve the files to you.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var patternlab_engine = function (config) {
2222
patternlab = {};
2323

2424
patternlab.package = fs.readJSONSync('./package.json');
25-
patternlab.config = config || fs.readJSONSync(path.resolve(__dirname, '../config.json'));
25+
patternlab.config = config || fs.readJSONSync(path.resolve(__dirname, '../../config.json'));
2626

2727
var paths = patternlab.config.paths;
2828

0 commit comments

Comments
 (0)