Skip to content

Commit 7c8c5fd

Browse files
committed
feature(modal) drop support of dist, legacy
1 parent 8e50973 commit 7c8c5fd

6 files changed

Lines changed: 8 additions & 27 deletions

File tree

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
lib
21
webpack.config.js
32
example
43
screen

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ import modal from '@cloudcmd/modal';
4242

4343
Using build file:
4444

45-
```html
46-
<script src="./node_modules/@cloudcmd/modal/dist/modal.min.js"></script>
47-
```
48-
4945
## open(el[, options])
5046

5147
```js

lib/modal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
const store = require('fullstore/legacy');
4-
const currify = require('currify/legacy');
3+
const store = require('fullstore');
4+
const currify = require('currify');
55
const createElement = require('@cloudcmd/create-element');
66

77
require('../css/modal.css');

lib/parse-images.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
const wraptile = require('wraptile/legacy');
4-
const store = require('fullstore/legacy');
3+
const wraptile = require('wraptile');
4+
const store = require('fullstore');
55
const createElement = require('@cloudcmd/create-element');
66

77
const showTitle = require('./show-title');

madrun.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ module.exports = {
1111
'watch:coverage': () => run('watch', 'redrun coverage'),
1212
'coverage': () => 'nyc npm test',
1313
'report': () => 'nyc report --reporter=text-lcov | coveralls',
14-
'compile:server': () => 'babel -d legacy lib',
15-
'compile:client': () => 'webpack --progress --mode production',
16-
'build': () => run(['clean', 'build:*']),
17-
'build:js': () => run(['compile:*', 'legacy:*']),
18-
'legacy:index': () => 'echo "module.exports = require(\'./modal\');" > legacy/index.js',
19-
'clean': () => 'rimraf dist legacy',
20-
'wisdom': () => run('build'),
2114
'lint:css': () => 'stylelint css/*.css',
2215
'lint:js': () => 'putout lib test madrun.js webpack.config.js',
2316
'lint': () => run('lint:*'),

package.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "git",
88
"url": "git://github.com/cloudcmd/modal.git"
99
},
10-
"main": "legacy/modal.js",
10+
"main": "lib/modal.js",
1111
"scripts": {
1212
"watch": "madrun watch",
1313
"watch:client": "madrun watch:client",
@@ -17,13 +17,6 @@
1717
"watch:coverage": "madrun watch:coverage",
1818
"coverage": "madrun coverage",
1919
"report": "madrun report",
20-
"compile:server": "madrun compile:server",
21-
"compile:client": "madrun compile:client",
22-
"build": "madrun build",
23-
"build:js": "madrun build:js",
24-
"legacy:index": "madrun legacy:index",
25-
"clean": "madrun clean",
26-
"wisdom": "madrun wisdom",
2720
"lint:css": "madrun lint:css",
2821
"lint:js": "madrun lint:js",
2922
"lint": "madrun lint",
@@ -70,13 +63,13 @@
7063
"supertape": "^1.2.3",
7164
"url-loader": "^2.1.0",
7265
"webpack": "^4.1.0",
73-
"webpack-cli": "^3.0.8",
74-
"wraptile": "^3.0.0"
66+
"webpack-cli": "^3.0.8"
7567
},
7668
"dependencies": {
7769
"@cloudcmd/create-element": "^1.0.0",
7870
"currify": "^3.0.0",
79-
"fullstore": "^2.0.2"
71+
"fullstore": "^2.0.2",
72+
"wraptile": "^3.0.0"
8073
},
8174
"publishConfig": {
8275
"access": "public"

0 commit comments

Comments
 (0)