content-kit-compiler
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -33,6 +33,9 @@ var gulp = require('gulp'); | ||
return esperanto.bundle({ | ||
entry: jsEntry | ||
entry: jsEntry, | ||
resolvePath: function (importee, importer) { | ||
return 'node_modules/' + importee + '.js'; | ||
} | ||
}).then(function(bundle) { | ||
var umd = bundle.toUmd({ name: 'ContentKit' }); | ||
return file(distName, umd.code, { src: true }).pipe(gulp.dest(distDest)); | ||
var built = bundle.concat(); | ||
return file(distName, built.code, { src: true }).pipe(gulp.dest(distDest)); | ||
}); | ||
@@ -50,2 +53,2 @@ }); | ||
gulp.task('default', ['lint', 'build', 'lint-built', 'test']); | ||
gulp.task('default', ['lint', 'build', /*'lint-built',*/ 'test']); |
{ | ||
"name": "content-kit-compiler", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Compiler for content-kit suite: parses markup to json and renders json to markup", | ||
"repository": "https://github.com/bustlelabs/content-kit-compiler", | ||
"main": "dist/content-kit-compiler.js", | ||
"jsnext:main": "src/index.js", | ||
"scripts": { | ||
@@ -21,3 +22,3 @@ "test": "gulp test" | ||
"content-kit-utils": "0.1.1", | ||
"esperanto": "^0.6.11", | ||
"esperanto": "^0.6.13", | ||
"gulp": "^3.8.10", | ||
@@ -24,0 +25,0 @@ "gulp-file": "^0.2.0", |
import HTMLParser from './parsers/html-parser'; | ||
import HTMLRenderer from './renderers/html-renderer'; | ||
import { DefaultBlockTypeSet, DefaultMarkupTypeSet } from './types/default-types'; | ||
import { mergeWithOptions } from '../node_modules/content-kit-utils/src/object-utils'; | ||
import { mergeWithOptions } from 'content-kit-utils/src/object-utils'; | ||
@@ -6,0 +6,0 @@ /** |
import Model from './model'; | ||
import { inherit } from '../../node_modules/content-kit-utils/src/object-utils'; | ||
import { inherit } from 'content-kit-utils/src/object-utils'; | ||
@@ -4,0 +4,0 @@ /** |
import Model from './model'; | ||
import { inherit } from '../../node_modules/content-kit-utils/src/object-utils'; | ||
import { inherit } from 'content-kit-utils/src/object-utils'; | ||
@@ -4,0 +4,0 @@ /** |
@@ -5,6 +5,6 @@ import BlockModel from '../models/block'; | ||
import { DefaultBlockTypeSet, DefaultMarkupTypeSet } from '../types/default-types'; | ||
import { mergeWithOptions } from '../../node_modules/content-kit-utils/src/object-utils'; | ||
import { toArray } from '../../node_modules/content-kit-utils/src/array-utils'; | ||
import { trim, trimLeft, sanitizeWhitespace } from '../../node_modules/content-kit-utils/src/string-utils'; | ||
import { DOMParsingNode, textOfNode, unwrapNode, attributesForNode } from '../../node_modules/content-kit-utils/src/node-utils'; | ||
import { mergeWithOptions } from 'content-kit-utils/src/object-utils'; | ||
import { toArray } from 'content-kit-utils/src/array-utils'; | ||
import { trim, trimLeft, sanitizeWhitespace } from 'content-kit-utils/src/string-utils'; | ||
import { DOMParsingNode, textOfNode, unwrapNode, attributesForNode } from 'content-kit-utils/src/node-utils'; | ||
@@ -11,0 +11,0 @@ var ELEMENT_NODE = window.Node && Node.ELEMENT_NODE || 1; |
@@ -1,3 +0,3 @@ | ||
import { injectIntoString } from '../../node_modules/content-kit-utils/src/string-utils'; | ||
import { sumSparseArray } from '../../node_modules/content-kit-utils/src/array-utils'; | ||
import { injectIntoString } from 'content-kit-utils/src/string-utils'; | ||
import { sumSparseArray } from 'content-kit-utils/src/array-utils'; | ||
@@ -4,0 +4,0 @@ /** |
@@ -5,3 +5,3 @@ import Type from '../types/type'; | ||
import { DefaultBlockTypeSet, DefaultMarkupTypeSet } from '../types/default-types'; | ||
import { mergeWithOptions } from '../../node_modules/content-kit-utils/src/object-utils'; | ||
import { mergeWithOptions } from 'content-kit-utils/src/object-utils'; | ||
@@ -8,0 +8,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { underscore } from '../../node_modules/content-kit-utils/src/string-utils'; | ||
import { underscore } from 'content-kit-utils/src/string-utils'; | ||
@@ -3,0 +3,0 @@ /** |
1103
50484