mirror of https://github.com/iSoron/uhabits.git
parent
fe219b5296
commit
7ba7edb7d4
@ -0,0 +1 @@
|
||||
org.gradle.parallel=true
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"presets": [
|
||||
["env", { "modules": false }],
|
||||
"react"
|
||||
]
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
test_bundle := build/bundles/test.js
|
||||
node_modules := node_modules/.bin/mocha
|
||||
|
||||
$(node_modules):
|
||||
npm install
|
||||
|
||||
core:
|
||||
cd ../core; ./gradlew --quiet jsMainClasses jsTestClasses
|
||||
cp ../core/build/classes/kotlin/js/*/*.js node_modules/
|
||||
|
||||
$(test_bundle): test/index.js core
|
||||
mkdir -p build/bundles
|
||||
npx webpack $< --silent --mode production --output $@
|
||||
|
||||
test: $(test_bundle) $(node_modules)
|
||||
mkdir -p build/reports
|
||||
npx mocha $@ --reporter xunit > build/reports/tests.xml
|
||||
npx mocha $@
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
|
||||
distclean: clean
|
||||
rm -rf node_modules
|
||||
|
||||
.PHONY: test clean distclean core
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "loop-habit-tracker",
|
||||
"version": "2.0.0",
|
||||
"description": "App for creating and maintaining good habits",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:iSoron/uhabits.git"
|
||||
},
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"compile": "webpack",
|
||||
"test": "mocha"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"dependencies": {
|
||||
"babel-core": "^6.26.3",
|
||||
"babel-preset-env": "^1.7.0",
|
||||
"babel-preset-react": "^6.24.1",
|
||||
"kotlin": "^1.3.21",
|
||||
"kotlin-test": "^1.3.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-loader": "^7.1.5",
|
||||
"mocha": "^6.1.0",
|
||||
"webpack": "^4.29.6",
|
||||
"webpack-cli": "^3.3.0"
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
console.log('Hello World!');
|
@ -0,0 +1,2 @@
|
||||
var assert = require('assert');
|
||||
var coreTest = require('core_test');
|
Loading…
Reference in new issue