🎉 Initial commit
This commit is contained in:
parent
62248f2985
commit
d80287c8f8
7 changed files with 3404 additions and 1 deletions
|
@ -1,2 +1,5 @@
|
|||
# freesewing
|
||||
A port of freesewing core to node.js. This is pre-alfa code
|
||||
A port of [freesewing core](https://github.com/freesewing/core)
|
||||
to node.js, using [TypeScript](https://www.typescriptlang.org/).
|
||||
|
||||
> This is pre-alfa code.
|
||||
|
|
6
dist/index.d.ts
vendored
Normal file
6
dist/index.d.ts
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
import bezier from 'bezier-js';
|
||||
declare var Freesewing: {
|
||||
version: string;
|
||||
bezier: typeof bezier;
|
||||
};
|
||||
export default Freesewing;
|
12
dist/index.js
vendored
Normal file
12
dist/index.js
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var bezier_js_1 = __importDefault(require("bezier-js"));
|
||||
console.log('start');
|
||||
var Freesewing = {
|
||||
version: '0.0.1',
|
||||
bezier: bezier_js_1.default
|
||||
};
|
||||
exports.default = Freesewing;
|
10
index.ts
Normal file
10
index.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import bezier from 'bezier-js'
|
||||
|
||||
console.log('start');
|
||||
|
||||
var Freesewing = {
|
||||
version: '0.0.1',
|
||||
bezier
|
||||
}
|
||||
|
||||
export default Freesewing;
|
3329
package-lock.json
generated
Normal file
3329
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
33
package.json
Normal file
33
package.json
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"name": "freesewing",
|
||||
"version": "0.0.1",
|
||||
"description": "A library for creating made-to-measure sewing patterns",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"build": "tsc",
|
||||
"build-watch": "tsc -w",
|
||||
"run": "nodemon node dist/index.js",
|
||||
"run-watch": "nodemon node dist/index.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/joostdecock/freesewing.git"
|
||||
},
|
||||
"author": "Joost De Cock <joost@decock.org>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/joostdecock/freesewing/issues"
|
||||
},
|
||||
"homepage": "https://github.com/joostdecock/freesewing#readme",
|
||||
"dependencies": {
|
||||
"bezier-js": "^2.2.13",
|
||||
"@types/bezier-js": "0.0.7",
|
||||
"@types/node": "^10.5.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nodemon": "^1.17.5",
|
||||
"typescript": "^2.9.2"
|
||||
}
|
||||
}
|
10
tsconfig.json
Normal file
10
tsconfig.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"module": "commonjs",
|
||||
"declaration": true,
|
||||
"outDir": "./dist",
|
||||
"strict": true,
|
||||
"esModuleInterop": true
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue