Ajout de la base de test + npm upgrade

This commit is contained in:
Anthony Dumas 2019-07-18 16:41:52 +02:00
parent 9fae286c11
commit e39dec5dc6
6 changed files with 5550 additions and 1934 deletions

View File

@ -1,3 +1,3 @@
{
"presets": ["es2015-ie"]
}
"presets": ["@babel/preset-env"]
}

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +1,7 @@
"use strict";
var $btnMail = $("#btn-mail");
$btnMail.removeAttr("disabled");
$btnMail.click(function (evt) {
evt.preventDefault();
var salutation = bonsoir.salutation();

5114
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,59 +1,65 @@
{
"name": "anthony-dumas-portfolio",
"version": "2.0.0-SNAPSHOT",
"description": "anthony-dumas-portfolio",
"keywords": [
"sass",
"bulma",
"css",
"start"
],
"author": "Anthony Dumas <anthony@dumas.css>",
"repository": {
"type": "git",
"url": "git+https://github.com/AdamasFR/CV_Web_Dumas.git"
},
"license": "MIT",
"devDependencies": {
"autoprefixer": "^9.5.1",
"ava": "^1.4.1",
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-preset-es2015-ie": "^6.7.0",
"bulma": "^0.7.2",
"co-exec": "^1.0",
"codecov": "^1.0.1",
"ghooks": "^1.2.4",
"node-sass": "^4.12.0",
"npm-run-all": "^4.1.5",
"nyc": "^14.1.0",
"postcss-cli": "^6.1.1",
"standard": "^8.4.0"
},
"scripts": {
"css-deploy": "npm run css-build && npm run css-postcss",
"css-build": "node-sass _sass/main.scss css/main.css",
"css-postcss": "postcss --use autoprefixer --output css/main.css css/main.css",
"css-watch": "npm run css-build -- --watch",
"deploy": "npm run css-deploy && npm run js-build",
"js-build": "babel _javascript --out-dir lib",
"js-watch": "npm run js-build -- --watch",
"auto-loading": "npx browser-sync start --server --files '*.html' --files 'css/*.css'",
"start": "npm-run-all --parallel css-watch js-watch auto-loading",
"report-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov",
"standard": "standard index.js",
"test": "nyc ./node_modules/.bin/ava -v"
},
"dependencies": {
"bonsoir.js": "^1.0.2",
"browser-sync": "^2.26.5",
"global": "^4.3.2",
"jquery": "^3.4.1",
"npx": "^10.2.0"
},
"config": {
"ghooks": {
"pre-commit": "npm run standard"
}
}
}
{
"name": "anthony-dumas-portfolio",
"version": "2.0.0-SNAPSHOT",
"description": "anthony-dumas-portfolio",
"keywords": [
"sass",
"bulma",
"css",
"start"
],
"author": "Anthony Dumas <anthony@dumas.css>",
"repository": {
"type": "git",
"url": "git+https://github.com/AdamasFR/CV_Web_Dumas.git"
},
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/preset-react": "^7.0.0",
"autoprefixer": "^9.6.1",
"ava": "^1.4.1",
"babel-loader": "^8.0.6",
"babel-preset-env": "^1.7.0",
"babel-preset-es2015-ie": "^6.7.0",
"bulma": "^0.7.5",
"co-exec": "^1.0",
"codecov": "^1.0.1",
"ghooks": "^1.2.4",
"node-sass": "^4.12.0",
"npm-run-all": "^4.1.5",
"nyc": "^14.1.1",
"postcss-cli": "^6.1.3",
"standard": "^8.4.0",
"webpack": "^4.36.1",
"webpack-cli": "^3.3.6"
},
"scripts": {
"css-deploy": "npm run css-build && npm run css-postcss",
"css-build": "node-sass _sass/main.scss css/main.css",
"css-postcss": "postcss --use autoprefixer --output css/main.css css/main.css",
"css-watch": "npm run css-build -- --watch",
"deploy": "npm run css-deploy && npm run js-build",
"js-build": "babel _javascript --out-dir lib",
"js-watch": "npm run js-build -- --watch",
"auto-loading": "npx browser-sync start --server --files '*.html' --files 'css/*.css'",
"start": "npm-run-all --parallel css-watch js-watch auto-loading",
"report-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov",
"standard": "standard index.js",
"test": "nyc ./node_modules/.bin/ava -v"
},
"dependencies": {
"bonsoir.js": "^1.0.2",
"browser-sync": "^2.26.7",
"global": "^4.4.0",
"jquery": "^3.4.1",
"npx": "^10.2.0"
},
"config": {
"ghooks": {
"pre-commit": "npm run standard"
}
}
}

5
test.js Normal file
View File

@ -0,0 +1,5 @@
import test from 'ava';
test('base', t => {
t.pass();
});