Skip to content

Commit

Permalink
Merge pull request #496 from materializecss/refactor-tests-and-build-…
Browse files Browse the repository at this point in the history
…process

Refactor tests and build process
  • Loading branch information
wuda-io authored Aug 29, 2024
2 parents 4c88e1f + 45657bd commit c8e29a9
Show file tree
Hide file tree
Showing 71 changed files with 4,360 additions and 10,592 deletions.
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

0 comments on commit c8e29a9

Please sign in to comment.