shepherd.js
Advanced tools
Comparing version 2.0.0-beta.20 to 2.0.0-beta.21
{ | ||
"fixturesFolder": "test/fixtures", | ||
"integrationFolder": "test/integration", | ||
"coverageFolder": "coverage", | ||
"fixturesFolder": "test/cypress/fixtures", | ||
"integrationFolder": "test/cypress/integration", | ||
"pluginsFile": "test/cypress/plugins/index.js", | ||
"supportFile": "test/cypress/support/index.js", | ||
"video": false | ||
} |
/*! | ||
* /*! shepherd.js 2.0.0-beta.20 * / | ||
* /*! shepherd.js 2.0.0-beta.21 * / | ||
* | ||
@@ -4,0 +4,0 @@ */ |
/*! | ||
* /*! shepherd.js 2.0.0-beta.20 * / | ||
* /*! shepherd.js 2.0.0-beta.21 * / | ||
* | ||
@@ -4,0 +4,0 @@ */ |
{ | ||
"name": "shepherd.js", | ||
"version": "2.0.0-beta.20", | ||
"version": "2.0.0-beta.21", | ||
"repository": { | ||
@@ -24,11 +24,13 @@ "type": "git", | ||
"cy:open": "./node_modules/.bin/cypress open", | ||
"cy:run": "./node_modules/.bin/cypress run", | ||
"cy:run": "./node_modules/.bin/cypress run --env coverage=true", | ||
"mocha-headless-chrome": "mocha-headless-chrome -c coverage/coverage.json -f test/unit/index.html -a no-sandbox", | ||
"posttest:ci": "nyc report --reporter=lcov --reporter=text", | ||
"start": "yarn watch", | ||
"start-test-server": "http-server", | ||
"test:build": "cross-env NODE_ENV=test yarn build", | ||
"test:ci": "yarn test:unit:ci && yarn test:cy:ci", | ||
"test:cy:ci": "start-server-and-test start-test-server http://localhost:8080 cy:run", | ||
"test:cy:ci": "yarn test:build && start-server-and-test start-test-server http://localhost:8080 cy:run", | ||
"test:cy:watch": "start-server-and-test start-test-server http://localhost:8080 cy:open", | ||
"test:unit:ci": "karma start --single-run --browsers ChromeHeadlessNoSandbox", | ||
"test:unit:watch": "karma start --browsers Chrome", | ||
"test": "mocha", | ||
"test:unit:ci": "cross-env NODE_ENV=test webpack --config webpack.test.config.js && yarn mocha-headless-chrome", | ||
"test:unit:watch": "webpack-dev-server --config webpack.test.config.js", | ||
"watch": "yarn clean && webpack --watch --mode development" | ||
@@ -49,12 +51,15 @@ }, | ||
"autoprefixer": "^9.1.3", | ||
"babel-core": "^6.26.0", | ||
"babel-core": "^6.26.3", | ||
"babel-loader": "^7.1.4", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-plugin-istanbul": "^4.1.6", | ||
"babel-plugin-lodash": "^3.3.4", | ||
"babel-preset-env": "^1.6.1", | ||
"browser-sync": "^2.24.6", | ||
"browser-sync": "^2.24.7", | ||
"browser-sync-webpack-plugin": "^2.2.2", | ||
"chai": "^4.1.2", | ||
"chai-as-promised": "^7.1.1", | ||
"codeclimate-test-reporter": "^0.5.0", | ||
"copy-webpack-plugin": "^4.5.2", | ||
"cross-env": "^5.2.0", | ||
"css-loader": "^1.0.0", | ||
@@ -69,17 +74,12 @@ "cypress": "^3.0.3", | ||
"file-loader": "^2.0.0", | ||
"glob": "^7.1.2", | ||
"glob": "^7.1.3", | ||
"http-server": "^0.11.1", | ||
"inject-loader": "^4.0.1", | ||
"istanbul-instrumenter-loader": "^3.0.1", | ||
"karma": "^3.0.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-coverage": "^1.1.2", | ||
"karma-coverage-istanbul-reporter": "^2.0.2", | ||
"karma-mocha": "^1.3.0", | ||
"karma-mocha-reporter": "^2.2.5", | ||
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-webpack": "^3.0.0", | ||
"istanbul-lib-coverage": "^1.2.0", | ||
"lodash-webpack-plugin": "^0.11.5", | ||
"mocha": "^5.2.0", | ||
"mocha-headless-chrome": "^2.0.1", | ||
"node-sass": "^4.9.2", | ||
"nyc": "^12.0.2", | ||
"postcss": "^7.0.2", | ||
@@ -100,3 +100,7 @@ "postcss-loader": "^3.0.0", | ||
"node": ">= 6.*" | ||
}, | ||
"nyc": { | ||
"temp-directory": "./coverage", | ||
"report-dir": "./coverage" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { parseShorthand } from './utils'; | ||
import { parseShorthand } from './utils.js'; | ||
import _ from 'lodash'; | ||
@@ -3,0 +3,0 @@ |
@@ -1,4 +0,4 @@ | ||
import { Evented } from './evented'; | ||
import { Step } from './step'; | ||
import { Shepherd, Tour } from './tour'; | ||
import { Evented } from './evented.js'; | ||
import { Step } from './step.js'; | ||
import { Shepherd, Tour } from './tour.js'; | ||
@@ -5,0 +5,0 @@ Object.assign(Shepherd, { Tour, Step, Evented }); |
import _ from 'lodash'; | ||
import { Evented } from './evented'; | ||
import { Evented } from './evented.js'; | ||
import 'element-matches'; | ||
import { bindAdvance, bindButtonEvents, bindCancelLink, bindMethods } from './bind'; | ||
import { createFromHTML, parsePosition, setupPopper } from './utils'; | ||
import { bindAdvance, bindButtonEvents, bindCancelLink, bindMethods } from './bind.js'; | ||
import { createFromHTML, parsePosition, setupPopper } from './utils.js'; | ||
@@ -7,0 +7,0 @@ /** |
import _ from 'lodash'; | ||
import { Evented } from './evented'; | ||
import { Step } from './step'; | ||
import { bindMethods } from './bind'; | ||
import { Evented } from './evented.js'; | ||
import { Step } from './step.js'; | ||
import { bindMethods } from './bind.js'; | ||
@@ -6,0 +6,0 @@ const Shepherd = new Evented(); |
@@ -13,3 +13,3 @@ /* global require, module, __dirname */ | ||
const glob = require('glob'); | ||
const sassArray = glob.sync('./src/css/shepherd-*.scss'); | ||
const sassArray = glob.sync('./src/scss/shepherd-*.scss'); | ||
const sassEntries = sassArray.reduce((acc, item) => { | ||
@@ -22,3 +22,3 @@ const name = item.replace('.scss', '').replace('./src/', ''); | ||
// Theme SCSS files | ||
sassEntries['css/welcome'] = './docs/welcome/sass/welcome.scss'; | ||
sassEntries['css/welcome'] = './docs/welcome/scss/welcome.scss'; | ||
@@ -37,6 +37,6 @@ module.exports = [{ | ||
include: [ | ||
path.resolve(__dirname, 'src/css') | ||
path.resolve(__dirname, 'src/scss') | ||
], | ||
exclude: [ | ||
path.resolve(__dirname, 'docs/welcome/sass') | ||
path.resolve(__dirname, 'docs/welcome/scss') | ||
], | ||
@@ -69,3 +69,3 @@ use: [ | ||
include: [ | ||
path.resolve(__dirname, 'docs/welcome/sass') | ||
path.resolve(__dirname, 'docs/welcome/scss') | ||
], | ||
@@ -72,0 +72,0 @@ use: [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
45
860080
7700