Skip to content

Commit

Permalink
41st Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam-Chen committed Feb 18, 2018
1 parent 703c82c commit 14aa19c
Show file tree
Hide file tree
Showing 5 changed files with 832 additions and 383 deletions.
12 changes: 6 additions & 6 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "rollup-plugin-posthtml-template",
"version": "1.2.0",
"version": "1.3.0",
"description": "Seamless integration between Rollup and PostHTML.",
"main": "dist/rollup-plugin-posthtml-template.cjs.js",
"module": "dist/rollup-plugin-posthtml-template.es.js",
Expand All @@ -25,20 +25,20 @@
},
"homepage": "https://github.com/Vanilla-IceCream/rollup-plugin-posthtml-template#readme",
"dependencies": {
"posthtml": "^0.10.1",
"posthtml": "^0.11.3",
"rollup-pluginutils": "^2.0.1"
},
"devDependencies": {
"babel-jest": "^21.2.0",
"babel-jest": "^22.2.2",
"babel-preset-latest": "^6.24.1",
"coveralls": "^3.0.0",
"jest": "^21.2.1",
"jest": "^22.2.2",
"lite-server": "^2.3.0",
"lodash": "^4.17.4",
"lodash": "^4.17.5",
"posthtml-include": "^1.1.0",
"posthtml-sugarml": "^1.0.0-alpha3",
"regenerator-runtime": "^0.11.0",
"rollup": "^0.51.8",
"rollup": "^0.56.1",
"rollup-plugin-buble": "^0.18.0"
},
"jest": {
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/directives/foo.html
@@ -0,0 +1 @@
<p>Foo</p>
3 changes: 3 additions & 0 deletions test/fixtures/directives/main.js
@@ -0,0 +1,3 @@
import foo from './foo.html';

export default foo;
11 changes: 9 additions & 2 deletions test/test.js
@@ -1,7 +1,7 @@
import { join } from 'path';
import { rollup } from 'rollup';

import posthtml from '../';
import posthtml from '../src';

import sugarml from 'posthtml-sugarml';
import include from 'posthtml-include';
Expand All @@ -24,7 +24,7 @@ describe('rollup-plugin-posthtml', () => {
const { map } = await generate({ format: 'es', sourcemap: true });

expect(map).toBeDefined();
expect(map.file).toBeNull();
expect(map.file).toBe('main.js');
});

it('should be able to use the plugins option', async () => {
Expand All @@ -51,4 +51,11 @@ describe('rollup-plugin-posthtml', () => {
expect(code).toBeDefined();
expect(code).toMatch(/<p>Foo<\/p>/);
});

// it('should be able to use the directives option', async () => {
// const { generate } = await bundler('fixtures/directives/main.js', { directives: '' });
// const { code } = await generate({ format: 'iife', name: 'posthtml' });
//
// expect(code).toBeDefined();
// });
});

0 comments on commit 14aa19c

Please sign in to comment.