Skip to content

Commit

Permalink
Updated the project with ES6Kadoo v2.1 (no Gulp, Github Actions).
Browse files Browse the repository at this point in the history
  • Loading branch information
jclo committed Jan 29, 2024
1 parent 0f0149d commit 3b2fd08
Show file tree
Hide file tree
Showing 28 changed files with 4,144 additions and 17,534 deletions.
18 changes: 9 additions & 9 deletions .eslintrc
Expand Up @@ -3,7 +3,7 @@
* Set JavaScript language options
*/
"parserOptions": {
"sourceType": "module",
"sourceType": "module"
},
/**
* Set Environnement
Expand All @@ -22,13 +22,13 @@
"extends": "airbnb-base",
// Overwritten airbnb's rules:
"rules": {
strict: ["error", "global"],
func-names: ["error", "never"],
space-before-function-paren: ["error", { "anonymous": "never", "named": "never", "asyncArrow": "always" }],
no-plusplus: ["error", { "allowForLoopAfterthoughts": true }],
"no-multi-spaces": [2, { exceptions: { "VariableDeclarator": true } }],
comma-style: ["error", "first", { "exceptions": { "ArrayExpression": true, "ObjectExpression": true } }],
indent: ["error", 2, { "VariableDeclarator": { "const": 2 }, "SwitchCase": 1 }],
no-multiple-empty-lines: ["error", { "max": 2, "maxEOF": 0 }]
"strict": ["error", "global"],
"func-names": ["error", "never"],
"space-before-function-paren": ["error", { "anonymous": "never", "named": "never", "asyncArrow": "always" }],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-multi-spaces": [2, { "exceptions": { "VariableDeclarator": true } }],
"comma-style": ["error", "first", { "exceptions": { "ArrayExpression": true, "ObjectExpression": true } }],
"indent": ["error", 2, { "VariableDeclarator": { "const": 2 }, "SwitchCase": 1 }],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 0 }]
}
}
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,23 @@
# This workflow will run tests using node.
name: CI pipeline

on:
push:
branches: [ master, main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
- run: npm run build:dev
- run: npm test
- run: npm run check:coverage

- name: Coveralls
uses: coverallsapp/github-action@v2
# -- oOo --
3 changes: 0 additions & 3 deletions .gitignore
@@ -1,7 +1,4 @@
.DS_Store
__trash
_old_*

.nyc_output
coverage
node_modules
6 changes: 3 additions & 3 deletions .husky/pre-commit
@@ -1,8 +1,8 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run build
npm run makedist
npm run build:dev
npm run build:prod
npm test
npm run check-coverage
npm run check:coverage
npm run report
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,12 @@
### HEAD


### 1.0.2 (January 29, 2024)

* Updated the project with ES6Kadoo v2.1 (no Gulp, Github Actions),
* ...,


### 1.0.1 (January 30, 2022)

* Updated the project dependencies,
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr)
Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 4 additions & 8 deletions README.md
Expand Up @@ -2,7 +2,7 @@

[![NPM version][npm-image]][npm-url]
[![GitHub last commit][commit-image]][commit-url]
[![Travis CI][travis-image]][travis-url]
[![Github workflow][ci-image]][ci-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![npm bundle size][npm-bundle-size-image]][npm-bundle-size-url]
[![License][license-image]](LICENSE.md)
Expand Down Expand Up @@ -137,19 +137,15 @@ SVG.noConflict();
[npm-image]: https://img.shields.io/npm/v/@mobilabs/svg.svg?style=flat-square
[release-image]: https://img.shields.io/github/release/jclo/svg.svg?include_prereleases&style=flat-square
[commit-image]: https://img.shields.io/github/last-commit/jclo/svg.svg?style=flat-square
[travis-image]: https://img.shields.io/travis/jclo/svg.svg?style=flat-square
[ci-image]: https://github.com/jclo/svg/actions/workflows/ci.yml/badge.svg
[coveralls-image]: https://img.shields.io/coveralls/jclo/svg/master.svg?style=flat-square
[dependencies-image]: https://david-dm.org/jclo/svg/status.svg?theme=shields.io
[devdependencies-image]: https://david-dm.org/jclo/svg/dev-status.svg?theme=shields.io
[npm-bundle-size-image]: https://img.shields.io/bundlephobia/minzip/@mobilabs/svg.svg?style=flat-square
[license-image]: https://img.shields.io/npm/l/@mobilabs/svg.svg?style=flat-square

[npm-url]: https://www.npmjs.com/package/@mobilabs/svg
[release-url]: https://github.com/jclo/svg/tags
[commit-url]: https://github.com/jclo/svg/commits/master
[travis-url]: https://app.travis-ci.com/jclo/svg
[ci-url]: https://github.com/jclo/es6kadoo/actions/workflows/ci.yml
[coveralls-url]: https://coveralls.io/github/jclo/svg?branch=master
[dependencies-url]: https://david-dm.org/jclo/svg
[devdependencies-url]: https://david-dm.org/jclo/svg?type=dev
[license-url]: http://opensource.org/licenses/MIT
[npm-bundle-size-url]: https://img.shields.io/bundlephobia/minzip/@mobilabs/svg
[license-url]: http://opensource.org/licenses/MIT
2 changes: 1 addition & 1 deletion _dist/LICENSE.md
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr)
Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 4 additions & 8 deletions _dist/README.md
Expand Up @@ -2,7 +2,7 @@

[![NPM version][npm-image]][npm-url]
[![GitHub last commit][commit-image]][commit-url]
[![Travis CI][travis-image]][travis-url]
[![Github workflow][ci-image]][ci-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![npm bundle size][npm-bundle-size-image]][npm-bundle-size-url]
[![License][license-image]](LICENSE.md)
Expand Down Expand Up @@ -137,19 +137,15 @@ SVG.noConflict();
[npm-image]: https://img.shields.io/npm/v/@mobilabs/svg.svg?style=flat-square
[release-image]: https://img.shields.io/github/release/jclo/svg.svg?include_prereleases&style=flat-square
[commit-image]: https://img.shields.io/github/last-commit/jclo/svg.svg?style=flat-square
[travis-image]: https://img.shields.io/travis/jclo/svg.svg?style=flat-square
[ci-image]: https://github.com/jclo/svg/actions/workflows/ci.yml/badge.svg
[coveralls-image]: https://img.shields.io/coveralls/jclo/svg/master.svg?style=flat-square
[dependencies-image]: https://david-dm.org/jclo/svg/status.svg?theme=shields.io
[devdependencies-image]: https://david-dm.org/jclo/svg/dev-status.svg?theme=shields.io
[npm-bundle-size-image]: https://img.shields.io/bundlephobia/minzip/@mobilabs/svg.svg?style=flat-square
[license-image]: https://img.shields.io/npm/l/@mobilabs/svg.svg?style=flat-square

[npm-url]: https://www.npmjs.com/package/@mobilabs/svg
[release-url]: https://github.com/jclo/svg/tags
[commit-url]: https://github.com/jclo/svg/commits/master
[travis-url]: https://app.travis-ci.com/jclo/svg
[ci-url]: https://github.com/jclo/es6kadoo/actions/workflows/ci.yml
[coveralls-url]: https://coveralls.io/github/jclo/svg?branch=master
[dependencies-url]: https://david-dm.org/jclo/svg
[devdependencies-url]: https://david-dm.org/jclo/svg?type=dev
[license-url]: http://opensource.org/licenses/MIT
[npm-bundle-size-url]: https://img.shields.io/bundlephobia/minzip/@mobilabs/svg
[license-url]: http://opensource.org/licenses/MIT
6 changes: 3 additions & 3 deletions _dist/lib/svg.js
Expand Up @@ -3,12 +3,12 @@
*
* A tiny Javascript library intended to create and manage SVG elements in the DOM.
* (you can download it from npm or github repositories)
* Copyright (c) 2022 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr).
* Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr).
* Released under the MIT license. You may obtain a copy of the License
* at: http://www.opensource.org/licenses/mit-license.php).
* Built from ES6Kadoo v1.0.10.
* Built from ES6Kadoo v2.1.0.
* ************************************************************************** */
/*! Generated by Kadoo v1.0.6 */
/*! Generated by Kadoo v1.2.0 */
// ESLint declarations
/* global define */
/* eslint no-shadow: ['error', { 'allow': ['root'] }] */
Expand Down

0 comments on commit 3b2fd08

Please sign in to comment.