Skip to content

Commit 838208e

Browse files
committed
fixed path
1 parent ccb2f76 commit 838208e

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

examples/chapter03/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Stack from './../../lib/js/data-structures/stack.js';
1+
import Stack from './../../src/js/data-structures/stack.js';
22

33
const stack = new Stack();
44

gulpfile.babel.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import glob from 'glob';
77
import es from 'event-stream';
88

99
const paths = {
10-
scriptsJs: 'lib/js/**/*.js',
10+
scriptsJs: 'src/js/**/*.js',
1111
dist: 'dist/',
1212
distJs: 'dist/js'
1313
};

jsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"strict": true
88
},
99
"exclude": ["node_modules", "dist"],
10-
"include": ["lib/js/**/*","html/**"]
10+
"include": ["src/js/**/*","html/**"]
1111
}

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@
1616
"scripts": {
1717
"gulp": "gulp",
1818
"clean": "rm -rf ./dist; mkdir ./dist rm; rm -rf ./coverage",
19-
"build:js": "babel lib/js --presets babel-preset-es2015 --out-dir dist/js",
19+
"build:js": "babel src/js --presets babel-preset-es2015 --out-dir dist/js",
2020
"build:ts": "tsc",
2121
"build": "npm run build:js && npm run build:ts",
2222
"test:js": "mocha --compilers js:babel-core/register --colors --recursive ./test/js/**/*.spec.js",
2323
"test:ts": "mocha -r ts-node/register --colors --recursive ./test/ts/**/*.spec.ts",
2424
"test": "npm run test:js && npm run test:ts",
25-
"coverage:js": "./node_modules/.bin/istanbul cover --include-all-sources --root ./lib/js ./node_modules/.bin/_mocha --recursive ./test/js/**/*.spec.js -- --compilers js:babel-core/register",
25+
"coverage:js": "./node_modules/.bin/istanbul cover --include-all-sources --root ./src/js ./node_modules/.bin/_mocha --recursive ./test/js/**/*.spec.js -- --compilers js:babel-core/register",
2626
"nyc-report": "npm run coverage && nyc report --reporter=text-lcov > coverage.lcov && codecov",
2727
"local": "npm run clean && npm run coverage && nyc report --reporter=text",
2828
"coverage": "NODE_ENV=test nyc --report-dir coverage npm run test",
2929
"go": "npm run clean && npm run build && npm run test"
3030
},
3131
"nyc": {
3232
"include": [
33-
"lib/ts/*.ts",
34-
"lib/ts/**/*.ts",
35-
"lib/js/*.js",
36-
"lib/js/**/*.js"
33+
"src/ts/*.ts",
34+
"src/ts/**/*.ts",
35+
"src/js/*.js",
36+
"src/js/**/*.js"
3737
],
3838
"exclude": [
3939
"typings"

test/js/data-structures/stack.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'mocha';
22
import { expect } from 'chai';
3-
import Stack from '../../../lib/js/data-structures/stack';
3+
import Stack from '../../../src/js/data-structures/stack';
44

55
describe('Stack', () => {
66
let stack;

test/ts/data-structures/stack.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'mocha';
22
import { expect } from 'chai';
3-
import Stack from '../../../lib/ts/data-structures/stack';
3+
import Stack from '../../../src/ts/data-structures/stack';
44

55
describe('Stack', () => {
66
let stack: Stack<number>;

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@
5353
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
5454
},
5555
"exclude": ["node_modules", "dist"],
56-
"include": ["lib/ts/**/*"]
56+
"include": ["src/ts/**/*"]
5757
}

0 commit comments

Comments
 (0)