Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor tests and build process #496

Merged
merged 13 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
{
"parserOptions": {
"ecmaVersion": 2015
"ecmaVersion": 2018
},

"env": {
"browser": true,
"node": true
},

"ignores": ["./spec/support/"],

"rules": {
"semi": "error",
"use-isnan": "error",
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- name: Run tests
run: |
npm i
npm run build
npm run test

- name: Nightly build
Expand Down
4 changes: 1 addition & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
node_modules/
package.json
package.json.lock
bin/
dist/
css/
dist/
292 changes: 0 additions & 292 deletions Gruntfile.js

This file was deleted.

Empty file added empty.js
Empty file.
41 changes: 41 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Playground</title>
<link rel="stylesheet" href="/dist/css/materialize.min.css">
<script src="/dist/js/materialize.min.js"></script>
<style>
.row .s12 {
background-color: #fa08;
padding: 1rem;
}
</style>
</head>
<body>
<main class="container mt-5">
<div class="mb-5">
<button class="btn tonal" onclick="M.AutoInit()">Init</button>
<button class="btn tonal" onclick="alert(formselect1.value)">Read</button>
</div>
<!-- HTML -->
<div class="input-field outlined s12">
<select id="formselect1" multiple>
<option value="" disabled>Choose your option</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
<label for="formselect1">Materialize Select</label>
</div>

<div class="row mt-5 g-1">
<div class="s12 m6 l3">a</div>
<div class="s12 m6 l3">b</div>
<div class="s12 m6 l3">c</div>
<div class="s12 m6 l3">d</div>
</div>
</main>
</body>
</html>
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const { Button, Grid } = require('@materializecss/materialize');

// This is experimental

const html = Grid(['<p>Are you cool?</p>', Button('Yes'), Button('No')].join(''));
console.log(html);
Loading
Loading