Skip to content

Commit

Permalink
feat: added new logo & semantic-release config
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobertoldo committed Jun 15, 2022
1 parent fcc9163 commit f34d36e
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 17 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: "CodeQL"
name: 'CodeQL'

on:
push:
branches: [ "main" ]
branches: ['master']
pull_request:
branches: [ "main" ]
branches: ['master']
schedule:
- cron: '00 10 * * 6'

Expand All @@ -20,20 +20,19 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
language: ['javascript']

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
5 changes: 5 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"release": {
"branches": ["master", "release"]
}
}
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ before_script:
git:
depth: 3

cache:
directories:
- '$HOME/.npm'

jobs:
include:
- stage: release
node_js: lts/*

deploy:
provider: script
skip_cleanup: true
script:
- npx semantic-release
# on:
# branch: release

notifications:
email:
on_success: change
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<h1 align="center">Webpack MJML Plugin</h1>
<p align="center">
<img
width="320px"
src="https://raw.githubusercontent.com/matteobertoldo/webpack-mjml-plugin/assets/webpack-mjml-plugin.svg?sanitize=true"
alt="Webpack MJML Plugin - Logo"
/>
</p>

<p align="center">Webpack <a href="https://mjml.io">MJML</a> Plugin for compiling MJML files.</p>

Expand Down Expand Up @@ -56,13 +62,15 @@ module.exports = {
extension: options.extension,
outputPath: options.outputPath,
// MJML options (https://documentation.mjml.io/#inside-node-js)
filePath: path.resolve(__dirname, 'dist/to/mjml'),
filePath: path.resolve(__dirname, 'src/to/mjml'),
keepComments: false
})
]
};
```

In addition to the options available in the MJML documentation, there are 3 additional parameters described in the table below:

| Parameter | Type | Default | Description |
| -------------------- | :------: | :-------------: | --------------------------------------------------- |
| `inputPath` | `string` | `undefined` | The path where `.mjml` files are located. |
Expand Down
Empty file removed assets/.gitkeep
Empty file.
73 changes: 73 additions & 0 deletions assets/webpack-mjml-plugin-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/webpack-mjml-plugin-splash-image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f34d36e

Please sign in to comment.