Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
chore: fix happo, use microbundle to create the dist files, use circl…
Browse files Browse the repository at this point in the history
…eci v2 (#63)

BREAKING CHANGE: Since we now use microbundle to create the library. The output changes a bit and the output file in a CJS file only. If you need to use the library with a script tag, you should use the UMD build.
  • Loading branch information
tleunen authored Jun 22, 2018
1 parent 1cc5e3c commit 56c7a80
Show file tree
Hide file tree
Showing 13 changed files with 4,142 additions and 1,199 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
jobs:
build:
docker:
- image: cypress/browsers:chrome63-ff57
steps:
- checkout
- run: npm i
- run: npm test
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
node_modules/
.rpt2_cache/

dist/
happo-snapshots/
45 changes: 27 additions & 18 deletions .happo.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
const FirefoxTarget = require('happo-target-firefox');

module.exports = {
bind: "localhost",
driver: "chrome",
port: 4567,
sourceFiles: [
"node_modules/pixi.js/dist/pixi.js",
"dist/pixi-multistyle-text.js",
"test/tests.js"
],
stylesheets: [],
publicDirectories: [],
snapshotsFolder: 'happo-snapshots',
viewports: {
large: {
width: 2048,
height: 2048,
}
},
};
bind: 'localhost',
port: 4567,
snapshotsFolder: 'happo-snapshots',
resultSummaryFilename: 'resultSummary.json',
uploader: null,
targets: [
new FirefoxTarget({
bind: '0.0.0.0',
port: 4567,
sourceFiles: [
'node_modules/pixi.js/dist/pixi.js',
'dist/pixi-multistyle-text.umd.js',
'test/tests.js'
],
stylesheets: [],
publicDirectories: [],
viewports: {
large: {
width: 2048,
height: 2048,
}
},
}),
]
};
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ The `align`, `wordWrap`, `wordWrapWidth`, and `breakWord` properties are ignored
If text is rendered without any value assigned to a given parameter, Pixi's defaults are used.

## Demo

Open `demo/index.html` in a browser for several helpful examples.

Or:
```
$ npm run demo
```
Expand Down
6 changes: 0 additions & 6 deletions circle.yml

This file was deleted.

2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/4.5.0/pixi.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/highlight.min.js"></script>
<script src="../dist/pixi-multistyle-text.js"></script>
<script src="../dist/pixi-multistyle-text.umd.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body>
Expand Down
1 change: 0 additions & 1 deletion index.js

This file was deleted.

Loading

0 comments on commit 56c7a80

Please sign in to comment.