Skip to content

Commit

Permalink
Add Dangerfile and provide bundle size info
Browse files Browse the repository at this point in the history
Fixes #1787.
  • Loading branch information
mAAdhaTTah committed Oct 25, 2020
1 parent 6913204 commit f2492d2
Show file tree
Hide file tree
Showing 15 changed files with 1,051 additions and 26 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/danger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Danger

on:
pull_request:
branches: [ master ]

jobs:
run:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 0
- run: npm ci
- name: Danger
run: npx danger ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion components/prism-core.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference lib="WebWorker"/>

var _self = (typeof window !== 'undefined')
? window // if in browser
? window // if in browser
: (
(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)
? self // if in worker
Expand All @@ -22,6 +22,8 @@ var Prism = (function (_self){
var lang = /\blang(?:uage)?-([\w-]+)\b/i;
var uniqueId = 0;

uniqueId++


var _ = {
/**
Expand Down
2 changes: 1 addition & 1 deletion components/prism-core.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions components/prism-javascript.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
console.log('Hello!')
Prism.languages.javascript = Prism.languages.extend('clike', {
'class-name': [
Prism.languages.clike['class-name'],
Expand Down
Loading

0 comments on commit f2492d2

Please sign in to comment.