Slim down support libraries. Just enough to run tests.
This commit is contained in:
parent
ea29882fae
commit
52d8c44a22
34
.gitignore
vendored
34
.gitignore
vendored
@ -1,32 +1,2 @@
|
|||||||
# ---> Cloud9
|
coverage
|
||||||
# Cloud9 IDE - http://c9.io
|
node_modules
|
||||||
.c9revisions
|
|
||||||
.c9
|
|
||||||
|
|
||||||
# ---> Node
|
|
||||||
# Logs
|
|
||||||
logs
|
|
||||||
*.log
|
|
||||||
npm-debug.log*
|
|
||||||
lerna-debug.log*
|
|
||||||
|
|
||||||
# Runtime data
|
|
||||||
pids
|
|
||||||
*.pid
|
|
||||||
*.seed
|
|
||||||
*.pid.lock
|
|
||||||
|
|
||||||
# Dependency directories
|
|
||||||
node_modules/
|
|
||||||
dist/
|
|
||||||
|
|
||||||
# Optional npm cache directory
|
|
||||||
.npm
|
|
||||||
|
|
||||||
# ---> SublimeText
|
|
||||||
# workspace files are user-specific
|
|
||||||
*.sublime-workspace
|
|
||||||
|
|
||||||
# project files should be checked into the repository, unless a significant
|
|
||||||
# proportion of contributors will probably not be using SublimeText
|
|
||||||
# *.sublime-project
|
|
||||||
|
|||||||
@ -1,3 +0,0 @@
|
|||||||
package.json
|
|
||||||
package-lock.json
|
|
||||||
|
|
||||||
9216
package-lock.json
generated
9216
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
34
package.json
34
package.json
@ -2,19 +2,12 @@
|
|||||||
"name": "reactimal",
|
"name": "reactimal",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Reactive programming primitives",
|
"description": "Reactive programming primitives",
|
||||||
"main": "dist/reactimal.js",
|
"main": "src/index.js",
|
||||||
"module": "dist/reactimal.mjs",
|
|
||||||
"files": [
|
"files": [
|
||||||
"src"
|
"src"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "jasmine",
|
"test": "karmatic"
|
||||||
"clean": "rimraf dist",
|
|
||||||
"format_code": "nodejs node_modules/prettier/bin-prettier.js --config ./prettier.config.js --write \"{.,{src,spec,docs}/**}/*.{js,json,md}\"",
|
|
||||||
"build:umd": "rollup -c rollup.config.js && uglifyjs -m --screw-ie8 -c -o dist/reactimal.min.js dist/reactimal.js",
|
|
||||||
"build:umd:zip": "npm run build:umd && gzip -c9 dist/reactimal.min.js > dist/reactimal.min.js.gz && gzip -c9 dist/reactimal.min.mjs > dist/reactimal.min.mjs.gz",
|
|
||||||
"build": "npm run build:umd:zip && ls -l dist/",
|
|
||||||
"prepublish": "npm run clean && npm run build"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -26,20 +19,13 @@
|
|||||||
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",
|
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"jasmine": "^3.2.0",
|
"husky": "^3.0.1",
|
||||||
"jasmine-es6": "^0.4.3",
|
"karmatic": "^1.3.1",
|
||||||
"prettier": "^1.14.3",
|
"webpack": "^4.37.0"
|
||||||
"babel-cli": "6.18.0",
|
},
|
||||||
"babel-core": "6.21.0",
|
"husky": {
|
||||||
"babel-eslint": "7.1.1",
|
"hooks": {
|
||||||
"babel-preset-es2015": "6.18.0",
|
"pre-commit": "npm run test"
|
||||||
"babel-preset-es2015-rollup": "3.0.0",
|
}
|
||||||
"babel-preset-stage-0": "6.16.0",
|
|
||||||
"eslint": "3.2.0",
|
|
||||||
"rimraf": "2.5.4",
|
|
||||||
"rollup": "0.66.6",
|
|
||||||
"rollup-plugin-babel": "2.7.1",
|
|
||||||
"rollup-plugin-esmin": "0.1.3",
|
|
||||||
"uglify-es": "3.3.9"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
printWidth: 100,
|
|
||||||
tabWidth: 1,
|
|
||||||
useTabs: true,
|
|
||||||
singleQuote: true,
|
|
||||||
trailingComma: 'none',
|
|
||||||
bracketSpacing: true,
|
|
||||||
semi: true,
|
|
||||||
requirePragma: false,
|
|
||||||
proseWrap: 'always',
|
|
||||||
arrowParens: 'avoid'
|
|
||||||
};
|
|
||||||
@ -1,43 +0,0 @@
|
|||||||
import esmin from 'rollup-plugin-esmin';
|
|
||||||
import babel from 'rollup-plugin-babel';
|
|
||||||
import pkg from './package.json';
|
|
||||||
|
|
||||||
const config = {
|
|
||||||
input: 'src/index.js',
|
|
||||||
output: {
|
|
||||||
file: pkg.module,
|
|
||||||
format: 'es'
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
export default [
|
|
||||||
// reactimal.mjs
|
|
||||||
config,
|
|
||||||
|
|
||||||
// reactimal.min.mjs
|
|
||||||
{
|
|
||||||
...config,
|
|
||||||
output: {
|
|
||||||
...config.output,
|
|
||||||
file: 'dist/reactimal.min.mjs'
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
esmin({
|
|
||||||
overrides: {
|
|
||||||
sourceType: 'module'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
// reactimal.js
|
|
||||||
{
|
|
||||||
...config,
|
|
||||||
output: {
|
|
||||||
format: 'umd',
|
|
||||||
file: 'dist/reactimal.js',
|
|
||||||
name: 'reactimal'
|
|
||||||
},
|
|
||||||
plugins: [babel({ sourceType: 'module' })]
|
|
||||||
}
|
|
||||||
];
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"spec_dir": "spec",
|
|
||||||
"spec_files": ["**/*[sS]pec.js"],
|
|
||||||
"helpers": ["helpers/**/*.js"],
|
|
||||||
"stopSpecOnExpectationFailure": false,
|
|
||||||
"random": true
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user