Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Commit 4ab18ca

Browse files
committed
chore: npmigore,yarn,page 增加 classes.md
1 parent ca77e29 commit 4ab18ca

File tree

10 files changed

+33
-23
lines changed

10 files changed

+33
-23
lines changed

gh-page.sh

+10-9
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ node ../packages/nodeppt/bin/nodeppt build component.md
99
node ../packages/nodeppt/bin/nodeppt build layout.md
1010
node ../packages/nodeppt/bin/nodeppt build media.md
1111
node ../packages/nodeppt/bin/nodeppt build background.md
12+
node ../packages/nodeppt/bin/nodeppt build classes.md
1213

13-
cd dist
14+
# cd dist
1415

15-
echo 'nodeppt.js.org' > CNAME
16-
git init
17-
git add -A
18-
date_str=`date "+DATE: %m/%d/%Y%nTIME: %H:%M:%S"`
19-
git commit -m "build with nodeppt on $date_str"
20-
#exit
21-
echo 'push remote github'
22-
git push -u [email protected]:ksky521/nodeppt.git master:gh-pages --force
16+
# echo 'nodeppt.js.org' > CNAME
17+
# git init
18+
# git add -A
19+
# date_str=`date "+DATE: %m/%d/%Y%nTIME: %H:%M:%S"`
20+
# git commit -m "build with nodeppt on $date_str"
21+
# #exit
22+
# echo 'push remote github'
23+
# git push -u [email protected]:ksky521/nodeppt.git master:gh-pages --force

lerna.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
"packages": [
33
"packages/*"
44
],
5-
"npmClient": "npm",
5+
6+
"npmClient": "yarn",
67
"command": {
78
"bootstrap": {
89
"npmClientArgs": [
9-
"--no-package-lock"
10+
"--no-lockfile"
1011
]
1112
}
1213
},

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "root",
2+
"name": "nodeppt",
33
"private": true,
44
"devDependencies": {
55
"lerna": "^3.10.6"

packages/nodeppt-js/.npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
__tests__
22
__mocks__
3+
package-lock.json
4+
yarn.lock

packages/nodeppt-serve/.npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
__tests__
22
__mocks__
3+
package-lock.json
4+
yarn.lock

packages/nodeppt-serve/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ const Service = require('./Service');
1212
function resolveEntry(entry) {
1313
const context = process.cwd();
1414

15-
entry = entry || findExisting(context, ['main.js', 'index.js', 'App.san', 'app.san']);
15+
entry = entry || findExisting(context, ['main.js', 'index.js']);
1616

1717
if (!entry) {
1818
console.log(chalk.red(`Failed to locate entry file in ${chalk.yellow(context)}.`));
19-
console.log(chalk.red('Valid entry file should be one of: main.js, index.js, App.san or app.san.'));
19+
console.log(chalk.red('Valid entry file should be one of: main.js, index.js.'));
2020
process.exit(1);
2121
}
2222
if (!fs.existsSync(path.resolve(context, entry))) {

packages/nodeppt-serve/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,27 @@
3636
"case-sensitive-paths-webpack-plugin": "2.1.2",
3737
"chalk": "^2.4.2",
3838
"commander": "^2.19.0",
39-
"copy-webpack-plugin": "4.6.0",
40-
"css-loader": "2.1.0",
39+
"copy-webpack-plugin": "~5.0.3",
40+
"css-loader": "2.1.1",
4141
"file-loader": "3.0.1",
4242
"friendly-errors-webpack-plugin": "1.7.0",
4343
"html-loader": "0.5.5",
4444
"html-webpack-plugin": "^4.0.0-beta.3",
4545
"import-global": "^0.1.0",
4646
"lodash.defaultsdeep": "^4.6.0",
47-
"mini-css-extract-plugin": "0.5.0",
48-
"node-sass": "4.11.0",
47+
"mini-css-extract-plugin": "0.7.0",
48+
"node-sass": "4.12.0",
4949
"nodeppt-js": "^2.1.2",
5050
"nodeppt-parser": "^2.1.2",
5151
"nodeppt-shared-utils": "^2.0.2",
5252
"optimize-css-assets-webpack-plugin": "^5.0.1",
5353
"portfinder": "^1.0.20",
5454
"sass-loader": "7.1.0",
55-
"semver": "^5.6.0",
55+
"semver": "^6.1.1",
5656
"style-loader": "0.23.1",
5757
"terser-webpack-plugin": "^1.2.1",
5858
"url-loader": "1.1.2",
59-
"webpack": "4.29.0",
59+
"webpack": "~4.29.0",
6060
"webpack-chain": "5.1.0",
6161
"webpack-dev-server": "3.1.14",
6262
"webpack-merge": "4.2.1"
+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
__tests__
22
__mocks__
3+
package-lock.json
4+
yarn.lock

packages/nodeppt/.npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
__tests__
22
__mocks__
3+
package-lock.json
4+
yarn.lock

packages/nodeppt/bin/nodeppt

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ program
2828
.action((entry, cmd) => {
2929
require('nodeppt-serve').serve(entry, cleanArgs(cmd));
3030
})
31-
.on('--help', function() {
31+
.on('--help', () => {
3232
console.log(' Examples:');
3333
console.log();
3434
console.log(' nodeppt serve slide.md');
@@ -43,7 +43,7 @@ program
4343
.action((entry, cmd) => {
4444
require('nodeppt-serve').build(entry, cleanArgs(cmd));
4545
})
46-
.on('--help', function() {
46+
.on('--help', () => {
4747
console.log(' Examples:');
4848
console.log();
4949
console.log(' nodeppt build slide.md');
@@ -58,7 +58,7 @@ program
5858
.action((dest, cmd) => {
5959
return require('../commands/new')(dest, cleanArgs(cmd));
6060
})
61-
.on('--help', function() {
61+
.on('--help', () => {
6262
console.log(' Examples:');
6363
console.log();
6464
console.log(chalk.gray(' # create a new slide with an official template'));

0 commit comments

Comments
 (0)